Re: [Zope-dev] ZODB optimization

2000-09-22 Thread Morten W. Petersen
[Jim Fulton] | Packing does two things: | | - It removed records for objects that are no longer referenced | (as of the pack time), or, IOW, it doesm garbage collection. That surely explains the enourmous size the Data.fs file can have! -Morten __

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 in

[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 LoginManager

[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. | Coul

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 L

[Zope-dev] Can't add object

2000-10-19 Thread Morten W. Petersen
I'm developing ZopeGUM (http://www.zope.org/Members/morphex/ZopeGUM), and I have a small problem: Adding a NewsMessageIndicator within a NewsGroupFolder doesn't work. When adding a NewsMessageIndicator, the first time around it just halts after pressing the 'Add' button; the second time it takes

[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 'MessageFilter

[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 e

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 P

[Zope-dev] Adding ZCatalog capability for a (Python) product, and using it.

2000-10-23 Thread Morten W. Petersen
Is there any documentation that explains this? Or, maybe some *understandable* and *well-written* product? Thanks. -Morten ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding

[Zope-dev] Getting all objects matching a given meta_type and more

2000-10-24 Thread Morten W. Petersen
I've managed using the ZCatalog now. However, I have a small problem: When I instansiate a ZCatalog at the root of a tree, and search for all objects matching a given meta-type, all the objects in the entire tree are returned. Is there a way to instruct the ZCatalog instance that it should only

[Zope-dev] Compiling of the DynPersist module (ZPatterns)

2000-10-30 Thread Morten W. Petersen
After compiling the DynPerist module, I try to import it in the Python interpreter: """ morten@slakka:/usr/local/Zope/lib/python/Products/ZPatterns > gcc -o DynPersist.so -c DynPersist.c -I../../ZODB -I../../../Components/ExtensionClass -I/usr/include/python1.5 morten@slakka:/usr/local/Zope/lib/

[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, Amsterdam

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 (not-very-new

[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 %s

[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 > /usr/local/Zop

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 DynPersist.c

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 fiel

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 meth

[Zope-dev] A way to check what products are installed?

2000-11-19 Thread Morten W. Petersen
Is there a clean way to do this (preferrably from both Python and DTML) ? Thanks. -Morten ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://li

Re: [Zope-dev] strange error on first load of zope page

2000-11-13 Thread Morten W. Petersen
[Toby Sargeant] | It seems perfectly reasonable to me that you can't pickle a module, but what | I'm having trouble understanding is why zope is trying to. Can anyone suggest | a way that I could try and track down why this is happening? My guess is that you've got a packaged module, in the same

[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 | eve

[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 maill

[Zope-dev] Loginmanager and local roles

2000-12-19 Thread Morten W. Petersen
Using LoginManager, I can't seem to map local roles to users that are stored in LoginManager instances. I.e.: if this acl_users is a LoginManager /a/b/c/acl_users then any object in /a/b/c/d will not show any of the users stored in the nearest acl_users object in the local ro

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: """ self user_ids = self.UserSource.getPersistentItemIDs() user_ids2 = [] for id in user_ids: user_ids2.app

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 re

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 - http://lists.zope.org/mailman/

[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 loc

Re: [Zope-dev] ZCatalog and 'fuzzy logic'

2001-01-09 Thread Morten W. Petersen
On Tue, 9 Jan 2001, Steve Alexander wrote: > The other option for searching a TextIndex is to use extensions to the > NEAR and AND and OR operators that are currently supported. I guess it > all depends what you mean by "fuzzy matching". Well, to try to explain the problem: If I have 1.000.00

[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] ht

Re: [Zope-dev] ZCatalog and 'fuzzy logic'

2001-01-10 Thread Morten W. Petersen
> I do not think that "fuzzy logic" is strongly related to "regexp-like". > Anyway. > > Fuzzy searching often means "finding matches with characters omitted, > replaced or inserted". It seems I misunderstood the term fuzzy logic myself. Fuzzy logic means if I search for a word, for example 'pro

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) -M

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] http://lists.zope.org/mailman/listi

[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 = HTMLFile('calend

[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

[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 transacti

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 posts

[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 Non

[Zope-dev] ZClasses vs. Python Products

2001-02-03 Thread Morten W. Petersen
Hi peeps, I'm trying to figure out whether to continue work on an existing ZClass product, or rewrite it from scratch. I get a claustrophobic feeling working with ZClasses, and using Python products is more intuitive to me.. I've also seen several people (including guys from DC) refer to ZClass

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 >

[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] 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 __

[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 mail

[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 http://www.zope.org/Members/morphex/ThreadSafeCounter>. Cheers, Morten ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/lis

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 self._valu

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 suffix

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
[Steve Alexander] | I'd thought the original point of ThreadSafeCounter was to provide | a simple sequential unique values generator, without causing | writes to the Data.fs. Yes, that was the original intent. But having one that's safe over multiple ZEO clients is a Very Good Thing (tm). :-)

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

Re: [Zope-dev] ThreadSafeCounter 0.0.1 released

2001-02-12 Thread Morten W. Petersen
[Wolfgang Strobl] | Well, yes. I wouldn't have expected that kind of platform | dependendy in products like AddressBook, though. Anyways, I'm looking into ways of making the threadsafe counter platform independent. Cheers, Morten ___ Zope-Dev maill

[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 ther

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 - http://lists.zope.org/m

[Zope-dev] Strange AttributeError in AccessControl/User.py

2001-02-13 Thread Morten W. Petersen
Hi guys, indeed a strange problem, anyone experienced this? Zope Error Zope has encountered an error while publishing this resource. AttributeError Sorry, a Zope error occurred. Traceback (innermost last): File /home/morten/Zope/lib/python/ZPublis

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 PR

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 h

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 ___ Zo

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 L

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

[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. Howe

[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] http://lists.zope.org/mailman/listi

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

2001-02-24 Thread Morten W. Petersen
Hi guys, A product I'm currently developing has a rather big (in many ways) problem. A product instance may store many, (thousands) of big objects, ranging from 1-50 MB in size. Now, whenever the product instance is accessed, with say for example 100 objects with a size of 2MB each, Zope slows

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 hand

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] 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 t

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] catalog object owners?

2001-02-26 Thread Morten W. Petersen
[Steve Alexander] | Absolutely ages! | At least since 2.2. I don't have any 2.1 installs around to check with. Whoa, now how cool is that. :-) Cheers, Morten ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-de

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] http://lists.zope.org/mailman/listinfo/zope-de

[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 rel

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 t

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 your

[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 - [

[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) must

[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 mail

[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] http://lists.zop

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'] REQUEST.form['key_n

[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 i

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

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: This could be done: Like this (with the DTML var tag): Thanks & ch

[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 system

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 thre

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

2001-06-15 Thread Morten W. Petersen
Hia guys, 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? Cheers, Morten ___ Zope-Dev mailli

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 an

[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, , ) Error Value: None Troubleshooting Suggestions

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 dist-upg

[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 puts

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 u

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. V

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

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 b

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: > If your application can't be written in five minutes and you expect to use > it more than once, you shouldn't use ZClasses - IMO. The only argument > for ZClasses (that I had at the time) was that it was very easy and fast > to set up a couple of classes a

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

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 car

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] 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 any

[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

  1   2   >