Re: [Zope] MySql problems

2005-12-01 Thread Tino Wildenhain
Am Donnerstag, den 01.12.2005, 15:45 -0800 schrieb Dennis Allison: > I have not yet completed differential diagnosis, but I was hoping someone > had encountered a similar problem and could pass along a fix/workaround. > > The following program fails to do the writes -- > > import MySQLdb > init

Re: [Zope] exUserFolder will not redirect to login page

2005-12-01 Thread Gaute Amundsen
On Friday 02 December 2005 04:31, Andrew Milton wrote: > +---[ Gaute Amundsen ]-- > > | Hi all. > | > | I have this problem with our zope based CMS system. > | No matter what i try I can not make the docLogin page appear when it > | should. If I go directly to it, it works f

[Zope] Re: MySql problems

2005-12-01 Thread Wolfram Kraus
Dennis Allison wrote: I have not yet completed differential diagnosis, but I was hoping someone had encountered a similar problem and could pass along a fix/workaround. The following program fails to do the writes -- import MySQLdb initdb='test' dbuser = 'root' dbpass = 'XX' host = 'loca

Re: [Zope] Beginners Confusion

2005-12-01 Thread Eric Banford
At 07:46 AM 12/2/2005 +1100, Russell Winter wrote: I would like to have each user having, either,  their own Zope Server binaries (including CMF & Plone) in their home directories.   Alternatively, as multiple Zope Servers on one machine will be quite a resource eater, (probably 20 main users) is

Re: [Zope] exUserFolder will not redirect to login page

2005-12-01 Thread Andrew Milton
+---[ Gaute Amundsen ]-- | Hi all. | | I have this problem with our zope based CMS system. | No matter what i try I can not make the docLogin page appear when it should. | If I go directly to it, it works fine, but otherwise the http auth poppup | appears. I don't know wh

[Zope] MySql problems

2005-12-01 Thread Dennis Allison
I have not yet completed differential diagnosis, but I was hoping someone had encountered a similar problem and could pass along a fix/workaround. The following program fails to do the writes -- import MySQLdb initdb='test' dbuser = 'root' dbpass = 'XX' host = 'localhost' connection = MySQ

[Zope] exUserFolder will not redirect to login page

2005-12-01 Thread Gaute Amundsen
Hi all. I have this problem with our zope based CMS system. No matter what i try I can not make the docLogin page appear when it should. If I go directly to it, it works fine, but otherwise the http auth poppup appears. I have started looking into exUserFolder, and putting in zLOG.LOG statements

Re: [Zope] Python Classes and Zope.

2005-12-01 Thread Willi Langenberger
According to Dario Lopez-Kästen: > But in order to even display it in a zpt I must transmogrify it into a > special zope-object, and *that* is not so easy as I have discovered. > > In my case I am not so interested in importing the moduels or classes > into a Script(Python) - I have allready pas

Re: [Zope] Python Classes and Zope.

2005-12-01 Thread Chris McDonough
So far I have not had any success with anything else than writing special methods in my Classes that converts the objects to dictionaries before passing them to the zpt or Script(Python) in question. But that feels like a very awkward way of doing things, and it makeas it *very* difficu

[Zope] Beginners Confusion

2005-12-01 Thread Russell Winter
    Folks,   I am trying to understand instances, any help or suggestions would be appreciated as I am obviously missing something.   I would like to have each user having, either,  their own Zope Server binaries (including CMF & Plone) in their home directories.   Alternatively, as multipl

Re: [Zope] Python Classes and Zope.

2005-12-01 Thread Jean-Marc Orliaguet
Dario Lopez-Kästen wrote: Andreas Jung wrote: --On 1. Dezember 2005 13:46:55 -0200 Fernando Lujan <[EMAIL PROTECTED]> wrote: There's a way to use a Python class inside zope? For instance, if I create the class: class MyClass: "A simple example class" i = 12345 def f(self

Re: [Zope] Python Classes and Zope.

2005-12-01 Thread Dario Lopez-Kästen
Andreas Jung wrote: --On 1. Dezember 2005 13:46:55 -0200 Fernando Lujan <[EMAIL PROTECTED]> wrote: There's a way to use a Python class inside zope? For instance, if I create the class: class MyClass: "A simple example class" i = 12345 def f(self): return 'hello wor

Re: [Zope] How to Update files that are already uploaded

2005-12-01 Thread Tino Wildenhain
Am Donnerstag, den 01.12.2005, 12:12 -0500 schrieb Mike Jakowlew: > Hi all, > > I'm trying to update a file thats already been uploaded. I can't > figure out what command to use, > "update_data"/"manage_upload"/"manage_edit". I've settled (so far) on > manage_upload but it doesn't work. I get the

[Zope] Short tutorial on I18n with Five

