Re: [Zope3-Users] ZODB and unique values

2009-08-03 Thread Gary Poster
On Aug 3, 2009, at 3:00 PM, Gustavo Rahal wrote: So, i'm reading zope3 web component architecture book (quite cool by the way) and since i'm too SQL DB oriented I was wondering how to garantee fields uniqueness in ZODB. For instance, if I have a IMachine interface, I want the ip_address

Re: [Zope3-Users] Zope 3 and code reuse

2009-04-15 Thread Gary Poster
On Apr 15, 2009, at 9:26 AM, Kent Tenney wrote: Howdy, Something I wonder about: One of the benefits offered by the Zope Component Architecture is the ability to use interfaces and adapters to leverage legacy code. To what extent is this theory being practiced? I've seen replacement of

Re: [Zope3-Users] Last zc.async package for Zope-3.3.1

2008-10-20 Thread Gary Poster
On Oct 20, 2008, at 3:13 PM, Thierry Florac wrote: Hi, Actually using Zope-3.3.1, I'm looking at zc.async package but the last release is no more compatible with my Zope release. Could anyone point me to the last compatible release ?? Thanks, Thierry Florac Hi Thierry. The 1.0

Re: [Zope3-Users] zc.async in Zope2/Plone

2008-09-13 Thread Gary Poster
On Sep 12, 2008, at 7:16 PM, Santiago Videla wrote: Hi Gary, If you want a Zope 2 instance to run the zc.async dispatcher/worker threads, then it might be better to get the DB that zope is using. In Zope 3, there's an event you can subscribe to to get the DB. Maybe there's

Re: [Zope3-Users] zc.async in Zope2/Plone

2008-09-13 Thread Gary Poster
On Sep 13, 2008, at 2:43 PM, Santiago Videla wrote: Hi, more reports... :) If you want a Zope 2 instance to run the zc.async dispatcher/worker threads, then it might be better to get the DB that zope is using. In Zope 3, there's an event you can subscribe to to get the DB.

Re: [Zope3-Users] zc.async in Zope2/Plone

2008-09-12 Thread Gary Poster
On Sep 12, 2008, at 1:23 AM, Santiago Videla wrote: Well, after some hours and many buildouts done, I couldn't get this running. The best approach I got is like this (using repoze.plone): 1) just run the standard buildout.cfg for repoze.plone 2) add zc.async to the eggs section in the

Re: [Zope3-Users] zc.async in Zope2/Plone

2008-09-10 Thread Gary Poster
On Sep 10, 2008, at 2:55 PM, Santiago Videla wrote: Hi people, Hi! I want to use zc.async in a Zope2/Plone web app. The problem that I found it's that zc.async requires zope.testing. When I run buildout it seems that zope.testing overwrite the testing module from zope2

Re: [Zope3-Users] zc.async in Zope2/Plone

2008-09-10 Thread Gary Poster
On Sep 10, 2008, at 5:01 PM, Santiago Videla wrote: Hi Gary thanks for the help That's a shame. Could it be that, if you specify a version of zope.testing in your setup.py that is equivalent to the version of zope.testing in your Plone app, the overwriting happens but without ill

Re: [Zope3-Users] zc.async in Zope2/Plone

2008-09-10 Thread Gary Poster
On Sep 10, 2008, at 5:27 PM, Michael Dunstan wrote: On Thu, Sep 11, 2008 at 6:55 AM, Santiago Videla [EMAIL PROTECTED] wrote: * How can I solve this problem?? There is any way to say in the buildout.cfg: Ignore the zope.testing package I guess that I won't be able to run the tests for

Re: [Zope3-Users] demostorage does not support blobs

2008-04-20 Thread Gary Poster
On Apr 20, 2008, at 7:13 AM, Benji York wrote: On Sun, Apr 20, 2008 at 4:52 AM, Christophe Combelles [EMAIL PROTECTED] wrote: Unsupported: Storing Blobs in ZODB.DemoStorage.DemoStorage instance at 0xb6fb8dcc is not supported. I don't know if DemoStorage is supposed to work or not, but as

Re: [Zope3-Users] query all objects in catalog

2008-03-06 Thread Gary Poster
On Mar 6, 2008, at 1:42 PM, Robert Marianski wrote: Is there a way to query a zope3 catalog for all objects that have been indexed? I see that there is a way to ask an index for the number of documents it currently has indexed, via documentCount() in the IStatistics interface, but I can't a

Re: [Zope3-Users] query all objects in catalog

2008-03-06 Thread Gary Poster
On Mar 6, 2008, at 2:18 PM, Robert Marianski wrote: On Thu, Mar 06, 2008 at 02:11:40PM -0500, Gary Poster wrote: On Mar 6, 2008, at 1:42 PM, Robert Marianski wrote: Is there a way to query a zope3 catalog for all objects that have been indexed? I see that there is a way to ask an index

Re: [Zope3-Users] Re: how to model a 1-to-1 relation

