<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://blog.gmane.org/gmane.comp.web.zope.general">
    <title>gmane.comp.web.zope.general</title>
    <link>http://blog.gmane.org/gmane.comp.web.zope.general</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.zope.general/63329"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.zope.general/63328"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.zope.general/63327"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.zope.general/63326"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.zope.general/63325"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.zope.general/63324"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.zope.general/63323"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.zope.general/63322"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.zope.general/63321"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.zope.general/63320"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.zope.general/63319"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.zope.general/63318"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.zope.general/63317"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.zope.general/63316"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.zope.general/63315"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.zope.general/63314"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.zope.general/63313"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.zope.general/63312"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.zope.general/63311"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.zope.general/63308"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.zope.general/63329">
    <title>Re: Sessioning</title>
    <link>http://permalink.gmane.org/gmane.comp.web.zope.general/63329</link>
    <description>&lt;pre&gt;
Take a look at http://pypi.python.org/pypi/plone.session

It's a PAS plugin that uses signed cookies rather than server side
sessions. These cookies are timestamped and have an expiration timeout
after which they are considered invalid. When you use a short timeout
then there is some javascript that will update the cookie periodically
while the user is active on the page.

Laurence
_______________________________________________
Zope maillist  -  Zope-CWUwpEBWKX0&amp;lt; at &amp;gt;public.gmane.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )

&lt;/pre&gt;</description>
    <dc:creator>Laurence Rowe</dc:creator>
    <dc:date>2012-05-23T11:09:52</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.zope.general/63328">
    <title>Sessioning</title>
    <link>http://permalink.gmane.org/gmane.comp.web.zope.general/63328</link>
    <description>&lt;pre&gt;Does anyone have a recommendation on how to implement sessioning on Zope 
2? Basically to set browser timeouts for the user so logout after say 20 
mins of inactivity. The difficulty we've had previously is detecting 
what exactly 'inactivity' is...
Cheers
Rich
_______________________________________________
Zope maillist  -  Zope-CWUwpEBWKX0&amp;lt; at &amp;gt;public.gmane.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )
&lt;/pre&gt;</description>
    <dc:creator>Richard Harley</dc:creator>
    <dc:date>2012-05-23T08:56:51</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.zope.general/63327">
    <title>Unexpected behavior with zope.session 3.9.5</title>
    <link>http://permalink.gmane.org/gmane.comp.web.zope.general/63327</link>
    <description>&lt;pre&gt;Hi List,

I'm running into an bit of a problem implementing zope.session on Zope2-2.12.10.
When running the following code inside a class that inherits from BrowserView:

session = ISession(self.request)[product_id]

I get the following error.

AttributeError: ZServerHTTPResponse instance has no attribute 'getCookie'

Looking through the zope.session code, the Session object adapts IRequest.   The exception is being thrown in zope.session.http.CookieClientIdManager in the the getRequestId() method with the following code.

def getRequestId(self, request):
'''....'''
response_cookie = request.response.getCookie(self.namespace)

I am not sure where to begin tracking this down.   Could this be an error with utility lookup?

_______________________________________________
Zope maillist  -  Zope-CWUwpEBWKX0&amp;lt; at &amp;gt;public.gmane.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )

&lt;/pre&gt;</description>
    <dc:creator>Chris Austin</dc:creator>
    <dc:date>2012-04-11T11:55:41</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.zope.general/63326">
    <title>Re: Zope Digest, Vol 95, Issue 1</title>
    <link>http://permalink.gmane.org/gmane.comp.web.zope.general/63326</link>
    <description>&lt;pre&gt;Il 05/04/2012 14:18, Stefan Loidl ha scritto:

I agree, also because the browsers receive correctly 'utf-8' as the 
preferred charset.

I still can't understand what happen, because nothing has changed 
recently in this application.
_______________________________________________
Zope maillist  -  Zope-CWUwpEBWKX0&amp;lt; at &amp;gt;public.gmane.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )

&lt;/pre&gt;</description>
    <dc:creator>Yuri</dc:creator>
    <dc:date>2012-04-05T12:21:32</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.zope.general/63325">
    <title>Re: Zope Digest, Vol 95, Issue 1</title>
    <link>http://permalink.gmane.org/gmane.comp.web.zope.general/63325</link>
    <description>&lt;pre&gt;My workaround is for unicodeconflictresolver.py.