2005-12-01 Thread Philipp von Weitershausen
I'm happy to announce that I've finally managed to document the internationalization (i18n) features that Five has brought to the Zope 2 world since version 1.1: http://worldcookery.com/files/fivei18n This short tutorial compares current Zope-2-based solutions to the i18n problem with the Zope 3

[Zope] Re: index_object() and bobobase_modification_time with different ZCatalogs

2005-12-01 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul Winkler wrote: > On Thu, Dec 01, 2005 at 04:44:41PM +, [EMAIL PROTECTED] wrote: > >>Hello, >> >>does anybody knows a different possibility to beware the >>bobobase_modification_time of the given object from the following code? >> >> >>def my

Re: [Zope] How to Update files that are already uploaded

2005-12-01 Thread Jonathan
File objects have a method called 'update_data' which may be of use.  Look in the ZopeBook for details.   Jonathan - Original Message - From: Mike Jakowlew To: zope@zope.org Sent: Thursday, December 01, 2005 12:12 PM Subject: [Zope] How to Update files that are

[Zope] How to Update files that are already uploaded

2005-12-01 Thread Mike Jakowlew
Hi all,I'm trying to update a file thats already been uploaded. I can't figure out what command to use, "update_data"/"manage_upload"/"manage_edit". I've settled (so far) on manage_upload but it doesn't work. I get the error: Error Type: AttributeError Error Value:  manage_uploadmy code:___

Re: [Zope] index_object() and bobobase_modification_time with different ZCatalogs

2005-12-01 Thread Paul Winkler
On Thu, Dec 01, 2005 at 04:44:41PM +, [EMAIL PROTECTED] wrote: > Hello, > > does anybody knows a different possibility to beware the > bobobase_modification_time of the given object from the following code? > > > def my_index_object(object, catalogs=['myPointerCatalog', 'mySearchCatalog']):

[Zope] index_object() and bobobase_modification_time with different ZCatalogs

2005-12-01 Thread jens . walte
Hello, does anybody knows a different possibility to beware the bobobase_modification_time of the given object from the following code? def my_index_object(object, catalogs=['myPointerCatalog', 'mySearchCatalog']): for cat in catalogs: object.default_catalog = cat object.in

Re: [Zope] Python Classes and Zope.

2005-12-01 Thread Fernando Lujan
Andreas Jung wrote: Sure you can but you shouldn't..you start with one class and at the end you have an application with tons of such codeyou can program that way but you shouldn't :-) I will print and read the Developer Book... ;) Thanks for all replies. Fernando Lujan ___

Re: [Zope] Displaying pdf

2005-12-01 Thread Chris Withers
Peter Bengtsson wrote: I think you'd have to set a content-disposition header if you did that... Surely the File object that this 'some.pdf' is has all of this taken care of in its index_html() No, OFS.Image.File sets no content-disposition header. cheers, Chris -- Simplistix - Content Ma

Re: [Zope] Python Classes and Zope.

2005-12-01 Thread Andreas Jung
--On 1. Dezember 2005 17:00:09 +0100 Martijn Pieters <[EMAIL PROTECTED]> wrote: PythonScripts are for *scripting* not for implementing complex logic and for programming tasks that require classes. PythonScripts don't provide full Python functionality that why were are talking of *Restriced P

Re: [Zope] Python Classes and Zope.

2005-12-01 Thread Peter Bengtsson
Sure you can. It's usually called a "python product" and there are tutorials and examples you can download from zope.org The core principle is to inherit from one of the zope classes that you can find in zope/lib/python/OFS such as Folder, SimpleItem or UniqueItem. When you do that you can save in

Re: [Zope] Python Classes and Zope.

2005-12-01 Thread Martijn Pieters
> PythonScripts are for *scripting* not for implementing complex > logic and for programming tasks that require classes. PythonScripts don't > provide full Python functionality that why were are talking of *Restriced > Python*. Consider writing your functionality as Python product. And sometimes a

Re: [Zope] Python Classes and Zope.

2005-12-01 Thread Andreas Jung
--On 1. Dezember 2005 13:46:55 -0200 Fernando Lujan <[EMAIL PROTECTED]> wrote: There's a way to use a Python class inside zope? For instance, if I create the class: class MyClass: "A simple example class" i = 12345 def f(self): return 'hello world' Can I invoke the

Re: [Zope] Python Classes and Zope.

2005-12-01 Thread Martijn Pieters
On 12/1/05, Fernando Lujan <[EMAIL PROTECTED]> wrote: > There's a way to use a Python class inside zope? > > For instance, if I create the class: > > class MyClass: > "A simple example class" > i = 12345 > def f(self): > return 'hello world' > > Can I invoke the following co

[Zope] Python Classes and Zope.