2008-01-11 Thread Gary Poster
On Jan 11, 2008, at 10:25 AM, Christophe Combelles wrote: Jürgen Kartnaller a écrit : john saponara wrote: I want to allow the user to create car and driver objects in a limoService container. Car objects will stand alone, but each driver object should contain a car object by reference

Re: [Zope3-Users] zc.catalog's FilterExtent (with hurry.query)

2007-10-28 Thread Gary Poster
On Oct 27, 2007, at 9:40 AM, Jesper Petersen wrote: Hey! I'm trying to understand if my idea of how to use the FilterExtent in zc.catalog (1.1.1) is correct (and efficient). I'm also using hurry.query (0.9.3). My current understanding of extents is: they can be used to perform a search on

Re: [Zope3-Users] Modified IntId utility

2007-09-25 Thread Gary Poster
On Sep 25, 2007, at 3:27 AM, Frank Burkhardt wrote: I'm using a modified IntId utility which starts IDs at 1 and counts upwards, too. I needed some permanent link for each object which was easy to implement via IntId. The modification was made to safe keystrokes when typing the permalink.

Re: [Zope3-Users] Strange ZODB error

2007-08-10 Thread Gary Poster
On Aug 10, 2007, at 2:30 AM, Christian Theune wrote: Am Donnerstag, den 09.08.2007, 09:52 -0400 schrieb Gary Poster: You probably need to find out what the object is for anyone to have a chance of helping. I usually just put a pdb in the ZODB that is triggered if there's an error here

Re: [Zope3-Users] Strange ZODB error

2007-08-09 Thread Gary Poster
You probably need to find out what the object is for anyone to have a chance of helping. I usually just put a pdb in the ZODB that is triggered if there's an error here, and then start poking around. Using the postmortem debug publisher might work too, but it has caused enough problems

Re: AW: [Zope3-Users] Re: Using svn checkout with zc packages

2007-07-30 Thread Gary Poster
On Jul 30, 2007, at 10:46 AM, Roger Ineichen wrote: Hi Jeff, Betreff: Re: [Zope3-Users] Re: Using svn checkout with zc packages [...] I feel like I need a training course or consultancy to move to buildout, which requires time and money that we just don't have. Same belongs to me.

Re: [Zope3-Users] z3c.form 1.4.0, z3c.formui 1.1.0, and z3c.formdemo 1.2.0 released!

2007-07-04 Thread Gary Poster
On Jun 29, 2007, at 10:50 AM, Stephan Richter wrote: Hello everyone, again thanks to the great feedback we received -- especially from David Pratt, Roy Mathew, and Joachim Werner -- we were able to fine-tune our new form framework even more to make it as robust of a foundation as

[Zope3-Users] Re: zc.queue conflict question

2007-05-20 Thread Gary Poster
On May 20, 2007, at 6:26 AM, Chris Withers wrote: Gary Poster wrote: Why does adding to identical objects to a queue at the same time result in a conflict? Surely they should both just get added in an artbitary order? Basically, the constraint allows for more powerful conflict resolution

Re: [Zope3-Users] Re: zope.intid and UUIDs

2007-04-19 Thread Gary Poster
On Apr 19, 2007, at 12:56 PM, Derek Richardson wrote: We've talked a lot about the composition alternative to my idea, but we haven't talked about my idea much. What is suboptimal with the way I'm proposing, other than that it requires changing zope core? Martin Aspeli had some concrete

Re: [Zope3-Users] Re: Unicode for Stupid Americans (like me)?

2007-02-28 Thread Gary Poster
On Feb 28, 2007, at 5:37 PM, Paul Winkler wrote: On Wed, Feb 28, 2007 at 02:06:39PM -0700, Jeff Shell wrote: On 2/28/07, Philipp von Weitershausen [EMAIL PROTECTED] wrote: That's sorta what zope.publisher does. Actually, it figures that if the browser sends an Accept-Charset header, the

Re: [Zope3-Users] unique integer id as a Token for ITerms ?

2007-02-21 Thread Gary Poster
On Feb 21, 2007, at 1:23 PM, Christophe Combelles wrote: Hello, When using a vocabulary, one needs to generate a token for each term, then to be able to get the value again from the token. (getTerm/getValue needed by ITerms) Is there a problem using the Unique Integer Id generated by

Re: [Zope3-Users] select field with Choice widget and formlib

2007-02-07 Thread Gary Poster
On Feb 7, 2007, at 11:30 AM, Dominique Lederer wrote: hi i render a form with formlib which contains a selectbox: form_fields = Fields( Choice(__name__='selectbox', required=False, values=[value1,value2,value3]), ) the rendered output always includes a extra option which

Re: [Zope3-Users] Problems reindexing on ObjectModifiedEvent

2007-01-18 Thread Gary Poster
On Jan 18, 2007, at 4:07 PM, [EMAIL PROTECTED] wrote: I need to investigate this further now, but this problem so far seems to isolated to the ValueIndex. Also, when the ObjectModifiedEvent is replaced with an ObjectCreatedEvent, the object is properly indexed. Hi Kevin. We don't know of

