Re: [Zope3-Users] schema interface field validation

2005-05-05 Thread Gary Poster
On May 5, 2005, at 3:16 AM, Alen Stanisic wrote: Hi, could I reference other fields inside the schema interface to, for example, default one field based on the value entered in one of the previous fields, or to set 'required' attribute based on previous fields entered One way (the approved way) to

Re: [Zope3-Users] Recommend way to ..(question inside)

2005-07-11 Thread Gary Poster
On Jul 11, 2005, at 9:15 PM, Alec Munro wrote: Sorry for the vague subject, but I wasn't sure how to summarize this. It's not exactly a Zope question, but perhaps Zope has some tricks to make it easier. In a couple of situations, I want to have a collection of objects, and allow users to

Re: [Zope3-Users] WYSIWYG editing of HTML

2005-07-11 Thread Gary Poster
On Jul 11, 2005, at 9:35 PM, Pupeno wrote: Hello, I am new to Zope 3, I am reading the book, I am on chapter 15 (just finished) and I am definitly going to use a WYSIWYG HTML widget and field on the systems I am going to do. Is anybody working on that ? Is there anyone that is likely to

Re: [Zope3-Users] Ordered list of sub objects

2005-07-15 Thread Gary Poster
On Jul 15, 2005, at 8:06 AM, Johan Carlsson wrote: Hi all, I want to have a list of ordered sub objects (potentially if different types) for an object. ... Johan, something in our 'to be open sourced' bag that I can make available as a preview (i.e., ZPL, but a static checkout rather

Re: [Zope3-Users] HTTP Post Request Handling

2005-07-16 Thread Gary Poster
On Jul 16, 2005, at 8:10 PM, John Smith wrote: Dear All, I hope I have the right mailing list. Perhaps someone can help me with a fairly basic question. When I used Zope 2, I used the following idiom for form submission. Send http POST to Script(Python) or External Method, which would then

Re: [Zope3-Users] browser:form

2005-07-18 Thread Gary Poster
On Jul 18, 2005, at 5:22 PM, John Smith wrote: Hi Everyone, Can anyone give me a few pointers how to use a schema to auto generate a form that I can use in a view of a content object? If you are OK with running Python 2.4.1 and Zope 3.1, and ok with installing a third package, Zope Corp

Re: [Zope3-Users] Allowing an other value in choice fields sourced from vocabularies.

2005-08-04 Thread Gary Poster
On Aug 4, 2005, at 12:58 PM, Alec Munro wrote: Hi List, We want to allow a choice field with an other option, that allows them to type in an arbitrary value. So far, we have this working up until the point of validation. At the point of validation, it notices that the other value is not in

Re: [Zope3-Users] recursive constraints

2005-08-22 Thread Gary Poster
On Aug 22, 2005, at 9:00 AM, Markus Leist wrote: Hello, there are a few (older) mails about recursive constraints in Zope3. I wasn't able to find a solution for this small problem: in interface.py: class IIkGroup(IIkSClass): def __setitem__(name, object):

Re: [Zope3-Users] vocabulary of object-references

2005-08-22 Thread Gary Poster
On Aug 22, 2005, at 11:36 AM, Markus Leist wrote: Hi all, I have build an List of Choices and it works well: in interface: hostlist = List( title=_(uHost List), description=_(uHost List), value_type = Choice( title=_(uHost),

Re: [Zope3-Users] obtaining time zone from http request

2005-08-28 Thread Gary Poster
On Aug 28, 2005, at 10:59 PM, Stephan Richter wrote: On Sunday 28 August 2005 21:10, Alen Stanisic wrote: what's the best way to obtain timezone from request object. I tried tz = pytz.timezone(ITZInfo(self.request)) but the adaptation failed. Getting a single time zone from the request is

Re: [Zope3-Users] Problems with a catalog

2005-09-28 Thread Gary Poster
On Sep 27, 2005, at 10:01 PM, Tom Dossis wrote: 1. How do I add a catalog to a site ? Hi Tom. Looks like you might have already worked yourself out of this, but I'll respond for the list, at least. If you are creating and configuring a site programmatically within a single

Re: [Zope3-Users] Adding indexes to a Catalog tool subclass

2005-09-28 Thread Gary Poster
On Sep 28, 2005, at 1:53 AM, Tom Dossis wrote: I can add a tool which is a simple subclass of Catalog. However if I try to add some index(es) in the constructor it fails with a NotYet error (see below). Is there a simple way to achieve this? Yes. Don't add the indexes with the

Re: [Zope3-Users] Users and the Ownership of Objects

2005-09-28 Thread Gary Poster
On Sep 28, 2005, at 7:02 AM, James Allwyn wrote: Dear list, I have a number of questions. I've split them up over a number of emails, to keep them 'bite sized', and hopefully make any replies more useful in the archive. Apologies if this is not considered correct 'etiquette' on this list.

Re: [Zope3-Users] User data / metadata

2005-09-28 Thread Gary Poster
On Sep 28, 2005, at 7:03 AM, James Allwyn wrote: Hello list, A small 'conceptual' question... Both Stephan and Philipp's books recommend using principal metadata to store users' email addresses etc. If I intend to use the email addresses (and other contact information I want to store for the

Re: [Zope3-Users] History of an Object

2005-09-28 Thread Gary Poster
On Sep 28, 2005, at 7:04 AM, James Allwyn wrote: Hello, Transactions and undo functionality seem to be well-supported in Zope; I assume that the past states of objects are stored in the database. Until you pack the database. For our application it would be useful to access these past

Re: [Zope3-Users] Users and the Ownership of Objects

2005-09-28 Thread Gary Poster
On Sep 28, 2005, at 9:16 AM, Jim Fulton wrote: Note that in the Sharing policy that we'll be releasing (soon, I hope), the sharing privilege is pretty darn close to ownership, as we've discussed. Oh, yeah. :-) Cool. Gary ___ Zope3-users mailing

Re: [Zope3-Users] querying the catalog

2005-10-03 Thread Gary Poster
On Sep 30, 2005, at 6:33 PM, Duncan McGreggor wrote: I have a multiple sites on a zope3 instance (folders at the top level that have their own site managers). In one of them, there is page content object with a custom view for portraying search results from its (local) catalog. However, I

Re: [Zope3-Users] Advanced usage of Z3 schemas...

2005-10-03 Thread Gary Poster
On Oct 3, 2005, at 4:45 AM, Andreas Jung wrote: Hi, I am currently thinking about for a new version of PloneCollectorNG based on Zope 3. The currently implementation uses per-instances schemas (acquired from a parent object managing the schema). How would you do that in Zope 3? It

Re: [Zope3-Users] stuffing the request object in zope3

2005-10-03 Thread Gary Poster
On Oct 3, 2005, at 11:19 AM, Tim Middleton wrote: I've done a few Zope 2 projects, and am trying to wrap my head around Zope 3 now. The style I evolved for putting together Zope 2 applications may not have been very orthodox. Basically I found that I disliked (and mistrusted, maybe

Re: [Zope3-Users] object has no attribute '_SampleContainer__data'

2005-10-03 Thread Gary Poster
On Oct 3, 2005, at 9:29 PM, Leticia Larrosa wrote: AttributeError: 'Service' object has no attribute '_SampleContainer__data' Hi Leticia. It looks like your container overrides __init__ and, rather than deferring to the SampleContainer.__init__, you are trying to set the __data value in

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.

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] searching content objects on created datetime

2005-10-06 Thread Gary Poster
On Oct 6, 2005, at 10:11 AM, Andreas Jung wrote: --On 6. Oktober 2005 09:55:55 -0400 Gary Poster [EMAIL PROTECTED] wrote: 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

Re: [Zope3-Users] Using a ZPTPage with a View Class

2005-10-12 Thread Gary Poster
On Oct 9, 2005, at 8:36 PM, Wade Leftwich wrote: ... My general question is, is this a reasonable way to proceed? It works OK with Benji York's Hello World example; in particular the 'view' and 'context' namespaces seem to be complete. But Hello World doesn't exercise the code much. Is

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

[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

[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

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

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

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

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

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

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

  1   2   >