2005-12-01 Thread Fernando Lujan
There's a way to use a Python class inside zope? For instance, if I create the class: class MyClass: "A simple example class" i = 12345 def f(self): return 'hello world' Can I invoke the following code inside a Python Script? x = MyClass() x.f() I'm using zope 2.7.x series

[Zope] Re: PHPGateway Issues

2005-12-01 Thread Asad Habib
I think I may have to compile PHP with the 'cgi-recirect' option enabled. I created a PHParser object, placed a 'Hello World' PHP script in it, and then tried to view it. I got the same error as before: '/usr/bin/php' may not be a PHP-CGI program. The result from the program is empty(0 byte).

Re: [Zope] Creating a DTM Document in a variable folder.

2005-12-01 Thread Paul Winkler
On Thu, Dec 01, 2005 at 07:40:38AM +, Chris Withers wrote: > Jonathan Cyr wrote: > >You might want to use index_html rather than index.html in this > >example. The dot means other things in Python, and index.html is a > >carryover from filesystem webservers. My impression is that the > >ac

Re: [Zope] Re: PHPGateway Issues

2005-12-01 Thread Asad Habib
Okay, so now I am getting the following error when trying to serve phpmyadmin via PHPGateway: File not found! The URL you have loaded has not been found on this server. The docroot is set to '/Library/WebServer/Documents/phpmyadmin' and phpmyadmin has an index.php file. Any help would be great

[Zope] Re: PHPGateway Issues

2005-12-01 Thread Asad Habib
Hello Wei. Okay, please keep me posted when you determine what the problem is. If anyone else on the Zope group has experienced a similar problem, please let me know. Thanks. On Thu, 1 Dec 2005, Wei He wrote: Quoting Asad Habib <[EMAIL PROTECTED]>: Hello. The message came from Mac OS X. Als

Re: [Zope] Displaying pdf

2005-12-01 Thread Peter Bengtsson
On 12/1/05, Chris Withers <[EMAIL PROTECTED]> wrote: > Peter Bengtsson wrote: > > pdffile = getattr(context, 'some.pdf') > > return pdffile > > I think you'd have to set a content-disposition header if you did that... > Surely the File object that this 'some.pdf' is has all of this taken care of in

Re: [Zope] Displaying pdf

2005-12-01 Thread Richard Smith
Chris Withers wrote: Peter Bengtsson wrote: pdffile = getattr(context, 'some.pdf') return pdffile I think you'd have to set a content-disposition header if you did that... cheers, Chris I wondered, but it seems to work in both firefox and ie without. Rick

Re: [Zope] Creating a DTM Document in a variable folder.

2005-12-01 Thread Chris Withers
J Cameron Cooper wrote: self.plone['try-me'] or getattr (which doesn't use acquisition.) Eh? What on earth gave you that idea? Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___ Zope ma

Re: [Zope] Creating a DTM Document in a variable folder.

2005-12-01 Thread Chris Withers
Jonathan Cyr wrote: You might want to use index_html rather than index.html in this example. The dot means other things in Python, and index.html is a carryover from filesystem webservers. My impression is that the acquisition mechanism doesn't like ids with a dot, in some circumstances. Ac

Re: [Zope] Displaying pdf

2005-12-01 Thread Chris Withers
Peter Bengtsson wrote: pdffile = getattr(context, 'some.pdf') return pdffile I think you'd have to set a content-disposition header if you did that... cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk

Re: [Zope] dtml2zpt

2005-12-01 Thread Tino Wildenhain
Andreas Jung schrieb: --On 1. Dezember 2005 00:02:07 -0800 Infor Gates <[EMAIL PROTECTED]> wrote: Dear zopist I am trying to pick up zpt. Is there an equivalent command in zpt for Ferkel! ;)) ___ Zope maillist - Zope@zope.org http://mail.z

Re: [Zope] dtml2zpt

2005-12-01 Thread Tino Wildenhain
Am Donnerstag, den 01.12.2005, 00:02 -0800 schrieb Infor Gates: > Dear zopist > > I am trying to pick up zpt. Is there an equivalent > command in zpt for RESPONSE.redirect('home_page'). There is, but the whole point of ZPT is not to do so but to separate logic, presentation and design. Usually

Re: [Zope] dtml2zpt

2005-12-01 Thread Andreas Jung
--On 1. Dezember 2005 00:02:07 -0800 Infor Gates <[EMAIL PROTECTED]> wrote: Dear zopist I am trying to pick up zpt. Is there an equivalent command in zpt for pgpeS5xZTeyAJ.pgp Description: PGP signature ___ Zope maillist - Zope@zope.org ht

[Zope] dtml2zpt

2005-12-01 Thread Infor Gates
Dear zopist I am trying to pick up zpt. Is there an equivalent command in zpt for http://music.yahoo.com/unlimited/ ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists -