Re: [Zope-dev] zope.globalrequest?

2009-01-18 Thread Dieter Maurer
to the global site ;-) But few people in Zope 3 land separate site dependent and site independent code despite some cases where the global site does make problems. -- Dieter ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo

Re: [Zope-dev] zope.globalrequest?

2009-01-17 Thread Dieter Maurer
Martin Aspeli wrote at 2009-1-17 11:36 +: Dieter Maurer wrote: Christian Theune wrote at 2009-1-16 09:06 +0100: I noticed 'zope.globalrequest' on the PyPI RSS feed today and wonder about it. IMHO this implements an anti-pattern in an official way without a warning that this needs

Re: [Zope-dev] zope.globalrequest?

2009-01-16 Thread Dieter Maurer
site why should we not have a global request? When Zope is used as a Web Application Server, it is quite natural to expect a request. -- Dieter ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev

Re: [Zope-dev] zope.globalrequest?

2009-01-16 Thread Dieter Maurer
is handled. It is good to be able to access both site and request in a standard way. -- Dieter ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http

Re: [Zope-dev] zope.globalrequest?

2009-01-16 Thread Dieter Maurer
Zope is used as a web application server -- whether it is Zope 2 or Zope 3. so a zope2.* namespace seems perfect. -- Dieter ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML

Re: [Zope] how to set anonymous access to authorized content?

2009-01-12 Thread Dieter Maurer
again. Why does the Python script with proxy role not work (I did not understand this)? It should! -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists

Re: [Zope] how to set anonymous access to authorized content?

2009-01-10 Thread Dieter Maurer
': []}, (), {}, None)) TypeError: (see above) Apparently, the problem occurs when your Python Script ZSQL_query (not the ZSQL method) is called. Apparently, the Python Script is called without parameters but it requires a parameter my_string. -- Dieter

Re: [Zope-dev] Deprecate ITerms in zope.app.form? [Re: zope.browser?]

2009-01-06 Thread Dieter Maurer
Martijn Faassen wrote at 2008-12-19 22:18 +0100: On Fri, Dec 19, 2008 at 7:50 PM, Dieter Maurer die...@handshake.de wrote: Martijn Faassen wrote at 2008-12-18 16:27 +0100: ... You should, and likely are, shipping your package with a recommended list of versions. Apparently, grok

Re: [Zope] how to set anonymous access to authorized content?

2009-01-06 Thread Dieter Maurer
authorized site list_robot works, of course. You can try Python scripts with proxy roles to access protected objects. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related

Re: [Zope-dev] Next Step to Bug Resolution???

2008-12-19 Thread Dieter Maurer
my problems without tight coupling with the core developpers who usually do not have my problems and tend not see them as very high priority. -- Dieter ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev

Re: [Zope-dev] Deprecate ITerms in zope.app.form? [Re: zope.browser?]

2008-12-19 Thread Dieter Maurer
is overused (as many new features). -- Dieter ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http

Re: [Zope] Storing unicode in ZODB objects

2008-12-16 Thread Dieter Maurer
header itself. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman

Re: [Zope] Storing unicode in ZODB objects

2008-12-15 Thread Dieter Maurer
the chosen charset in content_type, e.g. content_type='text/plain; charset=utf-8'. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org

Re: [Zope-dev] adapting to None

2008-12-13 Thread Dieter Maurer
. Maybe, this is already supported? Then, maybe, you can use it? -- Dieter ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman

Re: [Zope-dev] adapting to None

2008-12-13 Thread Dieter Maurer
Chris Withers wrote at 2008-12-13 10:18 +: Dieter Maurer wrote: I think that in some cases, it would be useful for an adapter factory to say 'I cannot handle this case' and then the adapter lookup is continued. Maybe, this is already supported? Then, maybe, you can use it? That's exactly

Re: [Zope-dev] adapting to None

2008-12-13 Thread Dieter Maurer
to circumvent the adaptation semantics). Thus, I hope, you will not get your wish :-) -- Dieter ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http

Re: [Zope] single zsql on multiple tables or multiple zsql s

2008-12-13 Thread Dieter Maurer
the parameters come directly from the request as ZSQL methods suggest (note that the request content is inherently unsafe). -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding

Re: [Zope] The proxy server received an invalid response from an upstream server.

