Re: [Zope3-Users] Zope 3.3.0 beta 1 released!
Excellent, more new features! Or is it more deprecated features this time? Anyway, much gratitude to all those involved. As a seemingly perpetual newbie, I find the zope3 proposals at http://www.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/Zope3Proposals quite useful to understand what's being changed and why. What might be more useful, however, is classification of the proposals by status, so I can see which ones have been implemented in each release, and which ones are slated for implementation in the next release. Is there already a list somewhere which I haven't found? If not, would this be possible? It seems a simple way of producing quite a lot of good documentation. Thanks, Graham ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] More fun with WSGI/zope.paste
Gary Poster wrote: Checking in the code is an assertion of provenance/license: for instance, I wouldn't have known about the Plone code, which is potentially a problem because of GPL vs. ZPL (see below). Hold-off on checking-in jsmin. The original author of the packer has not decided whether allow us a BSD-ish license or ZPL. Wanna get commit privileges? :-) It's the easiest way for you to assert the code's status. Can't at the moment. My note to Benji explains. Maybe after I see the new contributor agreement... - putting them in a namespace? Probably a good idea. If it was only one... well, but I do seem to have gotten prolific. :) :-) Go for it (on whichever namespace gets decided). These three projects, I feel a need to reiterate, need zope.paste and Paste.Deploy (or a similar stack), to use with zope3, so deprecating zc.resourcelibrary may not be a good idea until more folks are on-board with the wsgi filters idea. I think the project is on board with wsgi. paste is maybe not as mainstream in the Zope world yet, so yes, maybe we need to let that settle out. If there are no issues with the paste-based version, though, I'd like zc to use it. No further issues. There is some code from Python Cookbook (Python License, presumably, and presumably acceptable) but the rest is substantially mine. gzipper and jsmin really have no particular ties to zope at all, except that I used Zope3 for developing them, and they probably work OK in Zope3 as a consequence. (PS. er, actually, the packer in jsmin came from Plone.) eek! GPL can't go in zope.org. Do you know what the license is to that particular component? Of course, I went eek! first when Balazs wanted to include the packer in jsonserver / concatresource when it was GPL. This will be handled in a most appropriate and satisfactory manner. With the caveats above, sounds great. :-) Good. You will find that my code has the very liberal Academic Free License referenced. If you need different, I will be happy to relicense. -Jim Washington ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Internationalization, Widgets, and Currency
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 it would be trivial to add (the widget would effectively be identical, I believe). Using floats for money is a bad idea (a classic example: 3.3 3.2998 import decimal decimal.Decimal(3.3) Decimal(3.3) ) Gary ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] A Question about the Hostname in the Zope3 Server
Im a Colombian user that dont speak English, but I tray to explain the situation: I was developed some little exercises in Zope 2.7.5 and now in Zope 3.2.0 for windows. When I Start a Zope 2.7.5, the Hostname is the same of my computer, and when I Start a Zope 3.2.0 the Hostname is localhost (reserved word). Is possible to change that name in Zope 3.2.0? because in the Intranet I cant access the Zope server from other computers using Zope 3.2.0. Thanks for your help. ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] PAU doesn't like Manager
Hi, I'm currently trying to use PAU. It seems to work fine but when I try to login as 'manager' as defined via ZCML, it doesn't work. Now I'm going to write a second plugin which will check the credentials of the manager. It will return a PrincipalInfo with id=pau.manager . Michael Howitz suggested to use something like principalPermissionManager.grantAllPermissionsToPrincipal(pau.manager) to raise the power of a principal. Unfortunately my IAuthenticator plugin never sees a IPrincipal object but IPrincipalInfo only. Where do I have to call grantAllPermissions... to make an arbitrary principal manager-like? Where does Zope store those grants? In the PrincipalAnnotation Utility? Is there another way to re-enable the manager when a PAU is registered? Thank you for any hints. Regards, Frank ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] A Question about the Hostname in the Zope3 Server
On Tuesday 09 May 2006 07:33, Helman R. Valencia B. wrote: When I Start a Zope 2.7.5, the Hostname is the same of my computer, and when I Start a Zope 3.2.0 the Hostname is localhost (reserved word). Is possible to change that name in Zope 3.2.0? because in the Intranet I can't access the Zope server from other computers using Zope 3.2.0. Check out zope.conf in the etc directory of the instance. It should have the information about which address and port are being bound to for listening. wt -- Warren Turkal, Research Associate III/Systems Administrator Colorado State University, Dept. of Atmospheric Science ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] A Question about the Hostname in the Zope3 Server
Well, I don't do Windows, but from clients at the local network you can access zope by using the IP- and the port-number of the zope server (in this example 192.168.1.8): http://192.168.1.8:8080 regards -klaus Ursprüngliche Nachricht am: Tue, 9 May 2006 08:33:15 -0500 von: Helman R. Valencia B. : [EMAIL PROTECTED] I'm a Colombian user that don't speak English, but I tray to explain the situation: I was developed some little exercises in Zope 2.7.5 and now in Zope 3.2.0 for windows. When I Start a Zope 2.7.5, the Hostname is the same of my computer, and when I Start a Zope 3.2.0 the Hostname is localhost (reserved word). Is possible to change that name in Zope 3.2.0? because in the Intranet I can't access the Zope server from other computers using Zope 3.2.0. Thanks for your help. ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Searching and Indexing in Zope3
Hi Frank, Thanks for the Zope3 Indexing and Searching HOWTO I translated your page to english and was trying to work it out. Here's exactly what i did: 1. Logged into zope3 manager 2. went to ++etc++site/default/ and created an unnamed initId utility over there. 3. added a catalog named 'catalog1' with interface zope.app.catalog.interfaces.ICatalog and set accessto Public 3. went inside catalog1 and added a TextIndex with an interface zope.index.text.interfaces.ISearchableText with Field Name as searchableText. 4. then went into catalog1 and clicked on advanced and it was showing TextIndex with document count - 0 and word count - 0. It means that the objects are not being indexed, can you suggest what the problem could be. Than you-- Sreeram Nudurupati ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Re: zope.ManageContent Permission on field descriptions?
Hi, Hey... stripping the app down to nearly nothing helped to find a hint. And I lied... in the example below I ask getFieldsInOrder for IPerson which I imported in the same file. from zope import schema from schematesting.interfaces import IPerson class Details(object): def getDetails(self): fields = schema.getFieldsInOrder(IPerson) data = dict([(i,getattr(self.context,i,None)) for i in schema.getFieldNamesInOrder(IPerson)]) return {'fields':fields, 'data':data} Let's say I define a class variable schema in the content object: class Person(object): schema = IPerson and make the details view a bit more flexible like this: def getDetails(self): fields = schema.getFieldsInOrder(self.context.schema) In this case the field description attributes are only accessible with the permission zope.ManageContent. I suspect this is a wanted behavior for security reasons ? Thanks for any insights, - Andreas ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Strange occurrences whilst playing with Mutable Schemas in 3.3b1
On Tuesday 09 May 2006 13:12, Graham Stratton wrote: Playing with the ZMI in 3.3b1 I came across a few issues, I'm not sure whether any of them are bugs: Mutable schemas are not supported in any of the Zope 3 releases. If they are in the release, then that's a mistake. Mutable schemas do not work due to a bug in the interface code. Regards, Stephan -- Stephan Richter CBU Physics Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] has a relationships
hi there Alright... I'm working on implementing IPerson in the class Person and I'm not sure exactly what has to happen. I kinda have two ideas but I suspect I need to some how combine them but I don't know how to do that. A big part of the problem is that I do not know what zope.schema.fieldproperty.FieldProperty does. The only reason I'm working it in, is because it appears to be necessary to get this whole thing to work: http://svn.zope.org/Zope3/trunk/src/zope/app/form/browser/ objectwidget.txt Here are my ideas: -- from persistent import Persistent from zope.interface import implements from abook.interfaces import IPerson class Person(Persistent): implements(IPerson) firstName = u lastName = u phoneNumbers = persistent.dict.PersistentDict() emails = persistent.dict.PersistentDict() addresses = persistent.dict.PersistentDict() -- from persistent import Persistent from zope.interface import implements from zope.schema.fieldproperty import FieldProperty from abook.interfaces import IStreetAddress from abook.interfaces import IPerson class Person(Persistent): implements(IPerson) phoneNumbers = FieldProperty(IPerson['phoneNumbers']) emails = FieldProperty(IPerson['emails']) addresses = FieldProperty(IPerson['addresses']) def __init__(self, firstName = u, lastName = u, phoneNumbers = None, emails = None, addresses = None): self.firstName = firstName self.lastName = lastName self.phoneNumbers = phoneNumbers self.emails = emails self.addresses = addresses -- I guess my question is, how should I be implementing Person? Is one of those right or are they both wrong? thanks -jachin #abook/interfaces.py from zope.interface import Interface import zope.schema class IStreetAddress(Interface): A vine street address street = zope.schema.Text ( title=uStreet 1, description=uThe street address, required = False ) city = zope.schema.TextLine ( title=uCity, description=uThe city., required = False ) state = zope.schema.TextLine ( title=uState, description=uThe state., required = False ) zipcode = zope.schema.TextLine ( title=uZip Code, description=uThe zip code, required = False, min_length = 5 ) class IABookEntry(Interface): phoneNumbers = zope.schema.Dict( title=uPhone Numbers, description=uThe phone numbers for this entry, required=False, key_type=zope.schema.TextLine ( title=uType, description=uThe type of phone number, required=True ), value_type=zope.schema.TextLine ( title=uNumber, description=uThe phone number., required=True ) ) emails = zope.schema.Dict( title=uEmail Addresses, description=uThe email addresses for this entry, required=False, key_type=zope.schema.TextLine ( title=uType, description=uThe type of email address, required=True ), value_type=zope.schema.TextLine ( title=uEmail Address, description=uThe email address., required=True ) ) addresses = zope.schema.Dict( title=uAddresses, description=uStreet address, required=False, key_type=zope.schema.TextLine( title=uType, description=uThe type of street address, required=True ), value_type=zope.schema.Object ( title=uStreet Address, description=uA street address, required=True, schema=IStreetAddress ) ) class
Re: [Zope3-Users] Searching and Indexing in Zope3
Hi, On Tue, May 09, 2006 at 10:32:45AM -0500, Sreeram Raghav wrote: Hi Frank, Thanks for the Zope3 Indexing and Searching HOWTO I translated your page to english and was trying to work it out. Here's exactly what i did: 1. Logged into zope3 manager 2. went to ++etc++site/default/ and created an unnamed *initId* utility over there. 3. added a catalog named 'catalog1' with interface * zope.app.catalog.interfaces.ICatalog*http://192.168.60.225/++apidoc++/Interface/zope.app.catalog.interfaces.ICatalog/index.html and set access to Public 3. went inside catalog1 and added a TextIndex with an interface zope.index.text.interfaces.ISearchableText with Field Name as searchableText. 4. then went into catalog1 and clicked on advanced and it was showing TextIndex with document count - 0 and word count - 0. It means that the objects are not being indexed, can you suggest what the problem could be. Than you 1. You have to check the Callable checkbox to tell the index that searchableText is a method and not just an attribute. 2. Selecting an interface means telling the index Add (only!) objects of this type (=implementing this interface) to the index. This is not 100% correct - the index will add objects which can be adapted to the search interface, too. - If you have objects that don't implement ISearchableText, you won't get them indexed without writing an adapter like this (untested!): adapter.py: from zope.index.text.interfaces import ISearchableText from zope.component import adapts from zope.interface import implements MyObjectToSearchable(object) implements(ISearchableText) adapts(IMyObject) def __init__(self,context): self.context=context def searchableText(self): return self.context.data configure.zcml: adapter factory=.adapter.MyObjectToSearchable / Sorry, I'll add this adapter stuff to the howto asap :-) . Regards, Frank ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users