Re: [Zope-dev] Debugging spinning Zope?

2006-04-18 Thread Morten W. Petersen
Dieter Maurer wrote: Morten W. Petersen wrote at 2006-4-18 16:45 +0200: I guess the next step is to use pdb og gdb - are there perhaps any documents out there describing the process? You use your favorite search engine and search for Zope spinning debug. Yep. ;) -Morten

Re: [Zope-dev] New ways of getting transactions?

2005-12-11 Thread Morten W. Petersen
and supported for a period of time. If it isn't, then this is *definately* a bug. I agree. I've reported it as a bug: http://www.zope.org/Collectors/Zope/1965 -- Morten W. Petersen Email: [EMAIL PROTECTED] Phone: +47 45 44 00 69 Title: Project manager Nidelven IT (http://www.nidelven-it.no

Re: Get rid of configure/make? (was Re: [Zope-dev] Re: SVN: Zope/trunk/ Merge philikon-zope32-integration branch. Basically, this branch entails:)

2005-11-05 Thread Morten W. Petersen
I wasn't arguing that configure/make was hard to use. I'm arguing that it's something extra to maintain and is just silly. It's main benefit is that it leverages a familiar pattern, but I'm not convinced that it's worth it. Also, as tools like rpm and deb become more widely used, I'm not

Re: [Zope-dev] Problems adding many objects

2005-09-26 Thread Morten W. Petersen
and before returning none, it says 'returning issue' on stdout. -Morten Chris McDonough wrote: Hi Morten, You'd probably need to show us the implementation of whatever manage_add_issue is. - C On Sep 25, 2005, at 10:09 AM, Morten W. Petersen wrote: Hi, I've created a script

[Fwd: Re: [Zope-dev] Problems adding many objects]

2005-09-26 Thread Morten W. Petersen
Oops, one for the list as well. Original Message Subject: Re: [Zope-dev] Problems adding many objects Date: Mon, 26 Sep 2005 13:34:50 +0200 From: Morten W. Petersen [EMAIL PROTECTED] To: Chris McDonough [EMAIL PROTECTED] References: [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL

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

2005-07-01 Thread Morten W. Petersen
have a note on how I fix it. Andrew -- Zope Managed Hosting Software Engineer Zope Corporation (540) 361-1700 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Morten W. Petersen Sent: Thursday, June 30, 2005 7:37 PM To: Max M Cc: zope-dev

[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

[Zope-dev] Problems with PageTemplates on Zope 2.8

2005-06-24 Thread Morten W. Petersen
Hi, 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? Thanks, Morten

[Zope-dev] Re: Renaming a product

2003-06-18 Thread Morten W. Petersen
product name to the new, and it worked. Thanks for your help everybody. :) Regards, Morten W. Petersen -- Technologies: Zope, Linux, Python, HTML, CSS, PHP Homepage: http://www.nidelven-it.no Phone number: (+47) 45 44 00 69 ___ Zope-Dev

[Zope-dev] Renaming a product

2003-06-17 Thread Morten W. Petersen
Hi all, does anyone know how to rename a product, so that instances of the product stored in ZODB will work (with the new name) after the rename? Thanks, Morten W. Petersen -- Technologies: Zope, Linux, Python, HTML, CSS, PHP Homepage: http://www.nidelven-it.no Phone number: (+47) 45 44

Re: [Zope-dev] Zope builds (new Intel C++ compiler)

2002-02-14 Thread Morten W. Petersen
On Tue, Feb 12, 2002 at 12:17:28PM +, seb bacon wrote: However, I do build Python with gcc 3.1 (cvs) and Python 2.1.2 and with various compile options can get a 17% speedup. Could you share the compile options with us? BTW seb, I tried compiling Python with the pgcc compiler [1]

Re: [Zope-dev] Zope builds (new Intel C++ compiler)

2002-02-12 Thread Morten W. Petersen
On Tue, Feb 12, 2002 at 12:17:28PM +, seb bacon wrote: However, I do build Python with gcc 3.1 (cvs) and Python 2.1.2 and with various compile options can get a 17% speedup. Could you share the compile options with us? I'd like to see those compile options as well... Thanks,

[Zope-dev] KeyError in UnIndex

2001-10-26 Thread Morten W. Petersen
Hi guys, I've got an issue here, the following traceback can be seen after several users modify and view the same object in a short (2-3) minute period. I've tried recataloging the objects but that doesn't help either; this error is seen every time.. Site Error An error was encountered while

[Zope-dev] monitor_client.py in Zope 2.4.1 not working properly

2001-09-26 Thread Morten W. Petersen
Hi, I've been playing a bit with the monitor_client (ZServer/medusa), and it seems all exceptions aren't raised so it's visible in the client, it's seen in the debug output from Zope itself. Has anyone experienced this? -Morten ___ Zope-Dev

[Zope-dev] ImportError (No module names utils)

2001-09-26 Thread Morten W. Petersen
Hi, after using a module named utils in a Zope product the root management screen is no longer available (the module is now renamed). The traceback looks like this: Traceback (innermost last): File /home/morten/tmp/Zope-2.4.1-src/lib/python/ZPublisher/Publish.py, line 223, in publish_module

[Zope-dev] KeyError on UnIndex.keyForDocument

2001-09-26 Thread Morten W. Petersen
Hia, While trying to reindex an entire catalog an error is raised, which looks like this: Traceback (innermost last): File /home/morten/zope_instances/usr2/local/Zope-bcr/lib/python/ZPublisher/Publish.py, line 223, in publish_module File

Re: [Zope-dev] DISCUSS: Community checkins for CVS

2001-09-20 Thread Morten W. Petersen
On Thu, 20 Sep 2001, Paul Everitt wrote: So, let's begin what I'm sure will be a lively and illuminating discussion. :^) First man out? :-) Will a ZPL-ish license [1] be accepted (declared, ref. paragraph 4 of the Zope Contributor Agreement) by the Zope Corporation? [1]