2008-12-13 Thread Dieter Maurer
the causes. For this, knowledge of your operating system would be necessary. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman

Re: [Zope] Unknown directive for xmlrpc

2008-12-13 Thread Dieter Maurer
after that all typical ZCML features are available. Not sure, whether this is your problem -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http

Re: [Zope] How manage error with zsql

2008-12-11 Thread Dieter Maurer
support non string exceptions. If you observe problems, then this might be the reason. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org

Re: [Zope] How manage error with zsql

2008-12-09 Thread Dieter Maurer
with the information. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )

Re: [Zope-dev] Plone/Zeocluster performances problems

2008-12-08 Thread Dieter Maurer
that the sentence inside the (...) is correct. There may be cases where one thread per instance can be recommended but in general the default (4 threads per instance) is not that bad. This is especially true when you have a bit more expensive queries against a relational database. -- Dieter

Re: [Zope] Multiple zope instances using the same storage

2008-12-08 Thread Dieter Maurer
it with ZEO and mount it in each of your Zope instances. There is little reason to have 4 identical Data.fs once you have decided to use ZEO anywhere. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope

Re: [Zope] pb with attach file

2008-12-08 Thread Dieter Maurer
string. Not sure that it will work, though. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http

Re: [Zope] How manage error with zsql

2008-12-06 Thread Dieter Maurer
occured' -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo

Re: [Zope] POSKeyError

2008-12-02 Thread Dieter Maurer
) reference. You can use the fsrefs utility to check for such dangling references. It will tell you about the referencing object and its broken references. You can fetch the referencing object and try to fix it (there is a HowTo somewhere how you can approach this). -- Dieter

Re: [Zope] problem with ms sql server

2008-12-02 Thread Dieter Maurer
[dtml method] dtml-try dtml-call actualiza_info All Ok dtml-except Error, but not showed :( /dtml-if Omit the dtml-try (why does it end with /dtml-if?) and see whether you get more information. -- Dieter ___ Zope maillist - Zope@zope.org

Re: [Zope] database conflict error on startup - disabling Five

2008-12-01 Thread Dieter Maurer
problems with older versions. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http

Re: [Zope-DB] Zope - Oracle Database Connection

2008-12-01 Thread Dieter Maurer
. Essentially, you need to start Zope in the foreground and it must not run in production mode. Under *nix (and Windows with very recent Zope versions), zopectl fg can be used for this. Watch out Could not import . -- Dieter ___ Zope-DB mailing

Re: [Zope] database conflict error on startup - disabling Five

2008-11-30 Thread Dieter Maurer
). In principle, others are threatened as well if the are using registerPackage. I do not have Zope 2.9 with its Five. In Zope 2.11, the Five code appears to have been cleaned up. This means, upgrading to Zope 2.11 may be another option for you. -- Dieter

Re: [Zope] database conflict error on startup - disabling Five

2008-11-29 Thread Dieter Maurer
to date. There is a configuration option for this (*enable*product*). Set it to on in this distinguished client and to off in all others. This avoids ConflictErrors during startup. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org

[Zope] erroneous use of aq_parent (was: Where is my BtreeFolder stored?)

2008-11-29 Thread Dieter Maurer
imported from Acquisition. This is a function and obviously does not have an objectIds. You need to apply aq_parent to some object to (hopefully) get an object with objectIds. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo

Re: [Zope] repairing zodb in 2.10.5

2008-11-19 Thread Dieter Maurer
use fsrefs to locate the containers containing dangling references. Then, you can overwrite the broken content in these containers (there is a HowTo around somewhere). This way, you can fix some objects -- maybe sufficient to become workable again. -- Dieter

Re: [Zope] FunctionalTestCase commits transactions

2008-11-16 Thread Dieter Maurer
savepoints (which probably means that all resource managers need to be ZODB connections). -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http

Re: [Zope] FunctionalTestCase commits transactions

2008-11-04 Thread Dieter Maurer
the Zope publisher rather than calling it directly in order to have control how transactions are handled. Especially, I used subtransactions instead of top level transactions to avoid the bug reported by Peter. -- Dieter ___ Zope maillist - Zope

Re: [Zope-dev] zope.interface: verifyObject vs properties

2008-10-19 Thread Dieter Maurer
can be passed in. -- Dieter ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org

Re: [Zope-dev] Errors / Warnings in Zope log - what to do?

