[Zope-dev] [Fwd: [Squishdot] global name 'MessageDialog' is not defined]

2005-10-25 Thread Chris Withers
Hi All, Has MessageDialog gone away or has it just moved? cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ---BeginMessage--- A posting has been added to the following site which you moderate: 'Squishdot: The Open Source

Re: [Zope-dev] [Fwd: [Squishdot] global name 'MessageDialog' is not defined]

2005-10-25 Thread Jens Vagelpohl
On 25 Oct 2005, at 07:19, Chris Withers wrote: Hi All, Has MessageDialog gone away or has it just moved? cheers, Chris grep is your friend? jens ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No

Re: [Zope-dev] [Fwd: [Squishdot] global name 'MessageDialog' is not defined]

2005-10-25 Thread Chris Withers
Jens Vagelpohl wrote: Has MessageDialog gone away or has it just moved? grep is your friend? Well, that's not gonna tell me anything useful if it's changed its name... I'm hoping whoever made the change can let me know... Chris -- Simplistix - Content Management, Zope Python Consulting

Re: [Zope-dev] Why is test.py silent by default

2005-10-25 Thread Chris Withers
Tres Seaver wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The default usecase for running tests should be a developer making changes and running tests. In this case, silent mode is unhelpful; it gives no feedback until the very end of the run, which takes a **long** time for the whole

[Zope-dev] Experiencing TypeError: The object is not a PySECURITY_ATTRIBUTES object

2005-10-25 Thread Chris Mattmann
Title: Experiencing TypeError: The object is not a PySECURITY_ATTRIBUTES object Hi Folks, Im experiencing the following error on windows XP SP2. The error is described at: http://mail.zope.org/pipermail/zope-checkins/2005-June/029495.html Ive installed: Zope 2.8.3-final for windows from the

Re: [Zope-dev] Experiencing TypeError: The object is not a PySECURITY_ATTRIBUTES object

2005-10-25 Thread Chris Mattmann
Hello all, Okay, I have reproduced the error even with Zope 2.8.2-final on win32. The same PySECURITY_ATTRIBUTES object error appears even with 2.8.2. Any ideas? Thanks, Chris On 10/25/05 9:37 AM, Chris Mattmann [EMAIL PROTECTED] wrote: Hi Again, It seems that the plone.org site

Re: [Zope-dev] Experiencing TypeError: The object is not a PySECURITY_ATTRIBUTES object

2005-10-25 Thread Tim Peters
[Chris Mattmann] Okay, I have reproduced the error even with Zope 2.8.2-final on win32. The same PySECURITY_ATTRIBUTES object error appears even with 2.8.2. Any ideas? Short of not using Plone wink, see this Collector item, which I expect is the same issue:

[Zope-dev] New testrunner on the Zope 2 trunk.

2005-10-25 Thread Jim Fulton
I just checked in a new test runner on the trunk. It is mostly backward compatible with the old test runner. You can get help on the test runner by running it with -h. There is more extensive documentation in lib/python/zope/testing/testrunner.txt. Note that the new test runner complains if

RE: [Zope-dev] Experiencing TypeError: The object is not aPySECURITY_ATTRIBUTES object

2005-10-25 Thread Mark Hammond
[Chris Mattmann] Okay, I have reproduced the error even with Zope 2.8.2-final on win32. The same PySECURITY_ATTRIBUTES object error appears even with 2.8.2. Any ideas? Short of not using Plone wink, see this Collector item, which I expect is the same issue:

[Zope] how to get absolute url from a ZCatalog-brain

2005-10-25 Thread robert rottermann
hi there, is there a way to get the absolute url from a brain returned by a catalog serch without waking the object up. brain.absolute_url() returns the catalog's url. thanks Robert ___ Zope maillist - Zope@zope.org

Re: [Zope] how to get absolute url from a ZCatalog-brain

2005-10-25 Thread Peter Bengtsson
Without waking up the object you have to use Meta data in the catalog. Unless there's some physical path already on the brain object which can help you calculate the absolute url. With waking up the object is done like this: brain.getObject().absolute_url() On 10/25/05, robert rottermann [EMAIL

Re: [Zope] how to get absolute url from a ZCatalog-brain

2005-10-25 Thread Andreas Jung
--On 25. Oktober 2005 09:56:13 +0100 Peter Bengtsson [EMAIL PROTECTED] wrote: Without waking up the object you have to use Meta data in the catalog. Unless there's some physical path already on the brain object which can help you calculate the absolute url. With waking up the object is done

[Zope] Cannot show blob image from sql server

