[Zope] ZMySQLDA and dtml-in (bug?)

2000-05-22 Thread Morten W. Petersen
When I use an ZSQL method to fetch data, the manage test tab gives a result of 14 items. When the same method is used in a dtml-in tag, with batches of size 10, it only shows the first 10 items, with no "Show next x missions". It previously showed "Show next 4 missions", but after altering 10 of

Re: [Zope] ZClass acting up?

2000-05-22 Thread Morten W. Petersen
Did you try it at your installation? With the same result? Prøvde det, og det funka. Ser ut til at det er problemer med Debian igjen, *host,host* ;). Seriøst, funker helt fint her. -Morten (=) ___ Zope maillist - [EMAIL PROTECTED]

[Zope] What does it mean?

2000-05-30 Thread Morten W. Petersen
"The Zope Gadfly product is a free Zope adapter [...] so it should not be used to create large databases. What does large databases mean in this context? -Morten - How to reply to email:

Re: [Zope] Java applet with inner classes causing probs in Zope

2000-09-04 Thread Morten W. Petersen
[Eric L. Walstad] | Hello all, | | The problem is that inner classes have names like "Parent$Inner.class" | I'm unable to create a Zope file object with a name that includes the dollar | sign. However, the applet won't function without it. | | Has any one overcome this? Adding files to Zope

Re: [Zope] How does one display document count of a folder?

2000-09-08 Thread Morten W. Petersen
[[EMAIL PROTECTED]] | I am using a script to display the contents of a folder, but I | wonder how I might display a document count of the dtml | documents in a folder? Untested: dtml-var "_.len(objectIds('DTML Document'))" HTH -Morten ___ Zope

Re: [Zope] IMAP and Zope!

2000-10-03 Thread Morten W. Petersen
[Joachim Werner] | Does anybody use the old IMAP Adapter successfully with Zope 2.2.x or know an | alternative solution? I'm developing an Outlook/WorldPilot replacement; which is much more modular in design. It will be released under the GPL. When and where I don't know yet. It stores

Re: [Zope] IMAP and Zope!

2000-10-04 Thread Morten W. Petersen
[Joachim Werner] | - There is a similar project by Morten W. Petersen that also will feature a |ZODB-based message storage that will be searchable, Catalog-aware etc. I've uploaded some stuff now. Take a look at http://www.zope.org/Members/morphex . This is basically just playing around

Re: [Zope] Calander.

2000-10-27 Thread Morten W. Petersen
On Thu, 26 Oct 2000, Jason C. Leach wrote: I'm looking for a Zope calander kind of like you see on the ZopeNewbies page. Anyone seen a product like this hanging around. Actually, I'm developing one now, and it's getting pretty decent.. =) Take a look at the Calendar product contained in the

Re: [Zope] Reverse SendMail Question

2000-10-27 Thread Morten W. Petersen
On Thu, 26 Oct 2000 [EMAIL PROTECTED] wrote: Has anyone thought of using SendMail (or any other e-mail program) to send e-mail to Zope and have that e-mail be loaded directly into a specific folder (say, based on the e-mail address or subject line)? In the latest version of ZopeGUM there is

Re: [Zope] problem installing login manager

2000-10-29 Thread Morten W. Petersen
On Sun, 29 Oct 2000, Henny van der Linde wrote: [...] Files\WebSite22\lib\python\Products\ZPatterns\DataSkins.py", line 1, in ? from DynPersist import DynPersist ImportError: No module named DynPersist What 's happening? You probably need to compile the DynPersist.c file into a shared

[Zope] Strange KeyError upon calling absolute_url

2000-10-30 Thread Morten W. Petersen
I've got a strange error here; whenever absolute_url is called, it is raised a KeyError exception, stating that SERVER_URL is missing.. (The traceback..) Traceback (innermost last): File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 222, in publish_module File

Re: [Zope] Check for JavaScript:

2000-11-02 Thread Morten W. Petersen
[Daniel Rusch] | Hey all, | | Is there a way from zope to check to see if a user has Javascript | enabled Well, you may be able to set a cookie, with JavaScript, and then on the next page load, check for that cookie via REQUEST.. I.e.: On page 1, have a JavaScript command that sets a

Re: [Zope] Tar Ball with all Zope-Howtos