The diff for Zope 2.13.13 is:
100,101d99
&amp;lt;             charsets.append('iso-8859-15')
&amp;lt;

But as the issue occurs with

Am 04.04.2012 16:25, schrieb Yuri:

I'm using Zope 2.13.13 and the issue still occurs with Safari.


My workaround is for the file unicodeconflictresolver.py.

The diff for Zope 2.13.13 (I never used Zope 2.12) is:
100,101d99
&amp;lt;             charsets.append('iso-8859-15')
&amp;lt;

But as the issue occurs for you with all browsers, I don't think that
it will help.


_______________________________________________
Zope maillist  -  Zope-CWUwpEBWKX0&amp;lt; at &amp;gt;public.gmane.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )

&lt;/pre&gt;</description>
    <dc:creator>Stefan Loidl</dc:creator>
    <dc:date>2012-04-05T12:18:15</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.zope.general/63324">
    <title>Re: Zope Digest, Vol 95, Issue 1</title>
    <link>http://permalink.gmane.org/gmane.comp.web.zope.general/63324</link>
    <description>&lt;pre&gt;

Yes, unfortunately.


I can see it, but I've 2.12.XX and this should be fixed. This is the 
code in http.py:

     def getPreferredCharsets(self):
         '''See interface IUserPreferredCharsets'''
         charsets = []
         sawstar = sawiso88591 = 0
         header_present = bool(self.request.get('HTTP_ACCEPT_CHARSET'))
         for charset in self.request.get('HTTP_ACCEPT_CHARSET', 
'').split(','):
             charset = charset.strip().lower()

isn't HTTP_ stripped from the request variable name?



can you send me your workaround? Maybe it can help :P


_______________________________________________
Zope maillist  -  Zope-CWUwpEBWKX0&amp;lt; at &amp;gt;public.gmane.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )

&lt;/pre&gt;</description>
    <dc:creator>Yuri</dc:creator>
    <dc:date>2012-04-04T14:25:52</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.zope.general/63323">
    <title>Re: UnicodeDecodeError</title>
    <link>http://permalink.gmane.org/gmane.comp.web.zope.general/63323</link>
    <description>&lt;pre&gt;Hi Yuri,

does this error occur with all browsers? I once had a similar issue
that was caused only by some browsers because they do not send a
HTTP_ACCEPT_CHARSET header.

Maybe the following bug reports helps you in solving the issue:
https://bugs.launchpad.net/zope2/+bug/160968

I'm using a workaround similar to that in the bug report in my
environment (Zope 2.13.13 and a mixture of utf-8 and iso8859).
Without the workaround the issue does still occur for me.

Greetings,
Stefan

Am 03.04.2012 09:40, schrieb Yuri:

&lt;/pre&gt;</description>
    <dc:creator>Stefan Loidl</dc:creator>
    <dc:date>2012-04-03T10:35:19</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.zope.general/63322">
    <title>UnicodeDecodeError</title>
    <link>http://permalink.gmane.org/gmane.comp.web.zope.general/63322</link>
    <description>&lt;pre&gt;Hi!

  I've an Zope application, basically postgres + zpt.

  The postgres db has been upgraded to 8.5, the data inside is utf-8 
(dumped and checkd it), the pg adapeter is the latest, and the "*Z 
Psycopg 2 Database Connection" is configured to use utf-8.* Zope is  
2.12.20 + latest security fix.

  When I try to do:

&amp;lt;span tal:replace="result/?column" /&amp;gt; (result came from an ZSQL method) 
I get an UnicodeDecodeError:

