[Zope-dev] The new SiteAccess and __no_before_traverse__?

2000-06-25 Thread Christian Scholz
Hi! I am playing around with SiteAccess and Zope 2.2b1 right now and I wonder if it's still possible to disable SiteAccess (actually an AccessRule) by using __no_before_traverse__? It seems not to and I am a bit trapped right now.. ;-) Even deleting SiteAccess from the Products-Directory didn't

[Zope-dev] Re: The new SiteAccess and __no_before_traverse__?

2000-06-25 Thread Christian Scholz
Hi! - Original Message - From: "Christian Scholz" [EMAIL PROTECTED] I am playing around with SiteAccess and Zope 2.2b1 right now and I wonder if it's still possible to disable SiteAccess (actually an AccessRule) by using __no_before_traverse__? It seems not to and

[Zope-dev] Redirection and Authentication

2000-08-29 Thread Christian Scholz
on().commit() before the redirect made things work again.) cheers, Christian -- Christian Scholz MrTopf@IRC COM.lounge http://comlounge.net/ communication design

[Zope-dev] some suggestion..

2000-09-28 Thread Christian Scholz
Hi! While trying to code some python Product I had the need for extending manage_delObjects in some Folderlike object. I simply want to call the the ObjectManager's version of it and then do my own stuff afterwards (like deleting some other dependant objects). Unfortunately when calling

Re: [Zope-dev] ZPatterns question

2001-01-03 Thread Christian Scholz
Hi! Actually should answer to these posts... ;-) On Thu, Dec 28, 2000 at 03:11:37PM -0500, Steve Spicklemire wrote: Hi Christian, Well, nobody else answered that I saw... so I'll take a crack at your questions "CS" == Christian Scholz [EMAIL PROTECTED] writes:

Re: [Zope-dev] ZPatterns question

2001-01-03 Thread Christian Scholz
Hi Steve! On Thu, Dec 28, 2000 at 10:45:46PM +, Steve Alexander wrote: Steve Spicklemire wrote: CS 2. Is it planned to provide something like a virtual folder CS which acts like a normal object manager but is controlled via CS ZPatterns (so actually something like

Re: [Zope-dev] ZPatterns question

2001-01-04 Thread Christian Scholz
Hi! Well, virtual in the sense as a specialist is no real folder but can provide content from different sources. Thus what I mean is some mechanism which emulates objectIds() etc. so it looks to the user (and the ones using it via dtml) like a normal folder object. Somehow like the

Re: [Zope-dev] ZPatterns and SQL

2001-02-19 Thread Christian Scholz
Hi! So as the item is an instance of my ZClass containing also an company_name attribute it will always return the item and because of that the Rack thinks it's already there. So why is this happening? What do I need to change? You need to use an attribute which the object has *if and

Re: [Zope-dev] ZPatterns and SQL

2001-02-19 Thread Christian Scholz
Hi! So I shouldn't define it inside the ZClass propertysheet? Do I understand this right? (I remember having problems when using properties not defined in a sheet somewhere.. or am I mistaken completely somehow? ;-) You can't do this with a load attribute, because a default value will

[Zope-dev] initializing objects in ZPatterns

2001-02-21 Thread Christian Scholz
Hi! I just encountered another problem with ZPatterns (well not exactly with ZPatterns but the way I use it.. ;-) I have some Specialist with a normal rack which stores data persistently in the ZODB. Everytime I am creating a new object I want to create an object of another specialist on the

Re: [Zope-dev] initializing objects in ZPatterns

2001-02-22 Thread Christian Scholz
Hi! I just encountered another problem with ZPatterns (well not exactly with ZPatterns but the way I use it.. ;-) I have some Specialist with a normal rack which stores data persistently in the ZODB. Everytime I am creating a new object I want to create an object of another

Re: [Zope-dev] initializing objects in ZPatterns

2001-02-22 Thread Christian Scholz
Hi! To get company_address stored, you can probably do something like: your_object.manage_changeProperties(company_address=your_object.company_address) or possibly your_object.propertysheets.NameOfSheet.manage_changeProperties... depending on what kind of object you're using. I've now

[Zope-dev] ZClass propertysheets

2001-02-27 Thread Christian Scholz
Hi! I am just wondering if it's possible to get hold of the properties of a propertysheet of a ZClass without instanciating it. So when instanciating I would just do map=object.propertysheets[1].propertyMap() and get all information of my ZClass instance object. So is this also possible

Re: [Zope-dev] getPhysicalPath?

2001-03-16 Thread Christian Scholz
Hi! Ahh... thanks Brian. Thats a new one to me :) To me, aswell. Is this documented somewhere? ;-) And can someone explain to us where the differences between aq_chain and getPhysicalPath() are? Actually getPhysicalPath() seems also to walk up aq_parent. Or am I missing something? regards,