2008-10-19 Thread Dieter Maurer
of zope.sqlalchemy (discussed in this mailing list). These problems are said to be fixed in the svn version. Do your problems also occur with the svn version? -- Dieter ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev

Re: [Zope] Zope failing to load causing 503 error

2008-10-19 Thread Dieter Maurer
correctly when you contact it directly (without Apache)? If so, then your problem lies on the Apache side. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists

Re: [Zope-dev] zope.interface: verifyObject vs properties

2008-10-17 Thread Dieter Maurer
not define methods (probably a bug). -- Dieter ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http

Re: [Zope-dev] zope.interface: verifyObject vs properties

2008-10-17 Thread Dieter Maurer
instantiation? Just a guess... Indeed: as Python lacks a means to define instance attributes on the class, the presence of attributes can (reliably) only be checked on instances. -- Dieter ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman

Re: [Zope-dev] zope.interface: verifyObject vs properties

2008-10-17 Thread Dieter Maurer
Thomas Lotze wrote at 2008-10-17 19:42 +0200: Dieter Maurer [EMAIL PROTECTED] schrieb: ... Instance properties (descriptor on the class) may not define methods (probably a bug). I don't understand what you're saying in that last sentence; can you elaborate? verifyObject/verifyClass is likely

Re: [Zope-dev] zope.interface: verifyObject vs properties

2008-10-16 Thread Dieter Maurer
Thomas Lotze wrote at 2008-10-15 20:55 +0200: Dieter Maurer [EMAIL PROTECTED] wrote: I fear your must describe your proposed change more precisely: Nothing to be afraid of here ;o) When your problem is the stated use case: verifyObject fails because something necessary for the interface

Re: [Zope-dev] zope.interface: verifyObject vs properties

2008-10-15 Thread Dieter Maurer
want to provide a better (more informative) exception (not fails to implement but ComponentLookupError), then I am with you. -- Dieter ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML

Re: [Zope] Read File using python script

2008-10-15 Thread Dieter Maurer
). -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )

Re: [Zope] use path function on a python script

2008-10-14 Thread Dieter Maurer
with the page it should render as PDF. But it cannot be that difficult to contruct the corresponding urls. It is very unlikely that you need the path function for this. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo

Re: [Zope] [Off-Topic] KSS ugly? (was: Re: use path function on a python script)

2008-10-14 Thread Dieter Maurer
which are executed. In the non AJAX case, the complete page is reloaded -- with often is more work for both server and browser. Thus, indeed, the non Ajax modul is simpler than the KSS model -- but not necessarily less expensive. -- Dieter ___ Zope

Re: [Zope] Old zope instance migration to Ubuntu 8.04?

2008-10-14 Thread Dieter Maurer
. A Zope 2.8 version or newer cannot understand the corresponding data. The corresponding objects must be converted to more modern types in a pre-2.8 instance. Thus, it might be necessary to bring up an older version again before you can use a modern Zope version. -- Dieter

Re: [Zope] changing permissions in python

2008-10-14 Thread Dieter Maurer
for a single permission (e.g. the View permission). You call it directly on the object for which you want to change the permissions, e.g. the dtml method. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts

Re: [Zope] use path function on a python script

2008-10-12 Thread Dieter Maurer
path(path_expr) in a PageTemplate with the current variable binding expressed as variable_binding. For simple cases, this function could be implemented in untrusted code. Complex cases will require access to the TALES implementation and therefore probably trusted code. -- Dieter

[Zope] [Off-Topic] KSS ugly? (was: Re: use path function on a python script)

2008-10-11 Thread Dieter Maurer
Garito wrote at 2008-10-8 14:22 +0200: I'm agree with you, Tino. Plone has a lot of ugly features (as KSS, for instance) Why is KSS ugly? Reading the documentation, I found it quite attractive -- Dieter ___ Zope maillist - Zope@zope.org http

Re: [Zope] VHM / traverse subpath interaction bug?

2008-10-11 Thread Dieter Maurer
VirtualHostBase and VirtualHostRoot. Especially, (silly) PythonScripts as one of the steps there, were likely to fail -- in a different way. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML

Re: [Zope] use path function on a python script

2008-10-11 Thread Dieter Maurer
('path', val, econtext). This is what comes nearest to the TALES function path. As you can see, it is not a simple function but one provided with lots of context information (behind the scenes). The econtext contains the template's namespace. -- Dieter