Traceback (innermost last):
   Module ZPublisher.Publish, line 127, in publish
   Module ZPublisher.mapply, line 77, in mapply
   Module ZPublisher.Publish, line 47, in call_object
   Module Shared.DC.Scripts.Bindings, line 324, in __call__
   Module Shared.DC.Scripts.Bindings, line 361, in _bindAndExec
   Module Products.PageTemplates.ZopePageTemplate, line 335, in _exec
   Module Products.PageTemplates.ZopePageTemplate, line 432, in pt_render
   Module Products.PageTemplates.PageTemplate, line 80, in pt_render
   Module zope.pagetemplate.pagetemplate, line 113, in pt_render
   Module zope.tal.talinterpreter, line 271, in __call__
   Module zope.tal.talinterpreter, line 343, in interpret
   Module zope.tal.talinterpreter, line 888, in do_useMacro
   Module zope.tal.talinterpreter, line 343, in interpret
   Module zope.tal.talinterpreter, line 946, in do_defineSlot
   Module zope.tal.talinterpreter, line 343, in interpret
   Module zope.tal.talinterpreter, line 533, in do_optTag_tal
   Module zope.tal.talinterpreter, line 518, in do_optTag
   Module zope.tal.talinterpreter, line 513, in no_tag
   Module zope.tal.talinterpreter, line 343, in interpret
   Module zope.tal.talinterpreter, line 821, in do_loop_tal
   Module zope.tal.talinterpreter, line 343, in interpret
   Module zope.tal.talinterpreter, line 821, in do_loop_tal
   Module zope.tal.talinterpreter, line 343, in interpret
   Module zope.tal.talinterpreter, line 852, in do_condition
   Module zope.tal.talinterpreter, line 343, in interpret
   Module zope.tal.talinterpreter, line 376, in do_startEndTag
   Module zope.tal.talinterpreter, line 405, in do_startTag
   Module zope.tal.talinterpreter, line 502, in attrAction_tal
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 38: 
ordinal not in range(128)

if I do:

&amp;lt;span tal:replace="python:str(result['column']).decode('utf-8')" /&amp;gt; it 
works. (I use str because I've also dates in the record, otherwise I 
could not decode being it not a string)

I've several zpt to fix, and I would like it to work as it should. My 
analisys is that result['column'] is seen as a plain string with \xx 
characters inside, and decode just transform it in something that Zope 
recognize as utf-8 when it prints it.

Anyway, any idea?
_______________________________________________
Zope maillist  -  Zope-CWUwpEBWKX0&amp;lt; at &amp;gt;public.gmane.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )

&lt;/pre&gt;</description>
    <dc:creator>Yuri</dc:creator>
    <dc:date>2012-04-03T07:40:03</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.zope.general/63321">
    <title>Re: Finding the right import folder</title>
    <link>http://permalink.gmane.org/gmane.comp.web.zope.general/63321</link>
    <description>&lt;pre&gt;-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Write a browser view or use an external method.
It's well known that Python scripts are  restricted.

- -aj

Ron Chichester wrote:

- -- 
ZOPYX Limited           | zopyx group
Charlottenstr. 37/1     | The full-service network for Zope &amp;amp; Plone
D-72070 Tübingen        | Produce &amp;amp; Publish
www.zopyx.com           | www.produce-and-publish.com
- ------------------------------------------------------------------------
E-Publishing, Python, Zope &amp;amp; Plone development, Consulting


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQGUBAEBAgAGBQJPZCwcAAoJEADcfz7u4AZjGjYLv3BTuY/2l3A8gnNR/cNIF9t+
jq/Wz8VD+F9yVwigIfnt63tUBLSR0RNDqm70j+IHadjhjTgnHQ0G8b6tap6sOHNc
/hD8kkSq/L/ByVPifNKXPU9Gbc7vCXKNUgZQVvUNw/sX+G3tW5lczvc9mptEIPmA
i5vqQ2jFb/YAbOsaZxM/xiVrFoflAs9vWsirYr3RGg+mXfT25HdesFSDwbHhjOEl
bHk+cYkiNrrgawpX2gu4li5B9ple1djuWi/rXaG663Qy2IAe2wltJOGd/CPmnAm+
+xyNYVstv844akdzpx44/dYOlfLcAivFo2Pt7T5AS+Yn5kfiXEU59fkhXzmxhfi7
DrFf0zzgfuQgXeUga41fU/VjWGYaaua4v29Bw+96ljUKuWzPyzq2IhGUB/oj6M+B
6OVdrAry1tZpqkAqHEsPjS9CixBSrhLqd/67WZp22aWU9DePObX/MqyNedIWWAfG
oidPG1GxauNLWhXPVUgykmZffT8xvvE=
=lsBp
-----END PGP SIGNATURE-----
_______________________________________________
Zope maillist  -  Zope-CWUwpEBWKX0&amp;lt; at &amp;gt;public.gmane.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )
&lt;/pre&gt;</description>
    <dc:creator>Andreas Jung</dc:creator>
    <dc:date>2012-03-17T06:15:57</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.zope.general/63320">
    <title>Re: Finding the right import folder</title>
    <link>http://permalink.gmane.org/gmane.comp.web.zope.general/63320</link>
    <description>&lt;pre&gt;You could also look at the quick importer product which would make 