2000-11-08 Thread Morten W. Petersen
[Manuel Gutierrez Algaba] | BTW, what means things like " _.method()" It's a way to access 'restricted functionality'. See the documentation for more information.. | In pure python the "_" has not special sense, what object is "_" ? Actually, the "_" has a special meaning in interactive

Re: [Zope] Security and Acquisition

2000-11-09 Thread Morten W. Petersen
[Charlie Wilkinson] | Greetings, Hola! | Now, referring to figure 1 (above :-), changes to security settings | for the acl_test folder are having no effect on access to index_html. | Only when I change the security settings on index_html itself, can I | control access to it. Can it have

Re: [Zope] img tags, dtml-vars and css

2000-11-09 Thread Morten W. Petersen
[Troy Farrell] | I must be ignoramus, but I can't figure out modify img tags as generated | by a image object. I have this: | I use dtml-var expr="img.logo_image" to add an image object to a dtml | document. | How can I add a STYLE="color:silver;" or any other tag the HTML source? Call it like

Re: [Zope] why DTML confusing

2000-11-10 Thread Morten W. Petersen
[Max M.] | For once I will send a "me too" to the list. "sequence-item" is a simple and | plain design error. Decapricate it and and let us use "sequence_item" etc. | together with the other for a while and then drop the old form. I'd like to join this mob. ;) It's painful and ugly to use

Re: [Zope] Newbie question(s)

2000-11-12 Thread Morten W. Petersen
[Alex Bowyer] | My query is really more general though, that was just an example, I need to | know what the generally accepted method is for transferring values through | the code (i.e between namespaces) Unless I've misunderstood your problem, wouldn't dtml-let do the trick? (See DTML manual

Re: [Zope] Website search

2000-11-13 Thread Morten W. Petersen
[Stephan Goeldi] | So what's the simplest way to do a search on a website? If you're running Zope in combination with other web applications, ht://Dig may be the Right Thing (tm). See http://www.htdig.org for more info. HTH. -Morten ___ Zope

Re: [Zope] Web mail with POP3

2000-11-16 Thread Morten W. Petersen
[Aleksander Salwa] | Is this a good approach, or someone already has wrote something like this | for Zope ? You could take a look at ZopeGUM, http://www.zope.org/Members/morphex/ZopeGUM . -Morten ___ Zope maillist - [EMAIL PROTECTED]

Re: [Zope] ZMailIn - alternatives?

2000-11-19 Thread Morten W. Petersen
[[EMAIL PROTECTED]] | Is there any alternative to ZMailIn? You can probably take a look at ZopeGUM, url:http://www.zope.org/Members/morphex/ZopeGUM. I'm currently looking into ways to make the distinct parts of ZopeGUM into separate products, and it's quite possible that a archive-like product

Re: [Zope] random object with properties

2000-11-21 Thread Morten W. Petersen
[Kevin Worth] | dtml-var expr="_.whrandom.choice(objectValues('Photo'))" | dtml-if captiondtml-var caption/dtml-if [,..] | What am I missing here? Maybe this will work: dtml-let random_image="_.whrandom.choice(objectValues('Photo'))" dtml-var random_image

Re: [Zope] vCalendar

2000-11-22 Thread Morten W. Petersen
[Shahram Kaeidinejad] | Hi, Hi, | who can help me about "vCalendar". I need some example of vCalendar. So can | I understand it better. Have a look at these RFCs: http://www.imc.org/2445 http://www.imc.org/2446 http://www.imc.org/2447 HTH. -Morten

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

Re: [Zope] Troubles importing module DemoPortal.zexp

2000-12-18 Thread Morten W. Petersen
[Francisco M. Marzoa Alonso] | Error Type: ImportError | Error Value: No module named PythonMethod.PythonMethod | | Package files that I'm using are: | | Zope-2.2.2-linux2-x86.tgz | ZopePTK-0.9.2-src.tar.gz | | Can someone help me with this? I guess you need to install the PythonMethod

Re: [Zope] A groupware package for zope

2000-12-19 Thread Morten W. Petersen
[[EMAIL PROTECTED]] | Are you planning on making a win32 version. | I had a problem tring to run it. | Something about posix module missing. Hmm, I'll try to find out what depends on the posix module. (Maybe you could send me a traceback?) A win32 compatible package shouldn't be too hard to

[Zope] 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: [Zope] zope, worldpilot, IMAP, POP...

2000-12-21 Thread Morten W. Petersen
[Erik Enge] | Well, I don't think it would be too much hassle to add some | administrative functionality to keep them in sync (albeit, to be 100% | percent sure will hurt a lot - I guess). I'm guessing that Morten is | already working on this. Yup. The way that seems right is to proxy

Re: [Zope] zope, worldpilot, IMAP, POP...

2000-12-21 Thread Morten W. Petersen
[Erik Enge] | Well, that probably depends on how you figure the administrator to | work. I think I would've tried to abstract the whole notion about | «something under the hood» away from the administrator, and tried to | be clever when I added and delete users within Zope (that is, the code |

Re: [Zope] zope, worldpilot, IMAP, POP...

2000-12-21 Thread Morten W. Petersen
[marc lindahl] | That's why I thought it was a cool idea to use the 'catchall' or dead.letter | account - there's no security problems or administration problems. Instead, | the 'pain' is managing that stuff inside zope, including parsing through one | big mailbox to 'divvy up' the mail -

Re: [Zope] zope, worldpilot, IMAP, POP...

2000-12-21 Thread Morten W. Petersen
[marc lindahl] | ...except that assumes the mail server on the same box. Going thru | dead.letter means it can be anywhere... the cron script or whatever gets the | bulk mail has the username/password for that one account. Make sense? Ah, I think I know what you mean.. Do you 1)