Re: [Zope-dev] Spell checking module

2001-06-27 Thread Morten W. Petersen
On Wed, 27 Jun 2001, Remi Delon wrote: I have a website where users can post messages (using a textarea). I would like to be able to spell-check what they submit and notify them of possible mistakes. (much like the online spell-checker of hotmail that I'm using right now :-)) Has anybody

Re: Something better than ZClasses (was: Re: [Zope-dev] Re: Zcatalogbloat problem (berkeleydb is a solution?))

2001-06-26 Thread Morten W. Petersen
On Tue, 26 Jun 2001, Erik Enge wrote: On Tue, 26 Jun 2001, Morten W. Petersen wrote: How about meta-programming (designing) via the Zope interface, with UML or somesuch; automatically generating Python code, then enable designers to use a ZFormulator-ish product to edit the interface

Re: Something better than ZClasses (was: Re: [Zope-dev] Re: Zcatalogbloat problem (berkeleydb is a solution?))

2001-06-26 Thread Morten W. Petersen
On Tue, 26 Jun 2001, Morten W. Petersen wrote: Well, it's quite logical: UML can be used to map out both software and business development (they are, after all, two sides of the same story), the designer can twiddle-n-polish the interface and the programmer can take care of 'exceptional

Re: Something better than ZClasses (was: Re: [Zope-dev] Re: Zcatalogbloat problem (berkeleydb is a solution?))

2001-06-26 Thread Morten W. Petersen
On Tue, 26 Jun 2001, Stephan Richter wrote: - A simple DTML Zope programmers costs are okay and maybe below programmer average. - A good Zope/Python programmer will cost above average. - A good Zope/Python System-Designer is very expensive. Because of that you try to minimize the

Re: [Zope-dev] Re: ZPL and GPL licensing issues

2001-06-24 Thread Morten W. Petersen
On 22 Jun 2001, Simon Michael wrote: Now here, I have to assume RMS is using combine above to mean combine and redistribute. I hope I'm right ? If combine included install zwiki on your zope installation and use it then everything I know is wrong.. I did intend for that to be fairly

Re: [Zope-dev] ZPL and GPL licensing issues

2001-06-22 Thread Morten W. Petersen
On Fri, 22 Jun 2001, Erik Enge wrote: Now I think I have two different answers to one of my fundamental questions in this discussion: if I have a GPL-compatible licensed product and I distribute it with a GPL product, do I need to relicense the former one to GPL? Because that is what I

Re: [Zope-dev] ZPL and GPL licensing issues

2001-06-22 Thread Morten W. Petersen
On Fri, 22 Jun 2001, Erik Enge wrote: Ok, good. Then Thingamy's intermediate solution will be to create a TPL which is basically the ZPL with the incompatible-clauses ripped out (number 4 and 7, I think). That way we are compatible with both the ZPL and the GPL. Something like that.

Re: [Zope-dev] Re: ZPL and GPL licensing issues

2001-06-22 Thread Morten W. Petersen
On 22 Jun 2001, Simon Michael wrote: Shane Hathaway [EMAIL PROTECTED] writes: One of the consequences being that someone re-distributing zope zwiki together, under their default licenses, is technically in violation right now, I think we are all agreeing. Technically yes, although I

[Zope-dev] ZPL and GPL licensing issues

2001-06-20 Thread Morten W. Petersen
Hi there, we @ thingamy are considering changing our license to a ZPL-ish one [1] to better serve our clients' needs. However, some of the (Zope) products we've developed may need to rely on GPL'ed code, or needs to be incorporated within it, and the 'obnoxious advertising clause' seemingly

Re: [Zope-dev] command-line zope.org product upload ?

2001-06-19 Thread Morten W. Petersen
On Tue, 19 Jun 2001, Andy McKay wrote: Ive been successfully finding other things to do other ZPM which is an attempt to make a package manager for Zope ala RPM, PPM etc. A command line interface to it would be cool. Cool. And maybe some apt-get functionality? Like 'zope-apt-get

Re: [Zope-dev] Where did DocumentTemplate/VSEval.py go in 2.4.0a1?

2001-06-15 Thread Morten W. Petersen
On Fri, 15 Jun 2001, Evan Simpson wrote: Morten W. Petersen wrote: one of my products landed flat on its face when an ImportError was raised trying to import VSEval from DocumentTemplate; is there a new class / function of some sort or simply another name for the class? See $ZOPE

[Zope-dev] TypeError on FieldIndex

2001-06-15 Thread Morten W. Petersen
Hia guys, running the GUM product on a fresh BerkeleyDB based 2.4.0a1 instance on Linux raises the following issue for the field index type: Site Error An error was encountered while publishing this resource. Error Type: ('type', 0, type 'string', type 'int') Error Value: None

[Zope-dev] Non-undoable storage

2001-06-12 Thread Morten W. Petersen
Hia guys, during testing of a mail product I've discovered that the Data.fs file may bloat considerably after storing 50 messages. Packing the database will reduce the Data.fs file to 20 MB (from 40 MB). Another thing is that storing 50 messages takes a *long time* on a 600Mhz 256 MB RAM

Re: [Zope-dev] Non-undoable storage

2001-06-12 Thread Morten W. Petersen
On Tue, 12 Jun 2001, Shane Hathaway wrote: Did you catalog each message? What version of Zope? Yes, every message was cataloged. Zope version 2.3.2 3) Manually zap the caches periodically, which is a capability of Zope 2.4.x. Okay, this is interesting. Any examples on how to implement