Re: [Zope] Zope hangs

2008-10-11 Thread Dieter Maurer
Nico Grubert wrote at 2008-10-9 10:17 +0200: ... If your system gets slow but still occasionally responds, you can use ZopeProfiler to find out, where the time is spend. Ensure to use real time as the timer (not cpu time). Hi Dieter thank you very much for the information. This morning

Re: [Zope] [Off-Topic] KSS ugly?

2008-10-11 Thread Dieter Maurer
Andreas Jung wrote at 2008-10-11 06:05 -0400: On 11.10.2008 2:21 Uhr, Dieter Maurer wrote: Garito wrote at 2008-10-8 14:22 +0200: I'm agree with you, Tino. Plone has a lot of ugly features (as KSS, for instance) Why is KSS ugly? Reading the documentation, I found it quite attractive You

Re: [Zope] [Off-Topic] KSS ugly? (was: Re: use path function on a python script)

2008-10-11 Thread Dieter Maurer
. However in addition, KSS handles the case with/without JS in a transparent way. As my colleagues intensively fight (and put much work into it) with our requirment must work with and without JS, I find this quite attractive. -- Dieter ___ Zope

Re: [Zope] change password through script messes up session

2008-10-06 Thread Dieter Maurer
is at an appropriate place (the updateCredentials assumes to be called in the normal request -- not somewhere during traversal). -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding

Re: [Zope] VHM / traverse subpath interaction bug?

2008-10-05 Thread Dieter Maurer
Chris Withers wrote at 2008-10-3 15:32 +0100: Dieter Maurer wrote: Worse yet, if you go to: http://localhost:8080/VirtualHostBase/https/example.com:443/test/VirtualHostRoot/_vh_something/x/y/z ...you get: ['virtual_hosting', '/something', 'x', 'y', 'z'] Anyone got any ideas as to what's

Re: [Zope] anyone seen these errors with Zope 2.11.1?

2008-10-03 Thread Dieter Maurer
Chris Withers wrote at 2008-10-2 07:57 +0100: Dieter Maurer wrote: Chris Withers wrote at 2008-9-30 13:45 +0100: I recently ugpraded to Zope 2.11.1 and now get the following errors every so often: ... Module Products.PageTemplates.unicodeconflictresolver, line 69, in resolve Module

Re: [Zope] VHM / traverse subpath interaction bug?

2008-10-03 Thread Dieter Maurer
the traversal steps leading to the root behave normally, this works fine. But, if someone places objects with unusual traversal behaviour on the way to the virtual root (such as a Script (Python)), it may not work. -- Dieter ___ Zope maillist

Re: [Zope] Zope hangs

2008-10-03 Thread Dieter Maurer
Nico Grubert wrote at 2008-10-2 10:13 +0200: These entries should not be the one that cause your problems (they are not computationally expensive). Do you see other entries as well? Thank you very much for your answer, Dieter. There are 2 entries from in the DeadlockDebugger's output

Re: [Zope] concerns with nfs

2008-10-01 Thread Dieter Maurer
system. Read/write mounted storages may get locking problems (as locking over NFS requires some infrastructure). -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related

Re: [Zope] Moving zope data.fs

2008-10-01 Thread Dieter Maurer
your database). After that you mount your database into the working installation and explore its content. I expect that you find something about mounting in the Zope Book (2.7 edition on plope.org) -- but I am not sure. -- Dieter ___ Zope maillist

Re: [Zope-dev] zope.component: calling an Interface and calling queryAdapter give differing results

2008-09-30 Thread Dieter Maurer
:-) -- Dieter ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo

Re: [Zope] A question about __setstate__ in Shared/DC/ZRDB/Connection.py

2008-09-30 Thread Dieter Maurer
other modications/improvements and it is not easy to separate them. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman

Re: [Zope] Strange redirect problem -- can someone assist?

2008-09-30 Thread Dieter Maurer
(browser) and server and see the detailed information about the failing redirect. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org

Re: [Zope] Zope hangs

2008-09-30 Thread Dieter Maurer
mean. Are the threads blocked? It is indeed strange that a _lock_release should end in an acquire. Delete all *.pyc and *.pyo files and see whether these peculiarity disappear. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org