2005-10-25 Thread Thomas G. Apostolou
Hi all, i have made an external method to connect and get data from an sql server 2000, and then show them in a table. All works fine but one of the columns i retrieve is a BLOB image witch makes my external method to crash. So i used z SQL Method (witch is not prefared because there is a lot of

[Zope] SQLOS, Zope2 and Five

2005-10-25 Thread David Pratt
SQLObject has been updated since original release of SQLOS. It appeared to me yesterday, reviewing the trunk of SVN of SQLOS that it looks like it has being brought up to date. New versions of Five (1.2 and 1.3) also appear to be released soon. I am anxious to move to a different approach to

[Zope] img src=... problem with Firefox

2005-10-25 Thread Thomas G. Apostolou
Hi all, i have a problem with Firefox. As you can see bellow i am retrieving some data from sql server with the use of external method GetPrList and then show taht data. The data of _['sequence-index']==2 is the full name of an image file to the file system. So i use: a href=file///dtml-var

Re: [Zope] img src=... problem with Firefox

2005-10-25 Thread Peter Bengtsson
1. You're not closing the img tag correctly. 2. This problem wouldn't have happened if you would have used ZPT instead of DTML 3. Don't crosspost to multiple lists. On 10/25/05, Thomas G. Apostolou [EMAIL PROTECTED] wrote: Hi all, i have a problem with Firefox. As you can see bellow i am

Re: [Zope] img src=... problem with Firefox

2005-10-25 Thread Andreas Pakulat
On 25.10.05 17:03:09, Thomas G. Apostolou wrote: i have a problem with Firefox. No you don't, you actually misunderstand something about URL's.. a href=file///dtml-var expr=str(_['sequence-item']) That is not a correct URL, it's only a part of it. What you really want is: file://dtml-var ...

Re: [Zope] img src=... problem with Firefox

2005-10-25 Thread Andreas Pakulat
On 25.10.05 15:18:11, Peter Bengtsson wrote: 1. You're not closing the img tag correctly. Why's that? Because it's not closed? If he's using HTML 4.01 Transitional this is perfectly legal. 2. This problem wouldn't have happened if you would have used ZPT instead of DTML Yes it would, the

Re: [Zope] img src=... problem with Firefox

2005-10-25 Thread Peter Bengtsson
On 10/25/05, Andreas Pakulat [EMAIL PROTECTED] wrote: On 25.10.05 15:18:11, Peter Bengtsson wrote: 1. You're not closing the img tag correctly. Why's that? Because it's not closed? If he's using HTML 4.01 Transitional this is perfectly legal. Because this is illegal HTML: a

[Zope] Filesystem Page Template lowercase-ifying all my tags

2005-10-25 Thread Floyd May
I have a product that installs some filesystem page templates into a plone site's portal_skins. The templates are exactly the same as their created-through-ZMI counterparts, yet the filesystem templates render with all their tags lower-cased, whereas the ZMI-created templates preserve case. Why is

[Zope] Deleted users still have local roles?

2005-10-25 Thread Robert Boyd
Hello, I'm seeing that if I assign a role on an object to a user, then delete the user, the object still lists the user as having the local role - and I can assign the non-existant user more local roles, too. Thus, no referential integrity between users and local roles. I suppose any of my code

Re: [Zope] img src=... problem with Firefox

2005-10-25 Thread Andreas Pakulat
On 25.10.05 16:35:56, Peter Bengtsson wrote: On 10/25/05, Andreas Pakulat [EMAIL PROTECTED] wrote: On 25.10.05 15:18:11, Peter Bengtsson wrote: 1. You're not closing the img tag correctly. Why's that? Because it's not closed? If he's using HTML 4.01 Transitional this is perfectly

[Zope] FileUpload get_size() method?

2005-10-25 Thread Jonathan Cyr
Hello, Does a FileUpload object have a get_size() method? I'd like to limit the size of an uploaded file before commiting it to the ZODB. I've been Googling for a while. Is it handled differently on a FileUpload object. I'm planning to process with a Python Script. Could someone point me

Re: [Zope] Zope/Editor problems

2005-10-25 Thread bruno modulix
Håkan Johansson a écrit : I need some sort of content editor and have looked at both Epoz and Kupu. My problem is that I can't get any of them to work. If I install Epoz, Zope crashes without any error messages. Have you looked in the logs ? (snip) Are these editors even usable by me? I

Re: [Zope] FileUpload get_size() method?

2005-10-25 Thread Tino Wildenhain
Am Dienstag, den 25.10.2005, 14:43 -0400 schrieb Jonathan Cyr: Hello, Does a FileUpload object have a get_size() method? I'd like to limit the size of an uploaded file before commiting it to the ZODB. I've been Googling for a while. Is it handled differently on a FileUpload object.

Re: [Zope] FileUpload get_size() method?

2005-10-25 Thread Jonathan Cyr
I think I get it, except... What's the meaning of 120, I'm not familar with that operator. How would I adjust it for different sizes? ... as I instantly regret blowing-off bit operators, as "something I wont need"... -Jon Tino Wildenhain wrote: Am Dienstag, den 25.10.2005, 14:43 -0400

Re: [Zope] FileUpload get_size() method?

2005-10-25 Thread Tino Wildenhain
Am Dienstag, den 25.10.2005, 16:42 -0400 schrieb Jonathan Cyr: I think I get it, except... What's the meaning of 120, I'm not familar with that operator. How would I adjust it for different sizes? Well, you could (and should!) study the python documentation. But this one is only an

Re: [Zope] FileUpload get_size() method?

2005-10-25 Thread Jonathan Cyr
Thanks for your time, much appreciated. -Jon Tino Wildenhain wrote: Am Dienstag, den 25.10.2005, 16:42 -0400 schrieb Jonathan Cyr: I think I get it, except... What's the meaning of 120, I'm not familar with that operator. How would I adjust it for different sizes?

[Zope-DB] Managing Connections with SQL Methods

2005-10-25 Thread Seth Gottlieb
Hi, I have a Python class that my Zope application uses to talk to a relational database (MySQL for now). I am using a Z SQL Connection (ZMySQLDA) object to handle DB connectivity. When I initialize, I get a handle of the connection object like this: import Zope setattr(self,