[Zope] Logica bruker Zope (...)

2001-01-02 Thread Morten W. Petersen
Se her dah.. -Morten [Alex Bowyer] | Our company has a repository of staff CVs (Resumes) as Word Documents and I | am about to embark on creating a new feature for our Zope Intranet to allow | project managers to search those documents for keywords such as particular | skills or projects. | |

Re: [Zope] Logica bruker Zope (...)

2001-01-02 Thread Morten W. Petersen
[Morten W. Petersen] | Se her dah.. Sorry guys. -Morten ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope

Re: [Zope] Lobbying (was: [Zope] html_quote in python methods?)

2001-01-03 Thread Morten W. Petersen
[Chris Withers] | I'll second this. It'd be _so_ nice... | | ever wanted to do: | | dtml-call "somemethod(absolute_url()+urlquote(_.getitem(id))" I totally agree. -Morten ___ Zope maillist - [EMAIL PROTECTED]

[Zope] 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 maillist - [EMAIL PROTECTED]

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

[Zope] Disabling ZEO file cache?

2009-02-02 Thread Morten W. Petersen
Hi, how does one go about in the configuration file to disable the ZEO file-caching feature? -Morten ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists -

Re: [Zope] Zope and SSL

2009-03-16 Thread Morten W. Petersen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Catherine, well.. I don't have much experience running SSL on Zope itself, but we use Apache in front and that works well. You'll just have to figure out some RewriteRule directives for Apache and configure it. Most SSL providers (that I've seen

[Zope] Building a fast, scalable yet small Zope application

2009-04-25 Thread Morten W. Petersen
something similar? Are there Zope product examples out there that fit the bill? -Morten -- Morten W. Petersen Manager Nidelven IT Ltd Phone: +47 45 44 00 69 Email: mor...@nidelven-it.no ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman

Re: [Zope] Building a fast, scalable yet small Zope application

2009-04-27 Thread Morten W. Petersen
as keeping my SQL skills up to date so. :-) -Morten -- Morten W. Petersen Manager Nidelven IT Ltd Phone: +47 45 44 00 69 Email: mor...@nidelven-it.no ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts

Re: [Zope] Building a fast, scalable yet small Zope application

2009-04-27 Thread Morten W. Petersen
Lennart Regebro skrev: On Sat, Apr 25, 2009 at 13:24, Morten W. Petersen mor...@nidelven-it.no wrote: So far, I've been contemplating disabling undo (if that's possible), I doubt that it would make a difference. The Undo functionality comes out of the database being logging

Re: [Zope] Building a fast, scalable yet small Zope application

2009-04-27 Thread Morten W. Petersen
indexes in Zope be as easy as wrapping the index search method in a function that does time.time before and after the search? :-) -Morten -- Morten W. Petersen Manager Nidelven IT Ltd Phone: +47 45 44 00 69 Email: mor...@nidelven-it.no ___ Zope

Re: [Zope] Building a fast, scalable yet small Zope application