Re: [Zope3-Users] Extent catalog question

2007-01-11 Thread Gary Poster
On Jan 11, 2007, at 1:42 PM, [EMAIL PROTECTED] ksmith93940- [EMAIL PROTECTED] wrote: In my experience (zope2), large full textindexes require more and more cpu time for every new object added to the point where it takes several minutes for each new article uploaded! To avoid this

Re: [Zope3-Users] zope.testbrowser and vhost

2007-01-02 Thread Gary Poster
On Jan 2, 2007, at 2:29 PM, Benji York wrote: Dominique Lederer wrote: i see there is a VirtualHostingBrowser class in zope.testbrowser.testing, but i dont have a clue on how to use this. Use VirtualHostTestBrowserSuite instead of unittest.TestSuite and the tests you add to the suite will

Re: [Zope3-Users] zc.table FieldColumn question

2006-11-17 Thread Gary Poster
On Nov 17, 2006, at 3:00 PM, [EMAIL PROTECTED] wrote: Ok, so the following works, but if someone with more knowledge could comment on this I'd appreciate it. We have two separate stages (and methods) in our views, update and render. In our views, we *explicitly* call the field columns'

Re: [Zope3-Users] getId in zope3?

2006-11-05 Thread Gary Poster
On Nov 5, 2006, at 1:12 PM, Peter Bengtsson wrote: In Zope2 every object has an 'id' which meant that you can use someobject.getId() to find out what name the object is stored under in its container. Is there an equivalent in zope3? __name__

Re: [Zope3-Users] Re: how to catalog principal annotations?

2006-11-03 Thread Gary Poster
On Nov 3, 2006, at 11:39 AM, Philipp von Weitershausen wrote: Dominique Lederer wrote: I have users residing in an external database.I store user data with principal annotations. Now i want to create a view where users with a special annotation are listed. Is it possible to catalog principal

Re: [Zope3-Users] z3c.zrtresource or zc.resourcelibrary

2006-10-31 Thread Gary Poster
On Oct 31, 2006, at 7:15 PM, Jeff Shell wrote: On 10/24/06, Gary Poster [EMAIL PROTECTED] wrote: It might be nice to have zc.resourcelibrary be able to somehow serve z3c.zrtresource files too...it doesn't right now. FWIW, right now in lieu of zrtresource I just use script ... tal:content

Re: [Zope3-Users] Links / Relationships (again)

2006-10-30 Thread Gary Poster
On Oct 30, 2006, at 11:56 AM, Stephan Richter wrote: All the zc packages should be up-to-date. In the Lovely projects we use zc.relationship, even though it is much more complicated than it should be. That seems unnecessarily derogatory. :-) But I know where you are coming from. As

Re: [Zope3-Users] z3c.zrtresource or zc.resourcelibrary

2006-10-24 Thread Gary Poster
On Oct 24, 2006, at 8:41 AM, Peter Bengtsson wrote: Which one should I use for my new zope 3 site? z3c.zrtresource or zc.resourcelibrary? I don't understand the difference between them and I don't have hours to spare on evaluating both. I'm sure they do different things and do them

Re: [Zope3-Users] Links / Relationships (again)

2006-10-16 Thread Gary Poster
On Oct 16, 2006, at 6:48 PM, Jeff Shell wrote: I see there's a `zc.extrinsicreference` in the svn.zope.org repository. Is that in a usable state? As Benji said, yes, and it sounds like it might fit your use cases. You might be interested in http://mail.zope.org/pipermail/zope3-users/

Re: [Zope3-Users] Re: NTLM credential plugin

2006-09-13 Thread Gary Poster
On Sep 13, 2006, at 2:30 AM, Philipp von Weitershausen wrote: Simon Hang wrote: Hi, I'm thinging to write a NTLM credential plugin for zope3. But as I know, ntlm use 4-way handshake procedure, that means it needs two round-trips between server(zope3) and client(browser). When I look in

Re: [Zope3-Users] Re: NTLM credential plugin

2006-09-13 Thread Gary Poster
On Sep 13, 2006, at 11:47 AM, Chris McDonough wrote: The right thing to do here is probably to just use something like http://modntlm.sourceforge.net/ and trust the REMOTE_USER environment variable passed by Apache... let somebody else worry about maintaining it. ;-) One strategy for

Re: [Zope3-Users] Time for a Decimal field type in zope.schema?

2006-09-01 Thread Gary Poster
On Aug 31, 2006, at 9:56 PM, Darryl Cousins wrote: Hi Marius, Cheers. I don't have checkin rights so I'll leave it to you (or another) if it considered is worthwhile. Darryl, your decimal field changes would be welcome, as would a currency field. Unfortunately, having one person check

[Zope3-Users] New open-sourced Zope Corporation packages