Re: [Zope-dev] Non-undoable storage

2001-06-12 Thread Morten W. Petersen
On Tue, 12 Jun 2001, Chris McDonough wrote: Morten W. Petersen wrote: Yes, every message was cataloged. Zope version 2.3.2 Were subtransactions in the Catalog turned on (see the Advanced page)? Yes, and the threshold was at 1. -Morten

[Zope-dev] Building custom DTML tags and accessing _.something

2001-05-09 Thread Morten W. Petersen
Hia guys, I was wondering if any of you could give me a couple of hints about how to make the _.{random,string,range,Datetime} thingies from a tag expression. I.e. instead of doing this: dtml-widget select options=[1,2,3,4,5,6,7,8,9,10,11,12,13]

[Zope-dev] ZCatalog features

2001-04-28 Thread Morten W. Petersen
Hia guys, A couple of comments and questions about the ZCatalog: Is it possible to pass an argument to the catalog so that returned brains would instead be actual objects? Given that we have to manually join search results, because ZCatalog doesn't support ORs etc (for FieldIndexes), wouldn't

[Zope-dev] REQUEST and values stored there

2001-04-04 Thread Morten W. Petersen
Hia guys, the recent changes to the HTTPRequest class breaks some of my code. I may have missed some notifications, but why wasn't this made clear as it could obviously break code? -Morten ___ Zope-Dev maillist - [EMAIL PROTECTED]

Re: [Zope-dev] REQUEST and values stored there

2001-04-04 Thread Morten W. Petersen
On Wed, 4 Apr 2001, Chris McDonough wrote: What breaks? There was no intention to break code or change the API. Code that looked like this: REQUEST['key_name1'] REQUEST['key_name2'] Now has to be changed to this: REQUEST.form['key_name1']