Re: [Zope] anyone seen these errors with Zope 2.11.1?

2008-09-30 Thread Dieter Maurer
. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )

Re: [Zope] A question about __setstate__ in Shared/DC/ZRDB/Connection.py

2008-09-20 Thread Dieter Maurer
. As we use this feature since ages in our local Zope/ZODB version, I could provide an implementing patch (for ZODB 3.8). -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding

Re: [Zope] [Further investigations] Re: A question about __setstate__ in Shared/DC/ZRDB/Connection.py

2008-09-20 Thread Dieter Maurer
clear) memory, _p_changed in a C level attribute (that is definite) which could be set to 1 from application level but not reset (that is not sure). -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross

Re: [Zope] [Further investigations] Re: A question about __setstate__ in Shared/DC/ZRDB/Connection.py

2008-09-20 Thread Dieter Maurer
it. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )

Re: [Zope] [ZODB-Dev] Zope memory usage

2008-09-18 Thread Dieter Maurer
). -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )

Re: [Zope-dev] Zope 2: Unicode object ids and PropertyManager properties

2008-09-17 Thread Dieter Maurer
. -- Dieter ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo

Re: [Zope-dev] zope.sqlalchemy locks up transaction

2008-09-17 Thread Dieter Maurer
;) If someone could help me solve this, that would be great! We have seen similar problems and hope to understand/work around them soon. -- Dieter ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts

Re: [Zope-dev] zope.sqlalchemy locks up transaction

2008-09-17 Thread Dieter Maurer
. -- Dieter ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )

Re: [Zope] Security for objects being called

2008-09-17 Thread Dieter Maurer
__call__ is called. * give your script and its __call__ method an empty docstring. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org

Re: [Zope] 'str' object has no attribute 'other'

2008-09-17 Thread Dieter Maurer
attribut access (then the wrapping happens automatically). Otherwise, you use your_raw_object.__of__(parent) where parent is an object in the standard acquisition context. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo

Re: [Zope] how suppress http based authentication window of zope

2008-09-17 Thread Dieter Maurer
is not robust? The modern way to authentication is PluggableAuthService. There you can flexibly combine implementations of various authentication aspects very modularly. It gives you flexibility but does not increase robustness -- Dieter ___ Zope maillist

Re: [Zope-dev] SVN: z3c.pt/trunk/TODO.txt

2008-09-10 Thread Dieter Maurer
: the interpretation of unprefixed attributes is determined by the element on which they appear. The tal/metal: elements have decided that unprefixed attributes are interpreted as belonging to this namespace. -- Dieter ___ Zope-Dev maillist - Zope-Dev

Re: [Zope] DirectoryStorage product - zope won't start

2008-09-10 Thread Dieter Maurer
(and close to release the lock). It is probably very simple to adapt DirectoryStorage correspondingly. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists

Re: [Zope-dev] zope.component: calling an Interface and calling queryAdapter give differing results

2008-09-09 Thread Dieter Maurer
explicit :-) -- Dieter ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org

Re: [Zope-dev] How to use UserTrack product?

2008-09-09 Thread Dieter Maurer
of the object to be created, optionally a title). An example would be: destination.manage_addProduct['OFSP'].manage_addFile(id, content) -- Dieter ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts

Re: [Zope] How do I write to a text file from Python?

2008-09-09 Thread Dieter Maurer
an associated permission (and because it is used in the ZMI). If you use DocFinder (or even DocFinderTab), then you can easily see which methods are available in the various contexts. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org

Re: [Zope] Using page templates to generate large XML files

2008-09-06 Thread Dieter Maurer
implementation writes to a StringIO object (thus its internal infrastructure is prepared for incremental output generation) but the file to be written to it not controllable from outside. If your XML is not too complex, I would directly generate it (and not go through a PageTemplate). -- Dieter

Re: [Zope-dev] Dependencies and future of zope 3

2008-09-05 Thread Dieter Maurer
David Pratt wrote at 2008-9-3 20:32 -0300: Can we also discuss the potential of only including testing setup for dev eggs and removing testing as part of a release when the eggs are packaged to pypi or other repository for consumption. -1. This would really only save disk space -- Dieter

Re: [Zope] How do I write to a text file from Python?

2008-09-02 Thread Dieter Maurer
) 'test_content' The example shows you, that a string is accepted as file value. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org