2009-04-27 Thread Morten W. Petersen
but something that's been bobbing around in my head. Is this something you're thinking of releasing or is it too good/bad to share? -Morten -- Morten W. Petersen Manager Nidelven IT Ltd Phone: +47 45 44 00 69 Email: mor...@nidelven-it.no ___ Zope maillist

[Zope-Annce] Issue Dealer 0.9.75 released

2005-06-10 Thread Morten W. Petersen
Issue Dealer (http://www.nidelven-it.no/products/issue_dealer) is a issue management tool featuring a weblog publisher (client), weblog (server), WebDAV client, WYSIWYG editing of HTML and Images and more. This announcement covers the last 3 releases, which were mostly minor tweaks and two major

[Zope-Annce] Issue Dealer 0.9.81 released

2005-09-02 Thread Morten W. Petersen
Issue Dealer (http://issuedealer.com) is a issue management tool featuring a weblog publisher (client), weblog (server), WebDAV client, WYSIWYG editing of HTML and Images and more. Changes since the last announcement: 0.9.81: - Implemented asynchronous pings on the weblog 0.9.80: -

[Zope-Annce] Issue Dealer 0.9.107 released

2006-08-27 Thread Morten W. Petersen
Issue Dealer (http://issuedealer.com) is a issue management tool featuring a weblog publisher (client), weblog (server), WebDAV client, WYSIWYG editing of HTML and Images and more. Changes since the last announcement: 0.9.107: - Improved last_modified_by code. - Fixed numerous bugs related

[Zope-Annce] Issue Dealer 0.9.110 released

2006-11-26 Thread Morten W. Petersen
Issue Dealer (http://issuedealer.com) is a issue management tool featuring a weblog publisher (client), weblog (server), WebDAV client, Mail gateway (mailing list and archive), WYSIWYG editing of HTML and Images and more. Changes since the last announcement: 0.9.110: - Made the Issue Dealer

[Zope-Annce] Issue Dealer 0.9.113 released

2007-01-14 Thread Morten W. Petersen
Issue Dealer (http://issuedealer.com) is a issue management tool featuring a weblog publisher (client), weblog (server), WebDAV client, Mail gateway (mailing list and archive), WYSIWYG editing of HTML and Images and more. Changes since the last announcement: 0.9.113: - Cleaning up print

[Zope-Annce] Issue Dealer 0.9.120 released

2007-02-20 Thread Morten W. Petersen
Issue Dealer (http://issuedealer.com) is a issue management tool featuring a weblog publisher (client), weblog (server), WebDAV client, Mail gateway (mailing list and archive), WYSIWYG editing of HTML and Images and more. Changes since the last announcement: 0.9.120: - Added support for

[Zope-Annce] Undoer (Zope Undo tool) 1.0 released

2007-03-02 Thread Morten W. Petersen
Hi, Undoer is a product/patch that enables transactions to be undone based on a date. Useful if you or someone else has managed to make a lot of separate changes that would be cumbersome to undo the usual Zope way and no recent (enough) backups are available. See the Undo tab in the Zope

[Zope-Annce] Spaceman 1.0 released

2007-03-05 Thread Morten W. Petersen
Spaceman is a simple utility to help determine what's eating up your diskspace. It might just be old transactions, in which case a pack will do or it might be big objects somewhere. The script can be downloaded from here: http://products.nidelven-it.no/spaceman -Morten

[Zope-Annce] Issue Dealer 0.9.124 released

2007-04-05 Thread Morten W. Petersen
Issue Dealer (http://issuedealer.com) is a issue management tool featuring a weblog publisher (client), weblog (server), WebDAV client, Mail gateway (mailing list and archive), WYSIWYG editing of HTML and Images and more. Changes since the last announcement: 0.9.124: - Added issue past due

Re: [Zope-Annce] Re: [Zope] SQLAlchemy 0.2 released - a generic database adapter for Zope 2

2007-05-07 Thread Morten W. Petersen
Dieter Maurer wrote: Tino Wildenhain wrote at 2007-5-5 20:58 +0200: ... Btw, what do you think about an idea to (alternatively) configure db-connections in zope.conf? I like local (instance specific) configurations -- that the primary reason while we have the instances at all. While

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

[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

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

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

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

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

[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

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

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

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

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

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

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

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

  1   2   >