[Zope-dev] INSTANCE_HOME vs. SOFTWARE_HOME

2001-03-18 Thread Morten W. Petersen
Hi guys, some people have asked me to use INSTANCE_HOME instead of SOFTWARE_HOME, which breaks their products on debian distros. Now, I'm not sure that won't break other systems if I change it; anyone care to share? Thanks, Morten ___ Zope-Dev

[Zope-dev] Ensuring 'freshness' of dynamic pages (slightly offtopic)

2001-03-11 Thread Morten W. Petersen
Hi guys, I've been trying to ensure that documents from a certain website are always fresh, that is, every request for a new page must be validated before the client sees it. I've tried using these HTTP Cache-control directives: no-cache no-store max-age (1)

[Zope-dev] ZPatterns, DynPersist.dll and Zope 2.3.0

2001-03-04 Thread Morten W. Petersen
Hi guys, I've got a problem making a version of the DynPersist.dll file work on windows. The message when trying to load the DynPersist module says (paraphrasing) "A unit attached to the system doesn't work". Anyone else experienced this? Also, I read that users of Zope 2.2.x could skip this

Re: [Zope-dev] ZPatterns, DynPersist.dll and Zope 2.3.0

2001-03-04 Thread Morten W. Petersen
[Steve Alexander] | Try this one: | |http://www.cat-box.net/steve/DynPersist-0.4.3b1.dll | | I've had this one working on Windows 2000, Zope 2.3. Yep, this works. On Windows 98 with Zope 2.3.0. Thanks again, Morten ___ Zope-Dev maillist -

Re: [Zope-dev] ZCatalog hackery

2001-03-03 Thread Morten W. Petersen
[Chris McDonough] | Note that the algoritm is simple - for each index, compare the what exists | in the index to what is to be put in. If they're the same, do nothing. If | they're different, reindex. I wasn't able to understand completely from | your description whether the object method

[Zope-dev] ZCatalog hackery

2001-03-01 Thread Morten W. Petersen
Hi guys, I've got a problem with ZCatalog. I've got plenty of large objects, ranging from 100KB to 100MB in size. Needless to say, these take up a lot of processor time when indexed by the ZCatalog. Now, these object have to be moved from time to time, only moved, so that one or two of the

Re: [Zope-dev] ZCatalog hackery

2001-03-01 Thread Morten W. Petersen
[Casey Duncan] | Actually what I wrote assumes you are passing a Catalog not a ZCatalog. | So you will need to change it for a ZCatalog to: I figured that out. :-) There is one problem, the uids stored in the Catalog are based on the path of the object, so I guess I'll have to make a copy of

Re: [Zope-dev] Synchronize GUD or Worldpilot with IPAQ

2001-02-28 Thread Morten W. Petersen
[Valérie Aulnette] | Did someone try ? And how ? You can't synchronize at this point. It's a planned feature, but don't hold your breath. :-) Cheers, Morten ___ Zope-Dev maillist - [EMAIL PROTECTED]

[Zope-dev] ZCatalog problems

2001-02-26 Thread Morten W. Petersen
Hi guys, I'm having trouble making ZCatalog work. The problem is that there are 29 objects of a given meta type, with the same booleans that should be returned for an iteration; but only 20 are. Is this a result of caching perhaps? Or lazy results? Thanks, Morten

Re: [Zope-dev] catalog object owners?

2001-02-26 Thread Morten W. Petersen
[Tim McLaughlin] | Anybody know how to catalog the object "owner"? I can't seem to find a | property to catalog the value of getUserName(). (of course I could always | kludge it with a property in the constructor, but I would prefer use what is | already there). I'll second that, the ability

Re: [Zope-dev] catalog object owners?

2001-02-26 Thread Morten W. Petersen
[Chris McDonough] | I'll second that, the ability to catalog values returned by method calls | would be sweet.. | | Not sure what you mean, this works now. Aha? So if I specify a field index of, get_parent_node_id, which is a function call on all objects that are to be indexed, this would

Re: [Zope-dev] Minor typos/changes to ZCatalog.

2001-02-24 Thread Morten W. Petersen
[Steve Alexander] | But it's not just characters. A field index indexes an object, and uses | the overloaded comparison operators for that object to put it in an | appropriate place. So, you can index DateTime objects, tuples, strings, | numbers, floats... Could a field index succesfully