2006-08-24 Thread Gary Poster
Zope Corporation is happy to announce a number of newly open-sourced packages. All are in use, in development, or both. We release these packages in the strong hope that others will contribute to them, from maintenance through extension to refactoring. The maintainers are effectively

Re: [Zope3-Users] New open-sourced Zope Corporation packages

2006-08-24 Thread Gary Poster
On Aug 24, 2006, at 12:14 PM, Martijn Faassen wrote: Gary Poster wrote: Zope Corporation is happy to announce a number of newly open- sourced packages. All are in use, in development, or both. [snip long list] Awesome! And thanks for this announcement! And here Infrae's with only 3 hurry

Re: [Zope3-Users] zope3's TAL ZPT reference

2006-08-07 Thread Gary Poster
On Aug 7, 2006, at 11:10 AM, Florian Lindner wrote: Am Montag, 7. August 2006 14:57 schrieb Michele Amori: Hello all, actually I'm a zope newbie. I must develop web applications with zope 3.2, in the next future, so I'd like some help from this ML. I'm searching for a ZPT (or TAL)

Re: [Zope3-Users] searching and relations

2006-07-23 Thread Gary Poster
On Jul 23, 2006, at 4:12 AM, Darryl Cousins wrote: Gary Poster wrote: If the relationship is intrinsic to one object's data model but not to the other's, then it makes sense to have a Python pointer on the first object. Hi Gary, Am I right that 'a Python pointer on the first object

Re: [Zope3-Users] Persistent subclasses in tests

2006-07-23 Thread Gary Poster
On Jul 23, 2006, at 6:59 PM, Darryl Cousins wrote: Hi, I've have a problem with the following and I hope someone can shed some light for me ... Yup, you need to handle a case like that specially. See zope.testing.module Gary ___ Zope3-users

Re: [Zope3-Users] searching and relations

2006-07-22 Thread Gary Poster
On Jul 22, 2006, at 4:47 AM, Lorenzo Gil Sanchez wrote: El vie, 21-07-2006 a las 10:21 -0400, Pete Taylor escribió: Lorenzo, I've run into a very (very!) similar situation, and ended up writing some wrapper/simplification utilities for zc.relationship. zc.relationship is wonderfully powerful,

Re: [Zope3-Users] IRelationshipMapper

2006-07-10 Thread Gary Poster
On Jul 10, 2006, at 10:09 PM, Gary Poster wrote: Jim built the nice-n-simple zc.extrinsicreference package for a good way to make back- references to Python references. Apologies: Benji York built the nice-n-simple zc.extrinsicreference package. :-) Gary

Re: [Zope3-Users] Non-owning references in Zope3

2006-05-24 Thread Gary Poster
On May 24, 2006, at 4:27 PM, Alek Kowalczyk wrote: Tom Dossis wrote: [EMAIL PROTECTED] wrote: Hi, I am relatively new to Zope3. I could not find anywhere an example, what is the 'right way' to make non-owning reference to another object in Zope? Every piece of zope3 docs is full of

Re: [Zope3-Users] Internationalization, Widgets, and Currency

2006-05-09 Thread Gary Poster
On May 9, 2006, at 1:37 AM, Tom Dossis wrote: David Johnson wrote: I am trying to implement a currency input using a Float widget. This wasn't your question, but, eek! Currency should use a python decimal.Decimal, never a float. I don't think we have schema field and widget yet, but

Re: [Zope3-Users] More fun with WSGI/zope.paste

2006-05-08 Thread Gary Poster
On May 7, 2006, at 4:47 PM, Jim Washington wrote: Following along from Gary's idea that zc.resourcelibrary could be done as WSGI middeware, I am now previewing headincludes, a wsgi middleware filter with an alternative implementation of zc.resourcelibrary. It usurps a lot of

Re: [Zope3-Users] More fun with WSGI/zope.paste

2006-05-08 Thread Gary Poster
On May 8, 2006, at 4:41 PM, Benji York wrote: Shane Hathaway wrote: Benji York wrote: Gary Poster wrote: z has also been proposed. :-) That strikes me as a good replacement for z3c. What about zf, for Zope Foundation? I was thinking more about code that doesn't belong

Re: [Zope3-Users] More fun with WSGI/zope.paste

2006-05-08 Thread Gary Poster
On May 8, 2006, at 5:15 PM, Jim Washington wrote: Oops. Forgot to cc the list. Gary Poster wrote: [...] What do you think about some or all of the following: - moving development of all three of these to zope.org svn? OK. I do not have commit privileges on zope.org svn. But you do

Re: [Zope3-Users] More fun with WSGI/zope.paste

2006-05-08 Thread Gary Poster
On May 8, 2006, at 5:39 PM, Benji York wrote: Jim Washington wrote: OK. I do not have commit privileges on zope.org svn. But you do, and I do not mind if you put these packages up there. AFAIK, you'd still have to sign a contributor agreement. (PS. er, actually, the packer in jsmin