Re: [Zope-dev] Playing with DateTime

2001-03-16 Thread Christian Scholz
Hi! IMHO, the best approach would be to make mxDateTime available separately from DateTime in the _ variable. That would avoid breaking any code, but allow anyone who wanted to use mxDateTime that option from within Zope. I think a product that adds mxDateTime to the _ variable would be

Re: [Zope-dev] Adding a property to a batch of objects ?

2001-03-20 Thread Christian Scholz
Hi! I wanted to do sonething like this: dtml-in "objectIds(['DTML Document']) dtml-call manage_addProperty('foo','bar','string') /dtml-in You might want to use dtml-in "objectValues(['DTML Document'])" (or objectItems). then just say dtml-call "manage_addProperty(...)" or you might

Re: [Zope-dev] More Core Session Tracking Woes :-(

2001-03-26 Thread Christian Scholz
Hi! The setup: -Zope 2.2.4 -Core Session Tracking 0.7 -Cookie session ID manager (path=/,lifetime=0) -Internal Session Data Manager (timeout set to 60 minutes) This seems to randomly (but sometimes very frequently) loose session data items :-( FYI, you are not the only one.. I also

Re: [Zope-dev] More Core Session Tracking Woes :-(

2001-03-26 Thread Christian Scholz
Hi! FYI, you are not the only one.. I also experienced that. That's also the reason why I am back to using SQLSession again.. How hard was that to swap in? depends. Of course the API is not the same.. So it depends if you've factored out the session stuff in some dtml or python method

Re: [Zope-dev] FTP interface being worked on?

2001-03-27 Thread Christian Scholz
Hi! By the way -- is it me, or is the current Import/Export interface broken? I tried to select multiple objects to export, but I can only get the first one to actually be exported. It's not just you.. but never thought about whether this might be a bug ;-) -- christian -- COM.lounge

[Zope-dev] ZPatterns Attribute Provider Problem

2001-04-09 Thread Christian Scholz
Hi everybody! I am trying to write some attribute provider for storing data inside an SQL table as I am bored of typing parameter lists over and over again (e.g. in every ZSQL method, in every SkinScript method etc.) The problem now is that adding a new row to the table (and thus adding a new

Re: [Zope-dev] Re: zope nautilus cabal

2001-04-15 Thread Christian Scholz
Hi! Basically, 'access contents information' isn't a great permission. If you turn if off, life gets horrible, if you leave it on, bits hang out. I'd prefer to see something like: - Access Contents Information via HTTP - Access Contents Information via FTP ...etc... This sounds more as if

[Zope-dev] ZPatterns AttributeProvider question

2001-04-20 Thread Christian Scholz
as any idea on what I might do wrong? (I can also send someone the source code if this message seems too confusing ;-) regards, Christian Scholz PS: What I am trying to create is an sql attribute provider for ZPatterns which is some replacement for manually creating the zsql method and SkinScript m

Re: [Zope-dev] ZPatterns AttributeProvider question

2001-04-21 Thread Christian Scholz
Hi! Good evening everybody! I have some question regarding attribute and agent programming for ZPatterns. I have some provider which is registered for the "handlers" and "attributes" methods and some attributes. My problem is when trying to create a new object and directly

Re: [Zope-dev] ZPatterns AttributeProvider question

2001-04-22 Thread Christian Scholz
Hi! A little update.. Actually I was mistaken and SetAttributeFor() is called. Just _objectChanged() is not called in that case.. and thus my attributes are not stored to the database. Also commit() is not called at all in this case. It get's called once when the subtranscation is committed but

Re: [Zope-dev] ZPatterns AttributeProvider question

2001-04-22 Thread Christian Scholz
Hi! Just a quick note as it's quite late already (more tomorrow): In the early days of ZPatterns, I assumed that I would create SQL providers, LDAP providers, and suchlike gizmos. Later, it became clear that it was more useful to have a simple "glue" language to allow harnessing the full

Re: [Zope-dev] ZPatterns AttributeProvider question

2001-04-23 Thread Christian Scholz
Hi! So here's more :) def _objectAdding(self,client, _tmap={ None:AddedStatus, DeletedStatus:ChangedStatus, ChangedStatus:AddedStatus } ): t = client._getTokenFor(self) s = t.status t.status =

[Zope-dev] another Zope hanging..

2001-05-03 Thread Christian Scholz
Hi! I also now have some problems with a hanging zope. I got something like this in my stupid logfile: 2001-05-03T13:44:39 ERROR(200) ZServer uncaptured python exception, closing channel select-trigger (pipe) at 81d64c8 (exceptions.OSError:[Errno 11] Die Ressource ist zur Zeit nicht

Re: [Zope-dev] another Zope hanging..

2001-05-03 Thread Christian Scholz
Hi! What Python version are you using? That's 1.5.2 MySQLDA is MySQL-python-0.3.3.tar.gz and ZMySQLDA-2.0.4.tar.gz (if this makes any problems..) Zope is 2.3.1 as suerly have noticed.. :) cheers, christian - Original Message - From: Christian Scholz [EMAIL PROTECTED

Re: [Zope-dev] another Zope hanging..

2001-05-03 Thread Christian Scholz
? - Original Message - From: Christian Scholz [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 03, 2001 11:05 AM Subject: [Zope-dev] another Zope hanging.. Hi! I also now have some problems with a hanging zope. I got something like this in my stupid logfile: 2001-05

Re: [Zope-dev] another Zope hanging..

2001-05-03 Thread Christian Scholz
Hi! most problems with hanging zope come from external RDBMS-access. Lots do, but lots don't... You wont see anything useful in the logs because there are some objects published before the *sql-method is hanging. If you see a request come into ZServer, and you see the request go

Re: [Zope-dev] another Zope hanging..

2001-05-18 Thread Christian Scholz
Hi! Just FYI: The server still hangs once a day and another one is doing the same.. It even does this when simply accessing one page or image over and over again. More precisely I've started the server and did ab -n 10 -c 10 http://foo.bar/we/pics/someimg.gif (ab being the apache

Re: [Zope-dev] another Zope hanging..

2001-05-18 Thread Christian Scholz
development host are still running without problems.. strange.. - Original Message - From: Christian Scholz [EMAIL PROTECTED] To: Chris McDonough [EMAIL PROTECTED] Cc: Christian Scholz [EMAIL PROTECTED]; Tino Wildenhain [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, May 18, 2001 10

Re: [Zope-dev] another Zope hanging..

2001-05-18 Thread Christian Scholz
Message - From: Christian Scholz [EMAIL PROTECTED] To: Chris McDonough [EMAIL PROTECTED] Cc: Christian Scholz [EMAIL PROTECTED]; Tino Wildenhain [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, May 18, 2001 10:13 AM Subject: Re: [Zope-dev] another Zope hanging.. Hi! Just FYI

Re: [Zope-dev] another Zope hanging..

2001-05-18 Thread Christian Scholz
Hi! Another test without apache inbetween is still running now.. Could apache and it's proxypass be the problem? I am simply using ProxyPass and ProxyPassReverse in front of Zope in a simple virtual site environment.. Apache version is 1.3.19 Where is the bug then? In Zope or in Apache? I

Re: [Zope-dev] getPersistentItemIDs not cooperating?

2001-05-23 Thread Christian Scholz
Hi! It works.. partially. For some reason it looks like getPersistentItemIDs does not always return a *complete* list. I need to run this method several times to completely exhaust the Rack's storage. Thoughts? The only way I ever create Track objects is via a different method that is

[Zope-dev] dtml-in bug?

2001-05-28 Thread Christian Scholz
Hi! Dunno if it's again my strange setup, but I have some problem with dtml-in or maybe I simply didn't get something right.. Well, I used the following dtml code: html dtml-in expr=[1,2,3,4,5,6] size=4 abr /dtml-in /html and I thought I will get three a's as output.. instead I get 6.. If I

Re: [Zope-dev] dtml-in bug?

2001-05-28 Thread Christian Scholz
Hi! ok, some more people told me now about it.. ;-) It's not that intuitive nevertheless.. (IMHO) ;-) cheers and thx, Christian On Mon, May 28, 2001 at 05:20:39PM +0200, Tino Wildenhain wrote: Hi Christian, --On Montag, 28. Mai 2001 15:38 +0200 Christian Scholz [EMAIL PROTECTED] wrote

[Zope-dev] memory eating Zope..

2001-06-03 Thread Christian Scholz
Hi there! I got another problem with my Zope server and that seems to be a memory hole.. I am using Zope 2.3.2 with Python 1.5.2 now on SuSE 7.0 (this seems to solve the hanging problem, which appeared on 7.1) and I use Python Script, ZSQL methods, ZMySQLDA and ZPatterns. Now using top I see

Re: [Zope-dev] memory eating Zope..

2001-06-04 Thread Christian Scholz
Hi! It looks like you're leaking requests. This is often the consequence of setting an attribute on the REQUEST object which is aquisition wrapped. For instance: REQUEST.adtmldoc = REQUEST['PARENTS'][0] When requests leak, references to all the objects referenced within the request

[Zope-dev] cycles and mem leaks and Zpatterns..

2001-06-13 Thread Christian Scholz
Hi! As some of you might know, I still have my mem leak problem.. I've now looked again at some code and discovered some cycle in ZPatterns.. Means: I have a Price class and some PriceWinner class, which reference each other via some SkinScript. Could this lead to a leak then? I am not

Re: [Zope-dev] Zope crash in select_trigger

2001-11-06 Thread Christian Scholz
Hi! I once had similar problems and as far as I remember also with SuSE 6.4. I think it stopped when using SuSE 7.1 (and 7.0 had the problems, too I think). I was using python 1.5.2 and various Zope versions.. so maybe the pymalloc hint would have worked for me then, too. Actually the crashes

[Zope-dev] serialization with Ape

2003-06-11 Thread Christian Scholz
Hi list! :) I am just playing around with Ape (very cool, btw :) and wondering how it can be used from the outside, e.g. not controlled by transactions. Main idea is to manually copy parts of the ZODB to the filesystem (from a product). I first tried the transaction based process, as I found it

Re: [Zope-dev] serialization with Ape

2003-06-11 Thread Christian Scholz
a copying between two ZODBs I'd say. On Wed, Jun 11, 2003 at 10:12:46AM -0400, Shane Hathaway wrote: Christian Scholz wrote: I then detected the fascades in io.py which I tried to use (dunno if they're thought to be used for such a purpose actually ;-): root_mapper, conns = createMapper

Re: [Zope-dev] serialization with Ape

2003-06-11 Thread Christian Scholz
Hi again! Christian Scholz wrote: root_mapper, conns = createMapper(fspath) ei=ExportImport(root_mapper,conns) ei.exportObject(object) Ah-ha, I just realized what went wrong. You need to tell exportObject() where to export. PathKeychainGenerator refused to guess. Try

[Zope-dev] Possible performance problem in Page Template engine?

2007-10-26 Thread Christian Scholz
called from somewhere else etc.) So any Page Template experts here who can confirm this? cheers, Christian -- Christian Scholz video blog: http://comlounge.tv COM.lounge blog: http://mrtopf.de/blog Luetticher Strasse 10

[Zope-dev] Re: Possible performance problem in Page Template engine?

2007-10-26 Thread Christian Scholz
Ok, little correction here: I used ploneout on plone-trunk and it then uses Zope trunk and thus 2.11. This problem seems to be a new problem coming from refactoring: r78767 | andreasjung | 2007-08-12 12:55:45 +0200 (So, 12 Aug 2007) | 4 lines - Collector #2339: ZPT: fixed unicode issue when