Re: [Zope-dev] Storing lots of big objects in containers

2001-02-24 Thread Morten W. Petersen
[Erik Enge] | Can't you just subclass the BTree Folder as you would with OFS.Folder? | | I think you might be confusing the Zope BTree implementation with the | BTree Folder Product? I've tried subclassing BTreeFolder, but then, whenever the object is accessed, zope falls flat on its face.

[Zope-dev] REQUEST acting up and misplacing form elements in other

2001-02-23 Thread Morten W. Petersen
Hi zopers, I've been wondering what may be causing the REQUEST object to store form values in the other dictionary. Is this a new feature or simply a bug? Cheers, Morten ___ Zope-Dev maillist - [EMAIL PROTECTED]

[Zope-dev] ConflictErrors and how to handle them

2001-02-19 Thread Morten W. Petersen
Hi guys, I've been struggling with a problem, namely ConflictErrors. At times, a long-running process may add 100, 1000, 1 objects to a single folder. Under this process, several ConflictErrors may be raised, but they are captured, and the transaction committed again. Problem solved.

Re: [Zope-dev] Getting the parent of a container in a Python Script

2001-02-15 Thread Morten W. Petersen
[Cyril Elkaim] |Hi all, Hia Cyril, [snip] | Aside from my problems Zope rocks really. Yes it does. And you can find usable information in $ZOPE_INSTANCE/lib/python/OFS/ZDOM.py . Hope this helps, Morten ___ Zope-Dev maillist - [EMAIL

Re: [Zope-dev] 2gb ZODB size limit

2001-02-15 Thread Morten W. Petersen
[Tim McLaughlin] | Is this true on windows too? I saw some mention of this limit be lifted, | but if so, in what version? It's not a problem on Windows, AFAIK. It's a problem with Linux, if you want to be able to use databases 2GB in size on Linux, a kernel = 2.4.0 is required. Hope this

Re: [Zope-dev] 2gb ZODB size limit

2001-02-15 Thread Morten W. Petersen
[Andy McKay] | Yes, you will hit this limit. Windows uses a 32 bit integer for file size... | No matter what MS says, Ive hit it on Win2k. Interesting. Are you sure the problem lies with Win2K and not Python or something else? Cheers, Morten ___

Re: [Zope-dev] 2gb ZODB size limit

2001-02-15 Thread Morten W. Petersen
[Erik Enge] | [Morten W. Petersen] | | | It's a problem with Linux, if you want to be able to use databases | | 2GB in size on Linux, a kernel = 2.4.0 is required. | | Nope. First, the limit is at file-level, not database-level (mind | you, a problem with the filesystem, not Linux per se

Re: [Zope-dev] 2gb ZODB size limit

2001-02-15 Thread Morten W. Petersen
[Erik Enge] | [Morten W. Petersen] | | | BTW, there is a list called [EMAIL PROTECTED], for ZODB specific | | questions. | | Actually, I think its called ZODB-Dev; [EMAIL PROTECTED] I stand corrected. Cheers, Morten ___ Zope-Dev maillist

Re: [Zope-dev] ThreadSafeCounter 0.0.1 released

2001-02-12 Thread Morten W. Petersen
[Erik Enge] | What happens if you run this with ZEO? Will the file be kept «in | sync» with all ZEO Clients? Good point. I don't think so. It could be that it is kept in sync with one Zope instance "being responsible" and the others calling it via XML-RPC. Cheers, Morten

Re: [Zope-dev] ThreadSafeCounter 0.0.1 released

2001-02-12 Thread Morten W. Petersen
[Wolfgang Strobl] | Doesn't even install on Windows, because it imports and uses fcntl. | | From the fcntl docs: "Availability: Unix". Well, the download page says "Platform: Generic UNIX-like", doesn't it? -Morten ___ Zope-Dev maillist - [EMAIL

[Zope-dev] Re: ThreadSafeCounter

2001-02-12 Thread Morten W. Petersen
[Andy McKay] | I released FSPoll recently and was going to combine the two into one | FSCountThing with FSPoll and FSCounter subclassing of it, so maybe we could | co-operate on ThreadSafeCounter and FSCounter? The ideal solution would be to use an object that lives in the ZODB, I wonder if

Re: [Zope-dev] ThreadSafeCounter 0.0.1 released

2001-02-12 Thread Morten W. Petersen
[Erik Enge] | Forget it. My fault. *shame, shame* *chuckle* :-) -Morten ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists -

Re: [Zope-dev] ThreadSafeCounter 0.0.1 released

2001-02-11 Thread Morten W. Petersen
[Chris Withers] | So would a counter such as: | | class PersistentCounter(Persistent): | | # create the counter | def __init__(self, value=0): | self._value = value | | # get the value of the counter without incrementing | def getValue(self): | return

Re: [Zope-dev] LONGing for normal inetegers...

2001-02-11 Thread Morten W. Petersen
[Jon Franz] | I had this problem in the past and hacked the mysql DA to fix it, then | dicovered to my dismay I was using an out-of-date mysqlDA and it had already | been fixed... Which DA are you using? Using Python 2.0 could solve this problem, as longs are no longer rendered with the L

[Zope-dev] ThreadSafeCounter 0.0.1 released

2001-02-10 Thread Morten W. Petersen
Hi guys, There's a new product available, which enables unique ids in a given context, take a look at url:http://www.zope.org/Members/morphex/ThreadSafeCounter. Cheers, Morten ___ Zope-Dev maillist - [EMAIL PROTECTED]

[Zope-dev] ValueChecker 0.0.1

2001-02-07 Thread Morten W. Petersen
Hi zopistas, I've managed to build a product called ValueChecker which when installed hooks into the prosessing of form input. It's basic at this point, a mere proof-of-concept, but I can think of so many uses! Cheers. :-) -Morten ___ Zope-Dev