Re: [Zope3-Users] Formlib and invariants?

2006-05-04 Thread Gary Poster
On May 4, 2006, at 7:44 AM, Bernd Dorn wrote: On 04.05.2006, at 13:35, Gary Poster wrote: On May 3, 2006, at 11:51 PM, Bernd Dorn wrote: yes, this should really be fixed up in the default implementation of formlib because interface.Invalid has no registered multiadapter

Re: [Zope3-Users] Re: Checking if an interface is provided by an object or could be adapted to

2006-05-01 Thread Gary Poster
On May 1, 2006, at 2:56 AM, Bernd Dorn wrote: On 01.05.2006, at 01:55, Stephan Richter wrote: On Sunday 30 April 2006 19:34, Bernd Dorn wrote: component.queryMultiAdapter((bar,baz), IFoo) is not None or False this way you always get True or False ok, for this case it is ok but when you

Re: [Zope3-Users] Re: Referencing objects in auto-generated forms

2006-04-18 Thread Gary Poster
On Apr 18, 2006, at 3:31 AM, Frank Burkhardt wrote: Hi,. On Sun, Apr 16, 2006 at 01:48:37PM -0500, Jeff Rush wrote: [snip] Frank, I thought vocabularies were being de-emphasized though, in favor of the newer 'sources' component? Vocabularies were good for short lists of choices, but

Re: [Zope3-Users] Re: Sending data to widgets

2006-04-18 Thread Gary Poster
On Apr 18, 2006, at 10:19 AM, Frank Burkhardt wrote: Hi, On Tue, Apr 18, 2006 at 04:04:43PM +0200, Philipp von Weitershausen wrote: Hi Frank, My problem is not about data the widget should display but about data that controls the widget's behaviour. In this case my form consists of

Re: [Zope3-Users] Time for a Decimal field type in zope.schema?

2006-04-07 Thread Gary Poster
On Apr 7, 2006, at 8:35 AM, Jeff Rush wrote: Perhaps this is an old topic, although I've done searches. I've seen the brief discussion about security proxies and the Decimal type on zope3-users, but (to zope3-dev) what about getting it added to the zope.schema as a first-class field

Re: [Zope3-Users] formlib confusion

2006-04-06 Thread Gary Poster
On Apr 6, 2006, at 7:27 PM, Alen Stanisic wrote: Hi Pete, I assign templates in view classes when using formlib: from zope.app.pagetemplate.viewpagetemplatefile import ViewPageTemplateFile class ConsumerRegistrarForm(form.Form): . . template =

Re: [Zope3-Users] pau scenario

2006-03-28 Thread Gary Poster
On Mar 28, 2006, at 10:43 AM, Pete Taylor wrote: Hi all, I've been off working on some other projects recently (zope3 projects, but none that involved specific logins and users, just data capture from a public site), and just got back to working with PAU, and had an interesting scenario

Re: [Zope3-Users] Problem with SetIndex (from zc.catalog)

2006-03-21 Thread Gary Poster
On Mar 20, 2006, at 5:58 PM, Tom Dossis wrote: Tom Dossis wrote: Gary Poster wrote: Use the ones in zc.catalog.catalogindex.py instead: they do the necessary mixing-in for zope.app.catalog friendliness, without a patch. Looks like I missed it - thank you. The purpose of the patch

Re: [Zope3-Users] Problem with SetIndex (from zc.catalog)

2006-03-21 Thread Gary Poster
On Mar 20, 2006, at 6:51 PM, Thierry FLORAC wrote: On Mon, 2006-03-20 at 17:37 -0500, Gary Poster wrote: On Mar 20, 2006, at 5:14 PM, Thierry FLORAC wrote: But I'm just trying to use a simple (not subclassed) SetIndex, and then to access my catalog Advanced management page...! I don't build

Re: [Zope3-Users] Problem with SetIndex (from zc.catalog)

2006-03-20 Thread Gary Poster
On Mar 20, 2006, at 5:32 PM, Stephan Richter wrote: On Monday 20 March 2006 17:14, Thierry FLORAC wrote: Should I build any specific SetIndex subclass ? Or define a specific template ?? I think in this case it is a bug. Feel free to report it in the issue tracker. :-) See email I just

Re: [Zope3-Users] Problem with SetIndex (from zc.catalog)

2006-03-20 Thread Gary Poster
On Mar 20, 2006, at 5:34 PM, Tom Dossis wrote: Thierry FLORAC wrote: Should I build any specific SetIndex subclass ? Or define a specific template ?? When I last used SetIndex from zc.catalog.index it didn't quite match the interface(s) required zope.app.catalog. It was simple enough

Re: [Zope3-Users] Problem with SetIndex (from zc.catalog)

2006-03-20 Thread Gary Poster
Tom Dossis wrote: Tom Dossis wrote: Gary Poster wrote: Use the ones in zc.catalog.catalogindex.py instead: they do the necessary mixing-in for zope.app.catalog friendliness, without a patch. Looks like I missed it - thank you. The purpose of the patch was to convert documentCount

