[Zope3-Users] schema interface field validation

2005-05-05 Thread Alen Stanisic
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 for example if I had field1 = TextLine( title = _(Field1),

[Zope3-Users] login required on download zope3 page?

2005-06-20 Thread Alen Stanisic
Hi all I can't seem to access zope 3 downloads page. When following Stephan's link to 3.1b download: http://zope.org/Products/Zope3/ I get prompted for a login Thanks Alen ___ Zope3-users mailing list Zope3-users@zope.org

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

2005-08-29 Thread Alen Stanisic
On Mon, 2005-08-29 at 09:50 -0400, Gary Poster wrote: And FWIW, once you get your browser settings correct, for the timezone part of the locale database, en-* is all the same--that is, if my locale is en-US, I get all en* locations (including Casablanca, Tokyo, and other interesting

Re: [Zope3-Users] Calling createAndAdd with different object id

2005-09-11 Thread Alen Stanisic
In INameChooser chooseName(self, name, object) method takes default object name and the object you are adding. Thru this object I would expect you to have access to attributes of your object entered in the objects add form. Unless the fields in your form you need access to are not in your

Re: [Zope3-Users] querying the catalog

2005-09-30 Thread Alen Stanisic
, Duncan McGreggor wrote: On Sep 30, 2005, at 7:17 PM, Alen Stanisic wrote: My understanding was that your zapi.getUtility() was not finding your catalog and that you had three parallel sites from which you were doing the catalog look up and the catalog was only in one of them, accumac

[Zope3-Users] 3.1 final zeo tests error message

2005-10-03 Thread Alen Stanisic
Hi, first of all thanks and congratulations to zope3 dev team on the release of 3.1. I gave it a try today and when running 'make check' got this message: The following test left new threads behind: checkAbortNotCommitting (ZEO.tests.testZEO.MappingStorageTests) New thread(s):

[Zope3-Users] searching content objects on created datetime

2005-10-05 Thread Alen Stanisic
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. I am thinking I should be using a catalog for this and went about creating an adapter for the content

Re: [Zope3-Users] installing zope3

2005-10-10 Thread Alen Stanisic
On Mon, 2005-10-10 at 21:26 +1300, Michael wrote: Hi All, I've downloaded latest zope3.1.0 upack it run ./configure Configuring Zope installation Testing for an acceptable Python interpreter... Python version 2.3.5 found at /usr/bin/python The optimum Python version ( 2.3.5) was found

[Zope3-Users] catalog indexing adapter interfaces

2005-10-19 Thread Alen Stanisic
Hi, I noticed that if I adapted a persistent content type and created a catalog with index on one of the fields provided by the adapter interface, the indexing worked for all of my content that was there at time of catalog creation. But any new content objects created after catalog creation

Re: [Zope3-Users] need guidance

2005-11-29 Thread Alen Stanisic
Hi Brad, On Tue, 2005-11-29 at 21:07 -0600, Brad Allen wrote: [...] Ok, so this kind of discussion makes me wonder how much I can do without ZODB, or at least whether I can just use the ZODB files like any other binary files in the SVN repository. Having to write scripts to regenerate them

Re: [Zope3-Users] Catalog for newbies

2005-12-06 Thread Alen Stanisic
Hi Frank On Tue, 2005-12-06 at 14:36 +0100, Frank Burkhardt wrote: [...] 2. Documents are added to the index only when they are added to the ZODB. Is there a Way to scan the entire ZODB to index all objects matching the indices interface constraints? ZODB objects created before Unique

Re: [Zope3-Users] Zope 3.1.0 make error -- permissions

2005-12-07 Thread Alen Stanisic
On Wed, 2005-12-07 at 20:20 +, [EMAIL PROTECTED] wrote: I'm getting some strange permissions error when I try to install Zope 3.1.0. I installed Python 2.4.2 from source, no problems there. The README file for Zope 3.1.0 says the usual install directory for Zope is at /usr/local, so as

[Zope3-Users] Search Results (was: How come no IView?)

2006-01-03 Thread Alen Stanisic
On Sun, 2006-01-01 at 20:40 -0700, Jeff Shell wrote: [...] While ZCML's view and page directives will put BrowserView into your base classes automatically if it's not there, I prefer to still use it as a base class directly. It makes the code more readable (I can see that 'SearchResults' is a

Re: [Zope3-Users] Re: Is Zope Zope2 or Zope3?

2006-01-21 Thread Alen Stanisic
On Sat, 2006-01-21 at 01:43 +, Martin Aspeli wrote: Hi, I think this is very a unfortunate, and unfortunately also completely understandable mistake. The Zope community has some great architects and developers, but from looking at the state of zope.org, not many who are willing or

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

2006-02-03 Thread Alen Stanisic
On Fri, 2006-02-03 at 11:54 +0100, Lennart Regebro wrote: On the name change idea, I think it's just gonna make things more confused. What, there is now Zope 2, Zope 3 AND Zope Zingo? I think the idea was Zope 3.2 Zingo, Zope 3.4 Bingo, not Zope Zingo :) This way it would be clear it is

Re: [Zope3-Users] Trying to use browser:form - 404

2006-02-10 Thread Alen Stanisic
On Fri, 2006-02-10 at 22:18 +0100, Florian Lindner wrote: Thanks for your example. But I've the same error, a 404. in views.py: from zope.formlib.form import EditForm from interfaces import IRegistrationForm class registrationForm(EditForm): form_fields = IRegistrationForm in

Re: [Zope3-Users] Trying to use browser:form - 404

2006-02-10 Thread Alen Stanisic
On Sat, 2006-02-11 at 00:44 +0100, Florian Lindner wrote: I get a system error: 2006-02-11T00:41:25 ERROR SiteError http://horus:8080/++skin++centershock/cs/registrationForm.html Traceback (most recent call last): File /home/florian/Zope3/src/zope/publisher/publish.py, line 138, in

Re: [Zope3-Users] Trying to use browser:form - 404

2006-02-11 Thread Alen Stanisic
On Sat, 2006-02-11 at 10:10 +0100, Florian Lindner wrote: ForbiddenAttribute: ('blablubb', CS.centershock.centershock.Centershock object at 0xb757a46c) blablubb is a field of my interface. Any idea? Missing security declarations? Hmm.. not sure.. maybe the permission in your zcml

[Zope3-Users] zodb objects backup

2006-02-25 Thread Alen Stanisic
Hello, what would be the best way of taking a backup of persistent objects inside Data.fs with possibility to rebuild it on a fresh Zope 3 install in case of a disaster recovery lets say. Thanks Alen ___ Zope3-users mailing list Zope3-users@zope.org

Re: [Zope3-Users] zodb objects backup

2006-02-25 Thread Alen Stanisic
On Sat, 2006-02-25 at 07:52 -0600, Andreas Jung wrote: --On 26. Februar 2006 00:04:39 +1100 Alen Stanisic [EMAIL PROTECTED] wrote: Hello, what would be the best way of taking a backup of persistent objects inside Data.fs with possibility to rebuild it on a fresh Zope 3 install

Re: [Zope3-Users] zodb objects backup

2006-02-25 Thread Alen Stanisic
Thanks Gary. On Sat, 2006-02-25 at 15:39 -0500, Gary Poster wrote: 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:

Re: [Zope3-Users] formlib confusion

2006-04-06 Thread Alen Stanisic
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') . . I would also be interested to find out

[Zope3-Users] Zope3.2.1 on Mac OS X make check ZEO failures

2006-05-19 Thread Alen Stanisic
Hi, just trying to install Zope 3.2.1 on Mac OS X 10.4.6 Intel. I installed Xcode tools and darwin ports python 2.4.3. I don't really use ZEO but when running make check I get the 4 ZEO tests failures below. Thanks Alen Failure in test checkTimeoutAfterVote

Re: [Zope3-Users] How to use catalog.searchResults

2006-05-21 Thread Alen Stanisic
On Sun, 2006-05-21 at 18:49 +0200, Florian Lindner wrote: Am Sonntag, 21. Mai 2006 17:58 schrieb mats.nordgren: Have you tried catalog.searchResults(idx=('AbbreviationIndex', 'ABC')) Do you mean idx as a placeholder for something or really idx? idx would be your index name. I think

[Zope3-Users] Locatability of schema.Object field

2007-05-01 Thread Alen Stanisic
Hi, in the following situation: class ISomeNames(IContained): items = List(... value_type=Object(schema=IName ..) ) class IName(Interface): afield = Choice(... vocabulary=AVocabulary ..) say in the vocabulary I need to look up containment tree but IName object does not have enought

Re: [Zope3-Users] zope3 with fastcgi via WSGI

2007-11-12 Thread Alen Stanisic
Not sure how mature this project is but there is also mod_wsgi - www.modwsgi.org Alen On 11/08/2007, at 7:25 AM, Anil Kumar Maurya wrote: Hi all, Is any one know how to use wsgiref to run zope3 via fastcgi of apache? smilar to http://blog.d2m.at/2006/09/23/zope3-and-wsgi-integration/