[Zope] Problems with buildout and zope.interface

2008-07-25 Thread Christian Scholz
to be reason enough to move away from buildout and the Zope Component Architecture). Hope somebody can help :-) Thanks! Christian -- Christian Scholz video blog: http://comlounge.tv COM.lounge blog: http://mrtopf.de/blog Luetticher

[Zope] Re: Problems with buildout and zope.interface

2008-07-25 Thread Christian Scholz
? -- Christian -- Christian Scholz video blog: http://comlounge.tv COM.lounge blog: http://mrtopf.de/blog Luetticher Strasse 10Skype: HerrTopf 52064 Aachen Homepage: http

[Zope] Re: Problems with buildout and zope.interface

2008-07-25 Thread Christian Scholz
Baiju M wrote: Christian Scholz wrote: Daniel Nouri wrote: The solution to this one is quite simple: Use virtualenv with --no-site-packages and then use bin/python to run bootstrap.py Ok, thanks. How do I deploy such a thing? I guess virtualenv then has to run by the one setting up his

[Zope] Re: Problems with buildout and zope.interface

2008-07-25 Thread Christian Scholz
Daniel Nouri wrote: Christian Scholz: Daniel Nouri wrote: The solution to this one is quite simple: Use virtualenv with --no-site-packages and then use bin/python to run bootstrap.py Ok, thanks. How do I deploy such a thing? I guess virtualenv then has to run by the one setting up his

[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

[Zope] Re: DTML problem

2005-08-05 Thread Christian Scholz
Hi! Phil Beardmore wrote: I have a problem writing a DTML page. The page will be used to submit data to an SQL database, and the page itself is working great, however I get all of my users to login via an LDAP server using LDAPUserFolder. Once logged in the users can complete a form,

[Zope] Re: Zope Foundation Update

2005-07-28 Thread Christian Scholz
Hi! Thanks for this long and balanced post. Far less heated than I (or other hot people of the community) can produce. I hope ZC will take time to answer your legitimate questions... I'd also prefer some answers by some independant people regarding legal topics (as long as it can be told

[Zope] Re: Zope Foundation Update

2005-07-27 Thread Christian Scholz
Hi! Andrew Milton wrote: You took someone else's work and claimed it as your own. This is the worst crime you can commit in the Open Source world. I think it's not really a discussion about Open Source here as it should make no difference to the Zope community whether ZC or ZEA is

[Zope] Re: ZSQLMethod conditional insert

2005-07-27 Thread Christian Scholz
Hi! Might something like this help? INSERT INTO table (a,b,c) VALUES (1,2,3) ON DUPLICATE KEY UPDATE c=c+1; So this will catch errors and instead do the update. Available from version 4.1.0 on as the docs say. See also the docs: http://dev.mysql.com/doc/mysql/en/insert.html --

[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

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

[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

[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

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

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

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

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

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

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 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] dtml-if newbie question

2000-11-09 Thread Christian Scholz
HI! I want to select from a select menu, 3 amounts: 1000, 5000 or 1. After this, the form action method should reply: - "this is not much" if 1000 was selected, - "this is ok" if 5000 was selected, - "this is very much" if 1 was selected Now my form method looks like this:

Re: [Zope] zope.org down from Thu Nov 9 12:00:00 GMT 2000 to present?searchable list archive not linked to from mailman page; console-based zope development. list archive not linked to from mailman page; console-based zope development.

2000-11-09 Thread Christian Scholz
Hi! * Colin Leath [EMAIL PROTECTED] [001109 14:00]: I'm trying to figure out ways of managing/developing with Zope from a unix console, using text editors, text browsers and so on. I often work from emacs, accessing the ZODB through the Zope FTP Server on port 8021. The syntax for

Re: [Zope] redirect

2000-10-24 Thread Christian Scholz
Hi! how to for that function REDIRECT understand a variable. ex. dtml-call "RESPONSE.redirect('http://zope.org/index.htm?cod=dtml-var test')" use dtml-call "RESPONSE.redirect('http://zope.org/index.htm?cod='+test)" with "" you will enter the python scope and thus no dtml syntax is

Re: [Zope] Content Management System

2000-10-12 Thread Christian Scholz
Hi! I know you can restrict permissions on just about every available method, and I am aware of the current skinnable zope project, which may improve the situation drastically. But I'm interested to know, how many of you offer the Zope TTW interface to clients as a content management

[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

[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

Re: [Zope] Redirecting from Python?

2000-08-04 Thread Christian Scholz
): return 1 else: self.REQUEST.RESPONSE.redirect('blahblahblah') You actually should use something like this: raise 'Redirect','http://my.server/my/path' -- christian -- Christian Scholz MrTopf@IRC COM.lounge

Re: [Zope] Reg. ZMySQLDA/MySQLdb-0.1.2 - compile/install ..

2000-07-28 Thread Christian Scholz
Don't use any patch or whatever.. This should solve your problems. cheers, Christian -- Christian Scholz MrTopf@IRC COM.lounge http://comlounge.net/ communication design

Re: [Zope] Session

2000-07-28 Thread Christian Scholz
any problems by now. (using it with cookies and with sessionid in the url). I've heard that someone had problems with FSSession, though. About the rest I dunno anything ;-) -- christian -- Christian Scholz MrTopf@IRC COM.lounge

Re: [Zope] HELP

2000-07-28 Thread Christian Scholz
this on the IRC today and did not itamar say that globbing is possible since 2.2 ? (Actually there's also some globbing related stuff in the Source code, especially the vocabulary settings..) cheers, Christian -- Christian Scholz MrTopf@IRC

Re: [Zope] Hot fix and 2.20

2000-07-15 Thread Christian Scholz
Hi! On Fri, Jul 14, 2000 at 08:19:14PM -0700, michael montagne wrote: Do I have this right? I do not have to install the hot fix if I just installed the recently released version 2.2.0 final. correct? yes, right! -- mr topf ___ Zope maillist -

Re: [Zope] DTML?

2000-07-10 Thread Christian Scholz
Hi! Brian Lloyd wrote: snip id is sometimes a method (not always though ;-) This is one of the things on my List Of Evil Things that should be changed one day in Zope3K :) RANT type="angry,frustrated" How about the nasty hacky mess that is DTML? Some priceless artifacts that need

[Zope] ZOracleDA and Zope 2.2?

2000-06-27 Thread Christian Scholz
Hi! I am encountering the following problem when using ZOracleDA 2.2.0b1 and Zope 2.2b2/3: When creating a ZOracle Connection and giving the wrong connection string then whole Zopes crashs with OCI_ERROR at oci_8.c:283 ORA-12541: TNS:no listener OCI_ERROR at oci_8.c:283 ORA-12154: TNS:could

[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

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 seen

Re: [Zope] html templates?

2000-06-19 Thread Christian Scholz
Hi! On Mon, 19 Jun 2000, Christian Scholz wrote: Imagine writing simple html templates with some custom tags which are quite abstract like addresslist. Then write some Python Product (or there might be one Product to make this happen a little simpler) which implements these tags

[Zope] How to call methods of a ZClass superclass?

2000-06-12 Thread Christian Scholz
Hi there! I have a little problem here: I created two ZClasses, where one is derived from the other, let's say A is the superclass and B the subclass. In both classes I created a dtml method called foobar(). Now when I have an instance of B, called b, and I call foobar on it, as in dtml-with