Re: [Zope3-Users] zc.table - how does sorting work?

2006-03-14 Thread Gary Poster
On Mar 14, 2006, at 11:54 AM, Laurence Rowe wrote: Hi there, I'm trying to use zc.table to format the output of one of my forms. it seems to work ok for the unsorted formatter, but not for the StandalonSortFormatter. Here is the code that works with plain formatter: columns = (

Re: [Zope3-Users] Principal annotations

2006-03-11 Thread Gary Poster
On Mar 11, 2006, at 3:14 AM, Thierry FLORAC wrote: On Thu, 2006-03-09 at 01:14 -0700, Shane Hathaway wrote: Your idea of annotating InternalPrincipals rather than Principals seems to work, but I apparently did something wrong, because edited annotations don't persist! I can save edits, but

Re: [Zope3-Users] Visionaire! (All your problems, solved)

2006-03-01 Thread Gary Poster
On Mar 1, 2006, at 7:42 PM, Jeff Shell wrote: [...] - Zope 3 CA: The Zope Component Architecture. Core services. Would include zope.publisher and most other current top level zope.* things. Usable as a library, as a publisher for other environments, perhaps as a simple standalone

Re: [Zope3-Users] Re: redirects in a formlib EditForm

2006-02-27 Thread Gary Poster
On Feb 27, 2006, at 6:52 AM, jürgen Kartnaller wrote: Gary Poster wrote: [...] Yes, we write custom templates that use hidden input fields. We reuse the existing template by putting the default template on another attribute of the view class, and then saying 'metal:use- macro=view

Re: [Zope3-Users] Re: redirects in a formlib EditForm

2006-02-27 Thread Gary Poster
On Feb 27, 2006, at 8:39 PM, Joel Moxley wrote: Damn, I still can't get this working right after following all of the instructions here. I can successfully stash the refering url in a hidden form, but it's not showing up in my request. I can think of two possible things. One is that you

Re: [Zope3-Users] zodb objects backup

2006-02-25 Thread Gary Poster
Alen, please see http://www.zope.org/Wikis/ZODB/FileStorageBackup Shaun, many of the other questions in this thread--and others recently--are answered in this guide: http://www.zope.org/Wikis/ZODB/FrontPage/guide/index.html It is highly recommended reading if you are doing serious Zope 3

Re: [Zope3-Users] syncing object view after an attribute change

2006-02-24 Thread Gary Poster
On Feb 21, 2006, at 8:22 AM, Joel Moxley wrote: Hi all, I've been developing an app, and I keep running into this problem. Briefly, the object view loaded in my page will be one step out of sync with a change I make on the object. This seems to be something very basic that I am missing, but

Re: [Zope3-Users] Re: [Zope] Debugging doctests

2006-02-23 Thread Gary Poster
On Feb 23, 2006, at 10:10 AM, Benji York wrote: [...] if 1: ... import pdb;pdb.set_trace() ... a = 1 ... b = 2 ... c = a + b Oh yeah. I've had to do stuff like that too. :-) ___ Zope3-users mailing list Zope3-users@zope.org

Re: [Zope3-Users] nextURL: add vs edit

2006-02-17 Thread Gary Poster
On Feb 17, 2006, at 1:42 PM, Shaun Cutts wrote: Ok, In AddView.update, self.request.response.redirect(self.nextURL()) is called, but this is not called in EditView... so change isn't as simple as moving nextURL. However, if you put this line into EditView.update as well as moving

