[Zope] Re: Preserving Context

2006-12-12 Thread Javier Subervi
From: Suresh V [EMAIL PROTECTED] 1. Are you using container rather than context in your script? 2. You can pass your context as a mycontext parameter to your script. I have this line of code in my page template for handling the 404 errors: div align=center tal:condition=here/hasSearchEngine I

Re: [Zope] Get a reference to the latest transaction

2006-12-12 Thread Jonathan
- Original Message - From: Peter Bengtsson [EMAIL PROTECTED] To: Jonathan [EMAIL PROTECTED] Cc: Zope Generic List zope@zope.org Sent: Tuesday, December 12, 2006 10:11 AM Subject: Re: [Zope] Get a reference to the latest transaction that doesn't get a particular transaction, it gets

[Zope] Re: Preserving Context

2006-12-12 Thread Suresh V
Javier Subervi wrote: div align=center tal:condition=here/hasSearchEngine(mycontext) And where is mycontext defined? You will need a tal:define=mycontext here or something. I tested the following script with mycontext as a passed parameter: return 0 catalog = '' try: catalog =

Re: [Zope] Re: Preserving Context

2006-12-12 Thread Jonathan
In your root folder you could have a script that accesses the ZCatalog which can be called from any subfolder and can tell where it was called from... try the following: create a python script (tst) in your root folder that contains the following code: return str(traverse_subpath) then

[Zope] Re: Preserving Context

2006-12-12 Thread Javier Subervi
752 From: Jonathan [EMAIL PROTECTED] In your root folder you could have a script that accesses the ZCatalog which can be called from any subfolder and can tell where it was called from... try the following: create a python script (tst) in your root folder that contains the following

[Zope] Re: Preserving Context

2006-12-12 Thread Javier Subervi
From: Jonathan [EMAIL PROTECTED] What version of zope are you running? (I am running zope 2.9.2 on a linux box). 2.7.8 I didn't put it in 'root' since root isn't automatically called. I put it in a folder called 's' which is automatically called, then I also explicitly called it in the URL.

Re: [Zope] Re: Preserving Context

2006-12-12 Thread Jonathan
The script routine doesn't have to be located in root. traverse_subpath is populated using the names of all subfolders that occur after the script file name in the URL. So if your URL is: http:/my.web.site/folderA/scriptA/folderB/folderC, then scriptA will receive a traverse_subpath

Re: [Zope] Re: Preserving Context

2006-12-12 Thread Maciej Wisniowski
As far as I understand you have script (say it has id 'handle_404_scr') that handles 404 errors in 'root' folder. In this script you have something like: div align=center tal:define=mycontext here tal:condition=here/hasSearchEngine(mycontext) Yes? So how is this script called? I'm

[Zope] Re: Preserving Context

2006-12-12 Thread Javier Subervi
From: Jonathan [EMAIL PROTECTED] The script routine doesn't have to be located in root. traverse_subpath is populated using the names of all subfolders that occur after the script file name in the URL. So if your URL is: http:/my.web.site/folderA/scriptA/folderB/folderC, then scriptA will

Re: [Zope] Re: Preserving Context

2006-12-12 Thread Jonathan
- Original Message - From: Javier Subervi To: zope@zope.org Sent: Tuesday, December 12, 2006 2:29 PM Subject: [Zope] Re: Preserving Context The script routine doesn't have to be located in root. traverse_subpath is populated using the names of all subfolders that occur after the

[Zope] Zeo question

2006-12-12 Thread ian
Hi, Hope you can help 1. I am having trouble connecting a zope client to a zeo database.The server and client are in different goegraphical locations and behind different proxies and firewalls. I read that they communicate using a 'custom RPC protocol'...what does this mean and does it have

Re: [Zope] Zeo question

2006-12-12 Thread Maciej Wisniowski
2. I can create a custom skin on each zope (in reality plone) instance right or is each zope instance is just a mirror of the other? Nope. It is something different. In general ZEO is about sharing ZODB (Zope Object Database) between few Zope instances. There is no mirroring but just one ZODB.

Re: [Zope] Zeo question

2006-12-12 Thread Jonathan
- Original Message - From: Maciej Wisniowski [EMAIL PROTECTED] To: ian [EMAIL PROTECTED] Cc: zope@zope.org Sent: Tuesday, December 12, 2006 4:00 PM Subject: Re: [Zope] Zeo question 2. I can create a custom skin on each zope (in reality plone) instance right or is each zope instance

[Zope] tal conditional help

2006-12-12 Thread David Bear
I have a page template that div tag to insert another template. currently I do div content=structure here/form.pt form template /div I rely on the form.pt object to exist in the folder where the template is called from. This works okay. However, I think it would be wise to put some kind of

Re: [Zope] tal conditional help

2006-12-12 Thread Bernd Dorn
On 12.12.2006, at 22:57, David Bear wrote: I have a page template that div tag to insert another template. currently I do div content=structure here/form.pt form template /div use the or operator it also catches errors div content=structure here/form.pt | nothing form template /div

[Zope] if object does not exist in python

2006-12-12 Thread David Bear
Can anyone show me code examples of a script that checks for the existences of a named object? -- David Bear phone: 602-496-0424 fax:602-496-0955 College of Public Programs/ASU University Center Rm 622 411 N Central Phoenix, AZ 85007-0685 Beware the IP portfolio, everyone will be suspect

Re: [Zope] if object does not exist in python

2006-12-12 Thread Andrew Milton
+---[ David Bear ]-- | Can anyone show me code examples of a script that checks for the | existences of a named object? if namedObject in container.objectIds(): # object exists else: # doesn't Checks for named object inside the container that the script is in. --

[Zope-dev] Zope Tests: 7 OK

2006-12-12 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list. Period Mon Dec 11 12:00:00 2006 UTC to Tue Dec 12 12:00:00 2006 UTC. There were 7 messages: 7 from Zope Unit Tests. Tests passed OK --- Subject: OK : Zope-2.6 Python-2.1.3 : Linux From: Zope Unit Tests Date: Mon Dec 11 21:06:04 EST 2006

[Zope-dev] ZopeVersionControl bug

2006-12-12 Thread Rob Miller
is there a current maintainer or development process for ZopeVersionControl? there's been a little bit of activity lately, but it's still in CVS. in any event, CMFEditions (a versioning system for Plone) depends on ZVC, and it seems that some recent changes to Zope's DateTime implementation

Re: [Zope-dev] ZopeVersionControl bug

2006-12-12 Thread Jens Vagelpohl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 13 Dec 2006, at 03:44, Rob Miller wrote: is there a current maintainer or development process for ZopeVersionControl? there's been a little bit of activity lately, but it's still in CVS. in any event, CMFEditions (a versioning system for

Re: [Zope-Perl] Re: PyPerl MULTI_PERL Problem

2006-12-12 Thread Pedro Algarvio, aka, s0undt3ch
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pedro Algarvio, aka, s0undt3ch wrote: Both codes are available on net: ISPMan- http://ispman.cvs.sourceforge.net/ispman/ ISPManCCP - http://ccp.ufsoft.org/browser That way you can look at how I'm using PyPerl, and also point me to some