[Zope-dev] The field converters (:int, :text, etc.)

2001-02-04 Thread Morten W. Petersen
Hi guys, IIRC, there was some talk about modularizing the field converters (checkers) so that they could be easiliy modified and added to. Is there currently any efforts to solving this problem? If not, there's definently a need for it, IMO.. Thank you for your time. -Morten

Re: [Zope-dev] ZClasses vs. Python Products

2001-02-03 Thread Morten W. Petersen
On Sat, 3 Feb 2001, Steve Alexander wrote: Sounds to me like your needs would best be served with two related products: a TTW ZClass product and a Python Product. Each ZClass is derived from an associated Python base class. You get to keep you flexibility, but also get the advantages of

[Zope-dev] Creating IMAP and SMTP services for Zope

2001-02-03 Thread Morten W. Petersen
Hi guys, I'm wondering about creating IMAP and SMTP services for Zope. Someone mentioned to me that extending (using?) the ZServer could be a Good Thing (tm). Could anyone point me in the right direction? Thanks. -Morten ___ Zope-Dev maillist -

[Zope-dev] LoginManager and ZPatterns

2001-01-29 Thread Morten W. Petersen
Hi fellow zopers, I don't know if it's a bug or feature, but whenever I try to access parental objects from a user object in python code, I can't seem to find anything. That is, whenever I call acl_users.getItem('user123').getParentNode() (the acl_users is a LoginManager instance) it returns

[Zope-dev] How to avoid ConflictErrors ?

2001-01-28 Thread Morten W. Petersen
Hi zopers, I'm having problems with a product I'm developing. The product is part of the ZopeGUM package, the GUM product. If you have a look in gum.py in that product, you can see a method named _retrieve_messages, which can at times store enourmous amounts of objects and data in one

Re: [Zope-dev] How to avoid ConflictErrors ?

2001-01-28 Thread Morten W. Petersen
[Chris Withers] | Please check that both rfc822_message and message_container subclass | Persistence.Persistent. They do. *ponder* -Morten ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross

[Zope-dev] AttributeError when adding ZClass product (PortalMembership)

2001-01-26 Thread Morten W. Petersen
Hi guys, I have a problem with a product. This product, let's call it product SuperSecret, adds a number of folderish objects to the new instance when it is created. Now, if we name the SuperSecret product instance for a, and the class instance that raises the AttributeError b, I will show you

Re: [Zope-dev] Implementing a URL path resolver

2001-01-18 Thread Morten W. Petersen
[[EMAIL PROTECTED]] (Bug in the encoding of the message, MHA) | path = string.split(relative_url, '/') | path = filter(None, path) | new_path = '%s' % path[0] | path = path[1:] | | for element in path: | | new_path = new_path + "['%s']" % element | | return eval("self%s" % new_path)

Re: [Zope-dev] Implementing a URL path resolver