Re: [Zope3-Users] (Beginner's) Questions concerning ZopeX3 Component Communication

2006-02-17 Thread Gary Poster
On Feb 17, 2006, at 4:24 PM, Lennart Regebro wrote: On 2/17/06, Reinhold Strobl [EMAIL PROTECTED] wrote: I mean, is a remote call in that kind possible? No. The client and server are two different computers. For that reason you must use some kind of network protocol to

Re: [Zope3-Users] Lists dont accept default values

2006-02-16 Thread Gary Poster
On Feb 16, 2006, at 3:55 AM, Frank Burkhardt wrote: I wrote a schema like this to have a list of objects on a content object: class IMyContent(Interface): mynumbers=List( title=_(uCool Numbers), required=True, value_type=Int( title=_(integer) )

Re: [Zope3-Users] Authentication, Principals and PAU...

2006-02-14 Thread Gary Poster
On Feb 13, 2006, at 6:17 PM, luis wrote: hi all, I'm trying to get started with zope3, and while I think I'm beginning to understand parts of it, I'm still having a hard time with other parts, so I hope someone here can help me out a bit. my first questions are concerning

Re: [Zope3-Users] newbie design questions for UI to external data

2006-02-14 Thread Gary Poster
On Feb 13, 2006, at 10:33 PM, Shaun Cutts wrote: Um... I guess I must have asked too many questions at once :) :-) and this is still a bit much for me. I've implemented a first pass of a container for external data and got it working on some of my collections. I've included the (first

Re: [Zope3-Users] What attributes are made persistent

2006-02-14 Thread Gary Poster
On Feb 14, 2006, at 4:52 PM, Florian Lindner wrote: Hello, in a class derived from Persistent, which attributes are stored? All or only those thar are declared in the interface? All. def __init__(self): self.queue = {} self.queue seem is empty each time I restart Zope.

Re: [Zope3-Users] Getting request from subscriber ?

2006-02-13 Thread Gary Poster
On Feb 13, 2006, at 6:02 AM, Thierry FLORAC wrote: Hi, Probably a simple question... I need to extract request's content from an event handler defined via a subscriber. request doesn't seems to be in a subscriber's context. So how can I get it ?? option 1: make the subscriber listen

Re: [Zope3-Users] Absolute url of an object

2006-02-13 Thread Gary Poster
On Feb 10, 2006, at 9:11 PM, Paulus Zegwaard wrote: Hi, OK, thanks to Alen and with some further digging, I can sort of answering my own question, I found some answers here: zope3-for-zope2-developers.pdf from Phillip von Weitershausen. Thanks Phillip for thinking of these legions of poor

Re: [Zope3-Users] Javascript and custom widgets

2006-02-09 Thread Gary Poster
On Feb 9, 2006, at 12:38 PM, Rupert Redington wrote: I'm missing something... again... I've started writing some widgets for my current project, some of which will make use of some javascript. This is precisely what we use zc.resourcelibrary for. It has some warts, but we use it, we

Re: [Zope3-Users] Generations of Zope and Enterprise Culture

2006-02-09 Thread Gary Poster
On Feb 9, 2006, at 5:20 PM, Edward Pollard wrote: [...] Since I really can't explain the environmental factors in any depth, let me rephrase: How do you sell Zope 3 as a solution? It depends on the audience. It also depends on who's talking. The people who do this selling on a regular

Re: [Zope3-Users] New User: Zope 2, or Zope 3?

2006-02-08 Thread Gary Poster
On Feb 8, 2006, at 6:05 PM, Chris Cogdon wrote: Hi folks! I'm starting work on a from-scratch web application, and I'd like to use this as a first-time-application using Zope. (Actually, this is not really the first time... but my previous was something really simple way back in the Zope

[Zope3-Users] Zope 3 Marketing Competition? (was Re: [Zope3-dev] Re: Selecting a code name)

2006-02-06 Thread Gary Poster
On Feb 6, 2006, at 5:37 PM, Martin Aspeli wrote: [...] This is about getting people to *understand* what Zope is about, to understand that we *care* that they understand and that we made an *effort* to make it easy for them to get into it. It's about lowering the barrier to entry and the

[Zope3-Users] Nine new ZC Zope 3 packages on zope.org

2006-02-03 Thread Gary Poster
Zope Corp has released nine new packages as standalone Zope 3 projects on zope.org. Three are completely new to the zope.org repository, and six were previously part of the zc Sandbox on zope.org. These three packages are brand new to zope.org. zc.shortcut Our (second) take on the

Re: [Zope3-Users] Please Guido, pick me, pick me!

2006-02-03 Thread Gary Poster
On Feb 3, 2006, at 1:16 PM, Joel Moxley wrote: [...] Overall, I think the time has come for communication of Zope 3 identity to move hand in hand with development. This was a great post. I want it go someplace, and I want you to be involved in getting it there. :-) Those were some fun,

Re: [Zope3-Users] How To Solve in Zope 3

2006-02-03 Thread Gary Poster
On Feb 3, 2006, at 9:32 PM, matt wilbert wrote: I have exactly the same situation, as I am writing a network management tool. I am using one big container and a local catalog. Then you can slice and dice as best suits you. I also think it is more extensible if you ever think you might

Re: [Zope3-Users] Please Guido, pick me, pick me!

2006-02-02 Thread Gary Poster
This is an interesting thread. Some opinions and observations: Guido will do what Guido does. His seeming antagonism to Zope is a little annoying, but he's opinionated on other topics too, and sometimes admits to being wrong and human. As some folks mentioned, it does sound like he

Re: [Zope3-Users] Still trying to figure out PAU

2006-02-02 Thread Gary Poster
On Feb 2, 2006, at 4:41 PM, Florian Lindner wrote: Hello, I'm still desperately trying to figure out the PluggableAuthentication. Since no one has replied, I'll try my 30-second remediation technique again. ;-) That means I didn't really follow exactly what you are doing, and I'm just

Re: [Zope3-Users] Looking for PathIndex

2006-02-01 Thread Gary Poster
On Feb 1, 2006, at 3:12 AM, Thierry FLORAC wrote: Hi ! I'm actually trying to create a Zope3 application, where I may be able to make queries : - looking for content in the whole site - looking for content in a given sub-site or list of sub-sites, eventually including all it's

Re: [Zope3-Users] test() in TALES in Zope3