things a little easier.
Rich

On 16/03/12 03:06, Ron wrote:

_______________________________________________
Zope maillist  -  Zope-CWUwpEBWKX0&amp;lt; at &amp;gt;public.gmane.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )
&lt;/pre&gt;</description>
    <dc:creator>Richard Harley</dc:creator>
    <dc:date>2012-03-16T09:08:44</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.zope.general/63319">
    <title>Re: Finding the right import folder</title>
    <link>http://permalink.gmane.org/gmane.comp.web.zope.general/63319</link>
    <description>&lt;pre&gt;-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Isn't the client home slash import used for imports?

Something like

from App.config import getConfiguration
import_dir = os.path.join(getConfiguration().clienthome), 'import')

(untested)?

- -aj

Ron wrote:

- -- 
ZOPYX Limited           | zopyx group
Charlottenstr. 37/1     | The full-service network for Zope &amp;amp; Plone
D-72070 Tübingen        | Produce &amp;amp; Publish
www.zopyx.com           | www.produce-and-publish.com
- ------------------------------------------------------------------------
E-Publishing, Python, Zope &amp;amp; Plone development, Consulting


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQGUBAEBAgAGBQJPYs+9AAoJEADcfz7u4AZj5F0LwJ0Rus6bG2lQ5p2Dz3c1t9BJ
sQoMGdth7pJg7dYO9vbEdSRDr0wdsVGznYfUTlBIauNfrImW+YINp47W8Nc4DH69
BWBQfEfJ+rAOFhKEuCUFTAqNTX4ZzfcZI73XmbsQLaSKv7blgU+8A4r08Jag/epo
6vDuOKq+WjKZhkhhJplL3YsPXuEnTo0FInkWVXKXJkz7e5F/B6UgOublhY9fvZo5
PwwbqQalixmmm33he0qo9RCMaCaFY4PX2O0uo72r9DO/XuTagAx8ztxtqv/I7Pfa
yf9/Zv1O+qIucREaQXC4JjVr4xwNGYzq6+2kfRvi75KdU0zWtJqNP91TkiY+VNcf
M5ZTmXxw7L+a/9eBXwHy74Aco70bwhcv32T0jqsN/+Q6XeTHph281mpC8E1Yw8jw
YTUpWMUm9lhfhdl1EX5bBUKFXN3lEZyT+WwaleaWkV7XJ9rk+KvouJ0O+7FJukub
zMwO5q6VjBgQwBzphpfb+HJkU7ZlRZw=
=YJ4N
-----END PGP SIGNATURE-----
_______________________________________________
Zope maillist  -  Zope-CWUwpEBWKX0&amp;lt; at &amp;gt;public.gmane.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )
&lt;/pre&gt;</description>
    <dc:creator>Andreas Jung</dc:creator>
    <dc:date>2012-03-16T05:29:33</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.zope.general/63318">
    <title>Finding the right import folder</title>
    <link>http://permalink.gmane.org/gmane.comp.web.zope.general/63318</link>
    <description>&lt;pre&gt;I have a Zope instance running on a FreeBSD (8) server.  Zope is running fine
(by all measures).  Here is the particulars of the system:

Zope Version
   (Zope 2.7.9-final, python 2.4.5, freebsd8)

Python Version
   2.4.5 (#2, Nov 10 2011, 00:37:52) [GCC 4.2.1 20070719 [FreeBSD]]

System Platform
   freebsd8

SOFTWARE_HOME
/usr/local/www/Zope/lib/python

ZOPE_HOME
/usr/local/www/Zope

INSTANCE_HOME
/usr/local/setp

CLIENT_HOME
/usr/local/setp/var


Network Services

ZServer.HTTPServer.zhttp_server (Port: 8080)
ZServer.FTPServer.FTPServer (Port: 8021)

-------------------------------

The problem is that I need to import some .zexp files.  I would have thought
that I should put them in the (already existing) import folder at the
INSTANCE_HOME (i.e., /usr/local/setp/import) but when I restart Zope, none of
the .zexp files (including the standard Zope tutorial) show up in a pull-down
menu in the import page.  Based on the above, where should I put the .zexp files
so that the Zope instance finds them.

_______________________________________________
Zope maillist  -  Zope-CWUwpEBWKX0&amp;lt; at &amp;gt;public.gmane.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )

&lt;/pre&gt;</description>
    <dc:creator>Ron</dc:creator>
    <dc:date>2012-03-16T03:06:09</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.zope.general/63317">
    <title>Re: changing permissions on classes/methods at runtime?</title>
    <link>http://permalink.gmane.org/gmane.comp.web.zope.general/63317</link>
    <description>&lt;pre&gt;On Wed, Mar 7, 2012 at 3:47 AM, Jürgen Herrmann
&amp;lt;Juergen.Herrmann-Hi7yjWzFLp+zQB+pC5nmwQ&amp;lt; at &amp;gt;public.gmane.org&amp;gt; wrote:

One of the challenges I see is that InitializeClass() removes the
original 'security' attribute of the class, so you end up having to
copy the security info to a module global before calling
InitializeClass() the first time.  Then, if you have that copy of the
class security information, you should be able to re-use it, modify
it, re-apply it to the class, then call InitializeClass (again).

Sean
_______________________________________________
Zope maillist  -  Zope-CWUwpEBWKX0&amp;lt; at &amp;gt;public.gmane.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )

&lt;/pre&gt;</description>
    <dc:creator>Sean Upton</dc:creator>
    <dc:date>2012-03-07T17:49:03</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.zope.general/63316">
    <title>RelStorage PosKeyError</title>
    <link>http://permalink.gmane.org/gmane.comp.web.zope.general/63316</link>
    <description>&lt;pre&gt;Hi!

I have a reproducible PosKeyError on RelStorage 1.5.1 with
MySQL backend. Traceback comes here:

Module Products.BlissNewsCenter.BlissNewsCenter, line 77, in 
view_editNewsletterForm
Module Products.BlissNewsletter.Newsletter, line 82, in getFromEmail
Module Products.Relateable.Relateable, line 362, in _initAttribute
Module Products.Relateable.MetaManager, line 1144, in 
attributeDefaultValue
Module Products.Relateable.MetaManager, line 1, in &amp;lt;module&amp;gt;
Module ZODB.Connection, line 860, in setstate
Module ZODB.Connection, line 901, in _setstate
Module relstorage.storage, line 470, in load
POSKeyError: 0x116994

How do i find out which object is broken or how to fix this?

thanks in advance &amp;amp; best regards,
Jürgen Herrmann
&lt;/pre&gt;</description>
    <dc:creator>Jürgen Herrmann</dc:creator>
    <dc:date>2012-03-07T11:50:26</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.zope.general/63315">
    <title>Re: changing permissions on classes/methods at runtime?</title>
    <link>http://permalink.gmane.org/gmane.comp.web.zope.general/63315</link>
    <description>&lt;pre&gt;Am 06.03.2012 09:02, schrieb Lennart Regebro:

Since a long time i have a mechanism in place that scans class-specific
directories for page templates, dtml files, images, sql-methods etc.
and attaches these to the classes. up to now i did mark everything as
protected, with a fixed permission, worked fine for my purposes.

now i had a use case where i need to mark some templates and methods
as public because they use an internal authentication.

best regards, jürgen
&lt;/pre&gt;</description>
    <dc:creator>Jürgen Herrmann</dc:creator>
    <dc:date>2012-03-07T10:47:14</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.zope.general/63314">
    <title>Re: changing permissions on classes/methods at runtime?</title>
    <link>http://permalink.gmane.org/gmane.comp.web.zope.general/63314</link>
    <description>&lt;pre&gt;
When I needed this to be dynamic I simply did not have any security
declaration and instead tested the permissions the first thing I did
in the method. That worked fine. It is however probably ten years ago,
and I don't remember or have the code. But it was quite simple, I
think.

//Lennart
_______________________________________________
Zope maillist  -  Zope-CWUwpEBWKX0&amp;lt; at &amp;gt;public.gmane.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )

&lt;/pre&gt;</description>
    <dc:creator>Lennart Regebro</dc:creator>
    <dc:date>2012-03-06T08:02:33</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.zope.general/63313">
    <title>Re: changing permissions on classes/methods at runtime?</title>
    <link>http://permalink.gmane.org/gmane.comp.web.zope.general/63313</link>
    <description>&lt;pre&gt;On Wed, Feb 29, 2012 at 7:12 AM, Jürgen Herrmann