2001-01-18 Thread Morten W. Petersen
[Steve Alexander] | Have you seen the methods restrictedTraverse and unrestrictedTraverse in | lib/python/OFS/Traversable.py ? Exactly what I needed. Thank you. -Morten ___ Zope-Dev maillist - [EMAIL PROTECTED]

[Zope-dev] Calling HTMLFiles

2001-01-18 Thread Morten W. Petersen
Hi, I'm having difficulties calling an HTML file from python.. Here's the code: [...] from events import conflicting_events calendar_event_add_redirect = HTMLFile('calendar_event_add_redirect', globals()) manage_add_calendar_event_form =

[Zope-dev] ZCatalog and 'fuzzy logic'

2001-01-09 Thread Morten W. Petersen
Is there anyone who could try to give an estimate of how long it would take to add fuzzy logic (regexp-like) searching capability to the ZCatalog? And reasoning as to why would be appreciated. ;) -Morten ___ Zope-Dev maillist - [EMAIL PROTECTED]

Re: [Zope-dev] 'Subclassing' another product

2000-12-21 Thread Morten W. Petersen
[Steve Spicklemire] | does that help? Yep. Thanks Cheers, Morten ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists -

[Zope-dev] LoginManager and PTK

2000-12-21 Thread Morten W. Petersen
Hi guys, I previously posted a couple of functions that enables users to login at a lower level in the tree-structre than where the actual user folder is. I.e., a user could enter username and password at /a and get redirected to /a/a/a/a/b (the acl_users folder would be

[Zope-dev] 'Subclassing' another product

2000-12-19 Thread Morten W. Petersen
I think I read somewhere that it was, from version 2.2 of Zope, possible to 'subclass' products. Is this just somebody janking my chain, or is it actually possible? If it is possible, would someone care to explain? Thanks. -Morten ___ Zope-Dev

Re: [Zope-dev] Loginmanager and local roles

2000-12-19 Thread Morten W. Petersen
[Morten W. Petersen] | Any suggestions? Found the problem. There needs to be a method called user_names in the acl_users folder, which returns all the user ids: """ paramsself/params user_ids = self.UserSource.getPersistentItemIDs() user_ids2 = [] for id in user_ids:

Re: [Zope-dev] A groupware package for zope

2000-12-19 Thread Morten W. Petersen
[Magnus Heino] | I'd appreciate to be able to download some code from zope.org :-) Uhmm. Yeah. http://www.zope.org/Members/morphex/ZopeGUM -- guess you don't know about the /Product and search facilities.. ;) Cheers, Morten ___ Zope-Dev maillist

[Zope-dev] A groupware package for zope

2000-12-19 Thread Morten W. Petersen
For the last couple of months I've been working on a groupware package for Zope, named ZopeGUM. It has reached version 0.1.63 now, and it's in steady progress. All the planned components, like messenger, address book, calendar, todos, etc. are there and working now; though it's definently not

[Zope-dev] Re: objectIds accessiblilty and a proposal

2000-12-18 Thread Morten W. Petersen
[Brian Lloyd] | This comes up often enough that I'm inclined to do | something about it for 2.3. I propose that objectIds | (and objectValues) will not be directly accessible | via the Web in 2.3. For xml-rpc applications, it should | be a simple enough task to create a Python Script (or |

Re: [Zope-dev] how do i check if it is an array

2000-11-13 Thread Morten W. Petersen
[Veiko Schnabel] | how do i check out if any of my fields are arrays or strings | is there a function like php: is_array() I can't think of any clean way to do this; zope developers, why isn't the type() function available from DTML? On the other hand, you can explicitly cast all your form

Re: [Zope-dev] unbuffered html from external method

2000-11-13 Thread Morten W. Petersen
[Andy McKay] | Is it possible to print unbuffered html output to the user from an external | method. It looks to me like I can't, output occurs upon the return and I | cant see a way of getting around that. Try hacking the BaseResponse, located in lib/python/ZPublisher. (implement the flush

Re: [Zope-dev] DynPersist for Windows, ZPatterns 0.4.3b1 and Zope 2.2.x

2000-11-09 Thread Morten W. Petersen
[Phillip J. Eby] | I uploaded the beta 2 release on October 31, but it has strangely | disappeared from Zope.org, along with changes I made to other items that | evening, so I have uploaded it again today. The DynPersist you posted | should still work, since there were no changes to

[Zope-dev] Segmentation fault when adding new objects

2000-11-07 Thread Morten W. Petersen
I'm having trouble with the adding of new objects; specifically it's adding of rfc822_address objects (contained within the ZopeGUM distribution, http://www.zope.org/Members/morphex/ZopeGUM). I haven't really got a clue what's wrong, have any of you? -- Start debugging session

[Zope-dev] Passing namespace to method

2000-11-01 Thread Morten W. Petersen
How do I construct a method of an object, so that whenever that method is called, the current namespace is passed with it? I.e.: class myclass: [...] def myfunc(self, context): if context['sequence-index'] == 10: raise 'sequence-index is

[Zope-dev] Using the monitor_client

2000-10-31 Thread Morten W. Petersen
When using the monitor_client, I do this: -- Start monitor_client usage python monitor_client.py localhost 8099 Enter Password: warning: unhandled connect event Python 1.5.2 (#1, Mar 11 2000, 13:03:53) [GCC 2.95.2 19991024 (release)] Copyright 1991-1995 Stichting Mathematisch Centrum,

Re: [Zope-dev] Using the monitor_client

2000-10-31 Thread Morten W. Petersen
[Yves-Eric Martin] | - Zope.app() gives you a *copy* of the *real* application object. | - app._p_jar.sync() reloads your copy with the real (losing your changes) Ah, there it is; sync discards the changes made from the monitor, and then reloads... An extra thanks for the thorough

[Zope-dev] Using the Zope debugger (authenticating)

2000-10-22 Thread Morten W. Petersen
How do I authenticate myself when using the Zope debugger? (I've seen this before I think, but I couldn't find it) Thanks. -Morten ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML

Re: [Zope-dev] Excluding meta_types

2000-10-22 Thread Morten W. Petersen
[[EMAIL PROTECTED]] | btw how is GUM going? It's ZopeGUM now.. =) It's coming along; I'm planning on releasing a stable version of it available within a week. (CVS will be available soon from SourceForge). -Morten ___ Zope-Dev maillist - [EMAIL

[Zope-dev] Excluding meta_types

2000-10-21 Thread Morten W. Petersen
When I'm building a class which inherits from the OFS.Folder.Folder, how do I exlude the meta_types it brings with it (if it's there they come from). In other words, if I have a class, with meta_type 'MessageFilterFolder', which should only be able to contain instances of meta_type

[Zope-dev] LoginManager and ZPatterns

2000-10-15 Thread Morten W. Petersen
I've been fiddling a bit with the LoginManager; but can't seem to make it work. The product versions are ZPatterns 0.3.0 and LoginManager 0.8.6. (Downgraded the ZPatterns product because the LoginManager couldn't find a class named .. SheetProviderContainer, I think). When adding a

[Zope-dev] Getting all objectIds, recursively (ZODB)

2000-10-15 Thread Morten W. Petersen
Is there a method available that'll return a nested list of ids (or something similar) of the current object? -Morten ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! **

Re: [Zope-dev] Getting all objectIds, recursively (ZODB)

2000-10-15 Thread Morten W. Petersen
[Erik Enge] | On 15 Oct 2000, Morten W. Petersen wrote: | | Is there a method available that'll return a nested list of ids (or | something similar) of the current object? | | "current object"? You probably mean objects? No, the current (containing) object. | Could

Re: [Zope-dev] LoginManager and ZPatterns

2000-10-15 Thread Morten W. Petersen
[Phillip J. Eby] | 0.8.6 won't work with 0.3.0 ZPatterns, IIRC. I'm pretty positive it | requires one of the 0.4.x releases, but I'm not positive which one. You | might be better off with the latest (current) releases of both. Okay, I tried different ZPattern versions against the most recent

Re: [Zope-dev] Is this a ZClass/Propertysheet bug?

2000-10-06 Thread Morten W. Petersen
Is this behavior correct? See http://www.zope.org/Members/paulabrams/howto_deleteundeadzclassprops for help. It is not a bug per se, Python (upon which ZOPE is based) is built this way, i.e. if you create a class with certain attributes, every instance will keep those attributes, even if they

Re: [Zope-dev] Is this a ZClass/Propertysheet bug?

2000-10-06 Thread Morten W. Petersen
On Fri, 6 Oct 2000, Morten W. Petersen wrote: It is not a bug per se, Python (upon which ZOPE is based) is built this way, i.e. if you create a class with certain attributes, every instance will keep those attributes, even if they are deleted from the class itself, and new instances