2006-02-01 Thread Gary Poster
On Feb 1, 2006, at 3:17 AM, Frank Burkhardt wrote: On Wed, Feb 01, 2006 at 09:04:36AM +0100, Frank Burkhardt wrote: [snip] div tal:attributes=class python: 'foo' + test(condition == True,' bar','') / Is this possible? Impressing simple solution :-) . FWIW the classic Zope 3 solution

Re: [Zope3-Users] test() in TALES in Zope3

2006-02-01 Thread Gary Poster
On Feb 1, 2006, at 8:07 AM, Andreas Jung wrote: --On 1. Februar 2006 07:56:47 -0500 Gary Poster [EMAIL PROTECTED] wrote: FWIW the classic Zope 3 solution is to say Don't do that in the template! Do it in the view class!. I'll let others add vigor, if they wish. I just wanted you to know

Re: [Zope3-Users] generations and utilities

2006-01-31 Thread Gary Poster
On Jan 31, 2006, at 11:16 AM, Paolo Invernizzi wrote: Hello, I've developed a content object for zope and I'm using the install.py script in a generation package to install some prebuild content instances in a folder, and everything works well. I'm now trying to add a Catalog plus

Re: [Zope3-Users] Re: generations and utilities

2006-01-31 Thread Gary Poster
On Jan 31, 2006, at 11:48 AM, Paolo Invernizzi wrote: Do you mean if there's a zope.app.keyreference-configure.zcml in the instance/etc? Yes, it's a standard zope 3.2.0 created instance... Ah well, sorry. Your recipe looks fine. If I were in your shoes my next lazy attempt would be to

Re: [Zope3-Users] Re: generations and utilities

2006-01-31 Thread Gary Poster
On Jan 31, 2006, at 12:23 PM, Paolo Invernizzi wrote: Gary Poster wrote: Your recipe looks fine. If I were in your shoes my next lazy attempt would be to try committing the transaction with the intids and catalog before adding the indexes. Ok, I added the transaction... still bangs

Re: [Zope3-Users] User management in Zope3?

2006-01-27 Thread Gary Poster
On Jan 27, 2006, at 1:57 AM, Roman Susi wrote: Hi! Maybe this is a very naíve quiestion from Zope3 beginner, but is there any ready module for user management in Zope3? For example, certain subfolder needs LDAP auth. Am I to write myself all the code? (zope.org has draft of User management

Re: [Zope3-Users] Permissions of a given object

2006-01-17 Thread Gary Poster
On Jan 17, 2006, at 10:38 AM, Frank Burkhardt wrote: Hi, On Sun, Jan 15, 2006 at 11:20:47AM -0500, Stephan Richter wrote: On Thursday 12 January 2006 08:13, Frank Burkhardt wrote: but the problem remains: canAccess returns True for all inaccessible objects. It is hard to guess where your

Re: [Zope3-Users] Convert from string to class

2006-01-17 Thread Gary Poster
On Jan 17, 2006, at 5:10 PM, Florian Lindner wrote: Hello, I've a string like zope.app.folder.Folder and I want to get the class zope.app.folder.Folder from this string. How can I do that? It's probably more a python problem that Zope... but I hope you excuse. Was just rewriting this

Re: [Zope3-Users] Anyone had any success with ZCatalog in Zope 3?

2005-11-17 Thread Gary Poster
On Nov 17, 2005, at 9:05 AM, Johan Carlsson wrote: Johan Carlsson wrote: Ivo van der Wijk wrote: On 11/17/05, Johan Carlsson [EMAIL PROTECTED] wrote: The code you gave me shows the same showed the same problem as Jürgen pointied out, the IntId needs to have '' as id. I remember

Re: [Zope3-Users] First time install problem

2005-10-18 Thread Gary Poster
On Oct 18, 2005, at 3:47 PM, Tim Penhey wrote: Hi All, I am using Kubuntu 5.10 (Breezy Badger) and after failing to use the pre-packaged zope3, I tried to download and install the one from zope.org. Using Python 2.4.2 and gcc 4.0.2. Since I don't have python2.3 installed (and env 'aint

Re: [Zope3-Users] searching content objects on created datetime

2005-10-06 Thread Gary Poster
On Oct 5, 2005, at 9:00 PM, Alen Stanisic wrote: Hi, I am trying to search my content objects on their creation datetime. For example, a user can enter From and To dates and I would like to retrieve all content objects based on the date range. Hi Alen. Take a look at zc.catalog in the

Re: [Zope3-Users] benji york's quick_start.txt

2005-10-05 Thread Gary Poster
On Oct 5, 2005, at 1:12 PM, Matthew Russell wrote: Hi, I'm following Benji's quick_start.txt ... TypeError: ('Could not adapt', zope.publisher.browser.BrowserRequest instance URL=http://localhost:8080/hello/@@edit.html, InterfaceClass zope.interface.common.idatetime.ITZInfo) Hi Matt.

  1   2   >