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_addre

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 replacem

Re: [Zope3-Users] zc.catalog NormalizationWrapper question...

2008-12-18 Thread Gary Poster
On Dec 18, 2008, at 9:52 AM, Thierry Florac wrote: > Hi, > > I'm currently using zc.catalog package for value and set indexes on a > Zope-3.3 application. > > I'd also like to use DateTimeValueIndex and DateTimeSetIndex and their > normalization wrappers to retrieve informations from date-based

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

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

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 t

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

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

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 (instance/

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 instance at 0xb6fb8dcc> is not supported. I don't know if DemoStorage is supposed to work or not, but as a work-around you can try z

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

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 (n

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 a

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 for

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. I'm

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 possibl

[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

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

2007-05-17 Thread Gary Poster
On May 17, 2007, at 10:31 AM, Chris Withers wrote: Hi Gary, Hey Not sure what list to use for zc.queue so picked zope3-users ;-) Cool. :-) 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 ord

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 thi

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 s

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 the

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 whic

Re: [Zope3-Users] Using formlib schema.Choice with zc.table FieldColumn

2007-01-25 Thread Gary Poster
On Jan 25, 2007, at 6:09 PM, <[EMAIL PROTECTED]> [EMAIL PROTECTED]> wrote: Whoa, really bad line breaks, here is the pastbin link http://zope3.pastebin.com/867518 Thanks, Kevin. I've modified the test you wrote, made it pass, and committed it (revision 72232). The answer is that you ne

Re: [Zope3-Users] Using formlib schema.Choice with zc.table FieldColumn

2007-01-24 Thread Gary Poster
On Jan 24, 2007, at 2:02 AM, <[EMAIL PROTECTED]> wrote: Does anyone know if there is a trick in getting Choice schema's to work with zc.table FieldColumn or am I likely doing something wrong? We've used a Choice field, I'm pretty sure. Maybe...try modifying the doctest to add use of a choi

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] Content cloning ?

2007-01-16 Thread Gary Poster
On Jan 16, 2007, at 6:24 AM, Thierry Florac wrote: In fact, after looking at "zc.copy" package, I finally used the "original" zope.copypastemove package function to duplicate my content because it better feets my needs, without duplicating a set of informations as zc.copy does but just keeping

Re: [Zope3-Users] Extent catalog question

2007-01-11 Thread Gary Poster
On Jan 11, 2007, at 1:42 PM, <[EMAIL PROTECTED]> [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 problem, I was ho

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 be

Re: [Zope3-Users] reverse field-index lookups

2007-01-01 Thread Gary Poster
On Jan 1, 2007, at 9:36 AM, Roy Mathew wrote: Happy new year everyone! Is there a way to query a FieldIndex in reverse (ie: by object value)? 09:22]Or is there another index that supports reverse lookup? [09:26] I would like to be able to figure out which objects are indexed by a pa

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 a

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 .

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 th

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 differe

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/ 2006-J

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 doin

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 t

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

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

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

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

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 ma

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 f

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

2006-07-10 Thread Gary Poster
On Jul 10, 2006, at 9:42 PM, Pete Taylor wrote: ... Still, I'll look at it again, and at the zc.relation module that David mentioned earlier, and see if there's already work that's been done in this area. zc.relationship. :-) Slog through it: the relationship index is an engine that could

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 examp

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 i

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 cam

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

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 zc.resourcelibrary

Re: [Zope3-Users] "has a" relationships

2006-05-08 Thread Gary Poster
On May 4, 2006, at 5:16 PM, Jachin Rupe wrote: hi there I have another "zope theory" question. I am working on designing a application in zope. I've been looking at a lot of examples and I am wondering how people are implementing different types of relationships between different persi

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 to

Re: [Zope3-Users] Formlib and invariants?

2006-05-04 Thread Gary Poster
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 to zope.app.form.browser.interfaces.IWidgetInputErrorView you have to raise a WidgetInputError an example fo

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: 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 som

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 becaus

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 type?

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 = ViewPageTemplateFile('registrar.zpt')

Re: [Zope3-Users] pau scenario

2006-03-28 Thread Gary Poster
On Mar 28, 2006, at 1:35 PM, Gary Poster wrote: 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 ba

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 present

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

2006-03-21 Thread Gary Poster
On Mar 21, 2006, at 11:23 AM, Gary Poster wrote: That said, you and Thierry are quite right that they do not display correctly in the advanced catalog view. We don't use it, so I didn't care. To be clear, I meant that we don't use the advanced catalog

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" ma

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 was

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

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 sent

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

2006-03-20 Thread Gary Poster
On Mar 20, 2006, at 5:14 PM, Thierry FLORAC wrote: On Mon, 2006-03-20 at 10:16 -0500, Stephan Richter wrote: On Wednesday 15 March 2006 17:45, Thierry FLORAC wrote: TraversalError: (, 'documentCount') "documentCount" seems to be defined into the "SetIndex" class, so I don't understa

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 = ( Ge

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 ser

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

2006-02-28 Thread Gary Poster
On Feb 27, 2006, at 10:52 PM, Joel Moxley wrote: Thank you so much, Gary. Let me know if I should do anything to follow up on this bug. It would be great if you would put it in the Zope 3 collector. http://www.zope.org/Collectors/Zope3-dev Thanks Gary __

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 are

Re: [Zope3-Users] zodb objects backup

2006-02-27 Thread Gary Poster
On Feb 26, 2006, at 4:33 PM, Shaun Cutts wrote: Thanks Gary! Ah -- very nice: so Data.fs *is* a transaction log. In theory an RDBMS with write ahead logging is still more secure because the transaction log is only backup, and the rest of the database is another copy of the current state (th

Re: [Zope3-Users] zodb objects backup

2006-02-27 Thread Gary Poster
On Feb 27, 2006, at 12:03 AM, Shaun Cutts wrote: From: Tom Dossis [mailto:[EMAIL PROTECTED] Shaun Cutts wrote: But with replication, this issue is taken care of. (Too bad replication isn't part of the core functionality) Maybe soon.. http://hathawaymix.org/Software/PGStorage Gr

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=

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

2006-02-26 Thread Gary Poster
On Feb 26, 2006, at 4:17 PM, jürgen Kartnaller wrote: Joel Moxley wrote: ** What is the best way to use a formlib EditForm to redirect a user after applying changes without fully cloning a "handle_edit_action" method? ** I'm doing it this way : def render(self): if self.errors

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 ap

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 I

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 http:

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

2006-02-23 Thread Gary Poster
On Feb 23, 2006, at 8:13 AM, Lennart Regebro wrote: On 2/23/06, Stephan Richter <[EMAIL PROTECTED]> wrote: How do you want to use the debugger? I'd like to be able to step through the tests. You effectively can't step through all the tests (with a single pdb). You can step through a sin

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

2006-02-17 Thread Gary Poster
On Feb 17, 2006, at 6:42 PM, Shaun Cutts wrote: On Behalf Of Garanin Michael What is mixin? Is it content-object or view? Well, I think in the wider python context "mixin" is something that you can use as a base class to extend the functionality of your class, assuming you provide some

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 com

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 nex

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

2006-02-16 Thread Gary Poster
On Feb 15, 2006, at 9:40 PM, Peter Simmons wrote: I haven't seen it before in the Zope 3 community but maybe we could start a thing on Fundable.org to get some money for this thing. Or would ZF be the place to approach about this? I am not really up with the play on where ZF is at and what

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=_(u"Cool Numbers"), required=True, value_type=Int( title=_("integer") )

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

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

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

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 bas

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 wa

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 1

  1   2   >