[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 us

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

2007-10-26 Thread Christian Scholz
ot knowing if _handleText() is also 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

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. Pa

Re: [Zope-dev] serialization with Ape

2003-06-11 Thread Christian Scholz
ust 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 ;-): &

[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 i

Re: [Zope-dev] SiteAccess improvements

2001-11-26 Thread Christian Scholz
Hi! > I haven't been very deep down into site access things, mainly because I get > confused each time I try to set up a SiteRoot. :-) > So it may be that some of the features I'd like are already availiable, but > that I just didn't know. :-) > > Anyway, this is what I would like: > > The virt

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 wer

[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] 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 > re

[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 o

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 <

[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: a and I thought I will get three a's as output.. instead I get 6.. If I do size=3 it's ok (3 output), if I do size=4 or 5 o

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

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

2001-05-18 Thread Christian Scholz
just for general information: Apache was not the problem.. PCGI also shows the problem.. a Zope binary release did not help it too bad.. ;-) -- christian On Fri, May 18, 2001 at 05:36:47PM +0200, Christian Scholz wrote: > Hi! > > Another test without apache inbetween is still ru

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 also

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

2001-05-18 Thread Christian Scholz
e process leaking memory? > > ----- Original Message - > From: "Christian Scholz" <[EMAIL PROTECTED]> > To: "Chris McDonough" <[EMAIL PROTECTED]> > Cc: "Christian Scholz" <[EMAIL PROTECTED]>; "Tino Wildenhain" > <

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

2001-05-18 Thread Christian Scholz
S: ab tests on my development host are still running without problems.. strange.. > > - Original Message ----- > From: "Christian Scholz" <[EMAIL PROTECTED]> > To: "Chris McDonough" <[EMAIL PROTECTED]> > Cc: "Christian Scholz" <[

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 benchmark

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 req

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

2001-05-03 Thread Christian Scholz
Hi! > Alright... so you're getting an OSError 11, and you're using Zope 2.3.1. > > errno 11 is "temporarily unavailable" which means about as much as "foobar > feeblefar" as far as I'm concerned ;-). great :) > Though you've said the -M log isn't helpful here, I think it is. If this is > happ

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

2001-05-03 Thread Christian Scholz
What Python version are you using? > > - 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! > > >

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

[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 (exceptions.OSError:[Errno 11] Die Ressource ist zur Zeit nicht verf?gbar [/opt/Zope-2.3.1-src/ZServer/me

[Zope-dev] ZPatterns Rack question..

2001-04-28 Thread Christian Scholz
Hi! First of all one note to the sql attribute provider: My problem seems to be solved now. Actually it was quite easy.. dunno why it took the long way.. thanks anyway to Phillip and Steve! But I have another problem now: I have some rack with persistent objects in it. Now I want to migrate my s

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 > >

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 ful

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! > >Yes, as said above it registers for handlers and attributes. Also > >_objectChanged and _SetAttributeFor() etc. are called. They're just not > called > >directly after creating the object (when being in the same request that is). > > _objectChanged() is a transaction-commit message. You

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 a

[Zope-dev] ZPatterns AttributeProvider question

2001-04-20 Thread Christian Scholz
tterns wizard has 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 a

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

Re: [Zope-dev] ZPatterns Attribute Provider Problem

2001-04-09 Thread Christian Scholz
t seems so) -- christian On Mon, Apr 09, 2001 at 07:31:41PM +0200, Christian Scholz wrote: > 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, i

[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 ob

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

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 met

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 a

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: > > > (or objectItems). then just say or you might change the ... to (hope this is right, have not tested it.) First form directly builds a list of the objects instead of the Ids, second form first looks up the id with _['sequence-item'] and the

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 b

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,

[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 o

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'v

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

[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 fly

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 valu

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 *

[Zope-dev] ZPatterns and SQL

2001-02-19 Thread Christian Scholz
Hi there! I have a little problem with my Specialist and DataSkins regarding storage inside an sql database. Mainly I don't know what to put under the "loading by accessing attribute" in the Storage tab of the Rack. I have the following SkinScript: WITH QUERY getCustomer(customer_id=self.i

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 lik

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 someth

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&q

[Zope-dev] ZPatterns question

2000-12-27 Thread Christian Scholz
o define the attribute they know. Would be nice as I could then hold everything together in one place (the specialist that is) without requiring to install something also in the Products folder of the Control Panel. That's it for now, I will keep experimenting then.. :) cheers, Chri

[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 manage_d

[Zope-dev] Redirection and Authentication

2000-08-29 Thread Christian Scholz
strange problems with a redirect from python some time ago. Back then it did not commit the database transaction in Oracle. After putting a get_transaction().commit() before the redirect made things work again.) cheers, Christian -- Christian Scholz

[Zope-dev] dcoracle problem..

2000-07-03 Thread Christian Scholz
Hi! Maybe someone has had this before and knows a solution: I am having a stored procedure proc1 and I am calling it twice: dbc=DCOracle.Connect("secret!") c=dbc.cursor() dbc.procedures.my_pkg.proc1(c) print c.fetchall() c.close() dbc.procedures.my_pkg.proc1(c) print c.fetchall() In proc1 it

[Zope-dev] DCOracle patch

2000-07-02 Thread Christian Scholz
Hi! I encountered the following bug in the recent DCOracle this week: When trying to use stored procedures with more than 1 out parameter like create or replace procedure testproc ( pname out string, pid out int) AS BEGIN pname:='test1'; pid:=100; END; / and calling it from python w

[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

[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: [Zope] Please test this Zope 2.2 beta 1 ZSQLMethods fix...

2000-06-23 Thread Christian Scholz
Hi! > I think that you have hit it on the head - we're trying *hard* to > make Zope harder to fool :^) Try adding the following to your > class statement, for example: > > class MyClass: > > __allow_access_to_unprotected_subobjects__=1 Just a question: Is this documented somewhere.. I've s