&amp;lt;Juergen.Herrmann-Hi7yjWzFLp+zQB+pC5nmwQ&amp;lt; at &amp;gt;public.gmane.org&amp;gt; wrote:

I don't off-hand know why just monkey-patching the security attribute
of your class and then calling InitializeClass() again would not work,
but the idea of changing these at runtime after initial zope startup
sounds a bit odd, possibly dangerous.  What is it that you are trying
to do?

Sean
_______________________________________________
Zope maillist  -  Zope-CWUwpEBWKX0&amp;lt; at &amp;gt;public.gmane.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )

&lt;/pre&gt;</description>
    <dc:creator>Sean Upton</dc:creator>
    <dc:date>2012-03-05T18:22:34</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.zope.general/63312">
    <title>Re: changing permissions on classes/methods at runtime?</title>
    <link>http://permalink.gmane.org/gmane.comp.web.zope.general/63312</link>
    <description>&lt;pre&gt;
Hi,


Le Wed, 29 Feb 2012 15:12:37 +0100,
  Jürgen Herrmann &amp;lt;Juergen.Herrmann&amp;lt; at &amp;gt;XLhost.de&amp;gt; a écrit:


The way I handle this kind of problem is:
 - declare me method as protected, with a specific permission
 - grant this permission to roles or users (which can be "anybody")
   according to your context.

Best regards,
Thierry
&lt;/pre&gt;</description>
    <dc:creator>Thierry Florac</dc:creator>
    <dc:date>2012-03-02T09:29:05</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.zope.general/63311">
    <title>changing permissions on classes/methods at runtime?</title>
    <link>http://permalink.gmane.org/gmane.comp.web.zope.general/63311</link>
    <description>&lt;pre&gt;hi all!

is it possible to change permissions and roles on classes/methods
at runtime? normally you'd attach security declarations inline in
your class definition code:

from AccessControl import ClassSecurityInfo
from AccessControl.class_init import InitializeClass
class Cls():
   security = ClassSecurityInfo()
   security.declarePrivate('foo')
   def foo(self):
     pass
InitializeClass(Cls)


now what i tried at runtime is:

from mycode import Cls
from AccessControl import ClassSecurityInfo
security = ClassSecurityInfo()
security.declarePublic('foo')
security.apply(Cls)

but this does not what i want it to, in fact it doesn't seem
to do anything yet - probably because i'm using the wrong way :)

any hints how to do this correctly would be greatly appreciated.

thank you very much in advance and best regards,
Jürgen Herrmann
&lt;/pre&gt;</description>
    <dc:creator>Jürgen Herrmann</dc:creator>
    <dc:date>2012-02-29T14:12:37</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.zope.general/63308">
    <title>Re: External editor "timing out"</title>
    <link>http://permalink.gmane.org/gmane.comp.web.zope.general/63308</link>
    <description>&lt;pre&gt;-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 02/17/2012 04:33 AM, Giampiero Benvenuti wrote:

Your locks are timing out.  I don't know where the 10 minute lock timeout
is coming from:  the default value is 30 minutes.




Tres.
- -- 
===================================================================
Tres Seaver          +1 540-429-0999          tseaver-npLdOuuzvjyaMJb+Lgu22Q&amp;lt; at &amp;gt;public.gmane.org
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk8+bb8ACgkQ+gerLs4ltQ5gwQCbBtv7MXWEx/87eBolxYV5Q/ep
pPkAn2K/t3x8aANpWaGn9Fgr1Pj1yfpN
=0K+i
-----END PGP SIGNATURE-----

_______________________________________________
Zope maillist  -  Zope-CWUwpEBWKX0&amp;lt; at &amp;gt;public.gmane.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )

&lt;/pre&gt;</description>
    <dc:creator>Tres Seaver</dc:creator>
    <dc:date>2012-02-17T15:09:52</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.zope.general/63307">
    <title>Re: "dynamic" dtml-with from string content</title>
    <link>http://permalink.gmane.org/gmane.comp.web.zope.general/63307</link>
    <description>&lt;pre&gt;Am Freitag, 17. Februar 2012, 15:15:23 schrieben Sie:

This is very nice too - thanx! ;)

best regards,


Niels.


&lt;/pre&gt;</description>
    <dc:creator>Niels Dettenbach</dc:creator>
    <dc:date>2012-02-17T14:41:13</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.web.zope.general">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.web.zope.general</link>
  </textinput>
</rdf:RDF>