Re: [Zope-dev] zope.component: calling an Interface and calling queryAdapter give differing results

2008-09-01 Thread Dieter Maurer
) :-) -- Dieter ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo

Re: [Zope-dev] zope.component: calling an Interface and calling queryAdapter give differing results

2008-09-01 Thread Dieter Maurer
could be I(obj1, obj2, ...) and tuple adaptation I((obj1, obj2, ...)). Of course, all other parameters would need to be keyword parameters (a good thing). Do you have a serious use case for tuple adaptation? -- Dieter ___ Zope-Dev maillist - Zope

Re: [Zope] Zope request/response question ...

2008-09-01 Thread Dieter Maurer
in the Zope configuration file. For each request, it logs 4 events: * request reached ZServer * request processing by a worker thread started * request processing by worker finished * response sent by ZServer. Such a log can be analysed with utility/requestprofiler.py. -- Dieter

Re: [Zope] How do I write to a text file from Python?

2008-08-31 Thread Dieter Maurer
and the arguments are id, file='', title='', precondition='', content_type=''. file is in fact the content that should be stored in your File object. It can be a string or a file like object. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org

[Zope-dev] zipped versus unzipped eggs (was: Re: SVN: Zope2.buildout/trunk/ Don't pin setuptools.)

2008-08-30 Thread Dieter Maurer
our observations for a single large zip (in fact, we use two: one for our application, the other for Python's runtime library) is valid for the case of many small zipped eggs. -- Dieter ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org

Re: [Zope-dev] ZPT and strict namespace mapping

2008-08-30 Thread Dieter Maurer
know most details about the newer Zope 3 PageTemplate). -- Dieter ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo

Re: [Zope-dev] zope.component: calling an Interface and calling queryAdapter give differing results

2008-08-29 Thread Dieter Maurer
Chris Withers wrote at 2008-8-29 10:25 +0100: Dieter Maurer wrote: Then, we could get rid of the {get|query}[Multi]Adapter altogether and consistently use I() with appropriate optional parameters -- what a simplification and homogenization :-) Yeah, but since when has simplification

Re: [Zope] Writing a testcase for a Plone 2.5 product - ztc.installPackage isn't available

2008-08-28 Thread Dieter Maurer
Israel Saeta PĂ©rez wrote at 2008-8-23 18:57 +0200: ... My question is: Is possible to install eggified products in zope-2.9.8 using ZopeTestCase? I think that eggified products are automatically recognized only with Zope 2.11 -- even in standard (non test) operation. -- Dieter

Re: [Zope-dev] configuration error

2008-08-24 Thread Dieter Maurer
, types.ClassType) fails now. -- Dieter ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http

Re: [Zope-dev] zope.component: calling an Interface and calling queryAdapter give differing results

2008-08-23 Thread Dieter Maurer
the implementation of I by C. With the current behavior, you can use queryAdapter(c, I) to check whether some special requirements apply and in this case use the special purpose adapter. Not that this use case had been able to convince me that the difference were justified. -- Dieter

Re: [Zope-dev] zope.component: calling an Interface and calling queryAdapter give differing results

2008-08-23 Thread Dieter Maurer
]Adapter(obj, I, ...), it may even be adequate to give I(...) an optional name parameter. Then, we could get rid of the {get|query}[Multi]Adapter altogether and consistently use I() with appropriate optional parameters -- what a simplification and homogenization :-) -- Dieter

Re: [Zope-dev] How to put , in HTML attributes?

2008-08-23 Thread Dieter Maurer
(as standard conformity is a good thing). -- Dieter ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope

Re: [Zope] Need some help to get rid of an InvalidObjectReference exception

2008-08-23 Thread Dieter Maurer
connection has the method db() (or similar) which returns the ZODB database this connection belongs to. More details in the source (ZODB.DB and ZODB.Connection). -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope

Re: [Zope] Need some help to get rid of an InvalidObjectReference exception

2008-08-23 Thread Dieter Maurer
the references to the real objects. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http

Re: [Zope] Need some help to get rid of an InvalidObjectReference exception

2008-08-19 Thread Dieter Maurer
(destination) method to create such a copy. _getCopy is defined by OFS.CopySupport.CopySource inherited by most Zope objects. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding

<    1   2   3   4   5   6   7   8   9   10   >