[Zope-dev] Problems with Zope 2.8 on FreeBSD (was Re: Problems with PageTemplates on Zope 2.8)

2005-06-30 Thread Morten W. Petersen
I have an application called the Issue Dealer which I'm porting to Zope 2.8. However, whenever I try to access a PageTemplate which makes use of a page template macro it just hangs and consumes all available CPU. Any ideas what could be wrong here, or how I could debug it? Does the server

Re: [Zope-dev] Re: Windows Builds

2005-06-30 Thread Tim Peters
[Tim Peters] Anyone else run on Windows routinely who's eager for glory? As Christian learned the hard way, it doesn't really work if running on Windows is an occasional afterthought in your daily life. [Andy McKay] Mark Hammond and I will take a look at this and see if we can help. Cool!

[Zope-dev] Extending Zope's ZConfig Schema in a Product?

2005-06-30 Thread Sidnei da Silva
Hello, I've been hitting my head against the wall for a few hours already, so I thought it would be a good time to ask before the house falls apart *wink*. I'm looking back and forth between the Zope and ZConfig sources and documentation to see if I can figure out how to have a Product (or a

Re: [Zope-dev] Extending Zope's ZConfig Schema in a Product?

2005-06-30 Thread Andrew Langmead
I'm looking back and forth between the Zope and ZConfig sources and documentation to see if I can figure out how to have a Product (or a python package) to extend Zope's ZConfig schema (a.k.a. Zope/Startup/zopeschema.xml) without having to reach into the guts of ZConfig. The config file

Re: [Zope-dev] Extending Zope's ZConfig Schema in a Product?

2005-06-30 Thread Sidnei da Silva
On Thu, Jun 30, 2005 at 10:21:40PM -0400, Andrew Langmead wrote: | The config file syntax has a %import directive that allows you to | add another package to handle certain config directive. | That package than can contain a an XML file that describes your new | configuration directives and

Re: [Zope-dev] Extending Zope's ZConfig Schema in a Product?

2005-06-30 Thread Fred Drake
On 6/30/05, Sidnei da Silva [EMAIL PROTECTED] wrote: Gosh, that looks too nice to be true. I will try that out tomorrow and write out a how-to on zope.org if it works out. It is too good to be true; sorry. Well, it is true, but it's not what you're looking for. You can't use it to extend the

[Zope] how to get info about an object (dir/type)

2005-06-30 Thread gabor
hi, while working with zope, i many times have the following problem: i find a method that i can use, and the documentation (for example) says: returns the current user. ok, but what kind of object is it? what methods does it have? usually i would simply call dir() or type() on the result

Re: [Zope] how to get info about an object (dir/type)

2005-06-30 Thread Andreas Jung
--On 30. Juni 2005 13:48:19 +0200 gabor [EMAIL PROTECTED] wrote: hi, while working with zope, i many times have the following problem: i find a method that i can use, and the documentation (for example) says: returns the current user. ok, but what kind of object is it? what methods does it

Re: [Zope] how to get info about an object (dir/type)

2005-06-30 Thread gabor
Andreas Jung wrote: --On 30. Juni 2005 13:48:19 +0200 gabor [EMAIL PROTECTED] wrote: hi, while working with zope, i many times have the following problem: i find a method that i can use, and the documentation (for example) says: returns the current user. ok, but what kind of object is it?

Re: [Zope] how to get info about an object (dir/type)

2005-06-30 Thread Jonathan
- Original Message - From: gabor [EMAIL PROTECTED] To: zope@zope.org Sent: Thursday, June 30, 2005 7:48 AM Subject: [Zope] how to get info about an object (dir/type) while working with zope, i many times have the following problem: i find a method that i can use, and the

Re: [Zope] how to get info about an object (dir/type)

2005-06-30 Thread Andreas Jung
--On 30. Juni 2005 14:04:14 +0200 gabor [EMAIL PROTECTED] wrote: Andreas Jung wrote: --On 30. Juni 2005 13:48:19 +0200 gabor [EMAIL PROTECTED] wrote: hi, while working with zope, i many times have the following problem: i find a method that i can use, and the documentation (for

Re: [Zope] how to get info about an object (dir/type)

2005-06-30 Thread Peter Bengtsson
usually i would simply call dir() or type() on the result object, but those are forbidden in zope. how do you usually solve this? External methods. You might even want to have a general debugging script lying around that you can use to exploit dir() and type() and __class__.__name__ from

Re: [Zope] how to get info about an object (dir/type)

2005-06-30 Thread Nikko Wolf
See: http://epydoc.sourceforge.net/ (which I have not yet used). Andreas Jung wrote: --On 30. Juni 2005 13:48:19 +0200 gabor [EMAIL PROTECTED] wrote: generally.. if i have a reference to an object. how do i find out what his methods are? By determining its class or meta_type and then by

Re: [Zope] how to get info about an object (dir/type)

2005-06-30 Thread Andy McKay
gabor wrote: hi, while working with zope, i many times have the following problem: i find a method that i can use, and the documentation (for example) says: returns the current user. ok, but what kind of object is it? what methods does it have? usually i would simply call dir() or

[Zope] fcForum

2005-06-30 Thread hpinson
Does anyone know the status of the fcForum product? Is it still in production? Posts on the http://fcforum.techfuel.net website seem to have gone unanswered for several months now. Harlow Pinson Indepth Learning Email: [EMAIL PROTECTED] Web: http://www.indepthl.com Voice: 505-994-2135 FAX:

[Zope] strcoll_nocase gone after moving site?

2005-06-30 Thread Daniel Dekany
I have to move a Plone site to another server (from some FreeBSD to a new Trustix), while also switching from Zope 2.7.x5 to 2.7.6, and from Python 2.3.x5 to Python 2.3.5. I have built everything from source, copied 1:1 the Products and Extension directory into a fresh new zope instance, also

[Zope] Import problem

2005-06-30 Thread George Tesseris
When I try to import a specific .zexp the following error is raised: Error Type: AttributeError Error Value: ('__new__', function __newobj__ at 0x00B8B0F0, (extension class Shared.DC.ZRDB.DA.SQL at 01AE2728,)) Help please... It's crucial... George

[Zope] Checking for an Integer Argument

2005-06-30 Thread Asad Habib
Is there any way to check if an argument is an integer in Python? Offcourse, there is the int function but it chokes when passed an argument that is not a string and then the user is inconvenienced (it throws a ValueError to be specific). I guess I could check each digit of the integer to

Re: [Zope] Checking for an Integer Argument

2005-06-30 Thread Dennis Allison
in Zope Python Scriptssametype( x, 1 ) On Thu, 30 Jun 2005, Asad Habib wrote: Is there any way to check if an argument is an integer in Python? Offcourse, there is the int function but it chokes when passed an argument that is not a string and then the user is inconvenienced (it throws

Re: [Zope] how to get info about an object (dir/type)

2005-06-30 Thread Dieter Maurer
gabor wrote at 2005-6-30 13:48 +0200: while working with zope, i many times have the following problem: i find a method that i can use, and the documentation (for example) says: returns the current user. ok, but what kind of object is it? what methods does it have? usually i would simply call

Re: [Zope] how to get info about an object (dir/type)

2005-06-30 Thread Dieter Maurer
Peter Bengtsson wrote at 2005-6-30 13:36 +0100: ... External methods. You might even want to have a general debugging script lying around that you can use to exploit dir() and type() and __class__.__name__ from your zope. Bare in mind that there's a security reason why these aren't available in

[Zope] Starting a search from the correct folder

2005-06-30 Thread John Poltorak
I have some code which here:- divtal:loop tal:repeat=item python: request.PARENTS[-2::-1]gt; a href=ABSOLUTE_URL tal:attributes=href item/absolute_url tal:content=item/title_or_idPARENT TITLE OR ID/a /tal:loop/div ul tal:condition=python:

Re: [Zope] Checking for an Integer Argument

2005-06-30 Thread Paul Winkler
On Thu, Jun 30, 2005 at 05:04:31PM -0400, Asad Habib wrote: Is there any way to check if an argument is an integer in Python? Offcourse, there is the int function but it chokes when passed an argument that is not a string and then the user is inconvenienced (it throws a ValueError to be

Re: [Zope] Starting a search from the correct folder

2005-06-30 Thread Andreas Jung
--On 30. Juni 2005 22:27:37 +0100 John Poltorak [EMAIL PROTECTED] wrote: I have some code which here:- divtal:loop tal:repeat=item python: request.PARENTS[-2::-1]gt; a href=ABSOLUTE_URL tal:attributes=href item/absolute_url tal:content=item/title_or_idPARENT TITLE OR