Re: [Zope3-Users] Weird error for a certain named attribute

2007-10-18 Thread Tom Dossis
On 18/10/2007, at 11:58 PM, Maken Seteva wrote: Hello, I have a very strange error that I cannot understand. I get an error for one of my attribute only when it is named a certain name! It seems like there is an old implementation of it that is haunting in the background, how is this poss

Re: [Zope3-Users] Kupu and Zope3

2007-08-20 Thread Tom Dossis
On 20/08/2007, at 7:45 PM, Jeremy Cook wrote: Is anyone using Kupu (or any other visual editor) with zope3? I saw hints that it might be ported to zope3 or conversely that "kupu must die". When I tried installing it under zope3 I didn't get awfully far. Any ideas how to proceed? There's also

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

2007-07-29 Thread Tom Dossis
P.S.: I can't recommend easy_install because that will install eggs into the global site-packages location (which is rarely a good idea when you're deploying Zope). Unless of course you use workingenv or virtual python. You can configure the easy_install target location(s) easily enough:

Re: [Zope3-Users] zope:class for multiple classes / inheriting configuration?

2007-06-01 Thread Tom Dossis
Hermann Himmelbauer wrote: > Hi, > I have the problem here that I have to configure several classes, which I > currently do via zope's zope:class directive, such as: > > > permission = "zope.View" > interface=".interfaces.If1" > /> > permission="zope.ManageContent" > set_schema=".in

Re: [Zope3-Users] Locatability of schema.Object field

2007-05-09 Thread Tom Dossis
Alen Stanisic wrote: > 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 containme

Re: [Zope3-Users] Arranging widgets in a form / Limit size of input fields

2007-05-03 Thread Tom Dossis
Hermann Himmelbauer wrote: >>> I'd like to know how to arrange (e.g. group) widgets in a form with >>> formlib. >>> >>> One way would be to create a custom template file, where each widget is >>> placed via HTML. However, this is quite some work. >> I've often done this and it doesn't seem like too

Re: [Zope3-Users] Zope 3.3.0 creating DTML page TypeError: readline() takes exactly 1 argument (2 given)

2007-03-09 Thread Tom Dossis
David Christensen wrote: > zope3-users: > > I am a newbie running Zope 3.3.0 on FreeBSD 6.2. I'm trying to create a > "hello, > world!" home page. When I browse to my Zope instance, log in using the > administrator account, drill down to [Top] -> ++etc++site -> default, choose > DTML > Page, e

Re: [Zope3-Users] Re: NotYet error when creating content during container creation

2007-02-26 Thread Tom Dossis
> > Yes, this is what I'd recommend. A handler for an ObjectAddedEvent will > always see the object already as part of the object hierarchy (which is, > after all, what ObjectAddedEvent is about). > I found myself doing this quite often. I use a decorator to make the code read nicer.. class My

Re: [Zope3-Users] Error when calling addform

2007-02-11 Thread Tom Dossis
Florian Lindner wrote: > Hello, > I have an addform registered: > > label="Add Blog Comment" > name="AddBlogComment.html" > schema="..interfaces.IBlogComment" > content_factory="..blog.BlogComment" > permission="Blog.AddComment" > /> > >

Re: [Zope3-Users] broken formlib - form.txt example

2007-02-06 Thread Tom Dossis
Vinny wrote: > Using instructions from: > /usr/local/www/Zope3/lib/python/zope/formlib/form.txt > > With code straight out of it typed into the IDLE editor, saved > as form.py and run using the F5 command: > > Saving and running this gives: > > ComponentLookupError: (( at 0x8cf53cc>, URL=http:

Re: [Zope3-Users] getUtilitiesFor without context

2007-01-10 Thread Tom Dossis
Tom Dossis wrote: > Florian Lindner wrote: >>> Use: >>> # work out what your site >>> hook.set(site) >> Mhh, the hook object does not exist, hooks does not have a attribute set. >> What >> object do you refer to? > > My apologies, sho

Re: [Zope3-Users] getUtilitiesFor without context

2007-01-10 Thread Tom Dossis
Florian Lindner wrote: > >> Use: >> # work out what your site >> hook.set(site) > > Mhh, the hook object does not exist, hooks does not have a attribute set. > What > object do you refer to? My apologies, should be: hooks.set(site) ___ Zope3

Re: [Zope3-Users] getUtilitiesFor without context

2007-01-10 Thread Tom Dossis
Florian Lindner wrote: > Hello, > I have some local utilites registered. Now I try to call them from a function > that don't have a context: > > utils = getUtilitiesFor(INewsfeed) > for i in utils: > print "Utility called:", i.__name__ > i.sendNotification() > > but that

Re: [Zope3-Users] how to examine parent attributes in add process?

2006-12-30 Thread Tom Dossis
Adam Summers wrote: > Hi all, > > I have an object which when editing, checks for some attributes in the > parents containing folder by using the following type of code: (this is > called during a form.Editform call) > >def _completeValues(self): >if self.a is None and self.__parent

Re: [Zope3-Users] readline() takes exactly 1 argument

2006-12-18 Thread Tom Dossis
George Wright wrote: > Apply this patch to the zope3-sources: > > /http.py > --- src/zope/publisher/http.py.old 2006-10-04 15:11:04.0 +0200 > +++ src/zope/publisher/http.py 2006-10-04 15:11:04.0 +0200 > @@ -205,7 +205,7 @@ > return data > > def readline(self,size=No

Re: [Zope3-Users] Custom Image Widget

2006-12-15 Thread Tom Dossis
Adam Summers wrote: > Hi Tom & Widget Afficionados. > > Thanks for the help so far. > > My problem is now this: > > From this code (which Tom supplied), how do I code the logic (in > bold) > > def _toFieldValue(self, input): > data = super(ImageWidget, self)._toFieldValue(

Re: [Zope3-Users] Custom Image Widget

2006-12-11 Thread Tom Dossis
Adam Summers wrote: > Hi, > > I have the following widgets. > > > class MyImageDisplayWidget(DisplayWidget): > >class_ = Image > >def __call__(self): >mycontent = u"oops! no img" >if self._renderedValueSet(): >mycontent = " b64encode(self._data.data) + " \"

Re: [Zope3-Users] Registered utility is never found

2006-12-11 Thread Tom Dossis
FB wrote: > Hi, > > is there any reason why a registered utility which is persistently stored > inside the site > manager is never found via zapi.getUtility(IMyInterface) ? > > More information: > > I wrote a package ( fb ) containing some components making the developer's > life easier. The p

Re: [Zope3-Users] schema field for an Image?

2006-12-02 Thread Tom Dossis
Sascha Ottolski wrote: > I'm wondering if anything already exists, that would allow me to define > a schema like (pseudo) > > IPerson(Interface): > > image = File( > max_size=100, > ) > > Person(Persistent): > implements(IPerson) > > image = FileProperty(form_fields

Re: [Zope3-Users] ForbiddenAttribute when adding to a folder

2006-11-24 Thread Tom Dossis
Dominique Lederer wrote: > Darryl Cousins schrieb: >> Hi Tim, >> >> On Sat, 2006-10-21 at 12:18 +0200, Tim Terlegård wrote: >>> Is there a way to add content without having @@+ in the URL? For >>> instance I'd like the url for adding events to be /addEvent. >>> >>> I get security problems when not

Re: [Zope3-Users] suppressing menu item

2006-11-15 Thread Tom Dossis
Sascha Ottolski wrote: > Am Mittwoch, 15. November 2006 23:08 schrieben Sie: >> Sascha Ottolski wrote: >>> Hi, >>> >>> I created a sub-interface of IFile, say IMyFile(IFile), which has it's >>> own "Edit" form, configured like this: >>> >>> >> for="..IMyFile" >>> schema="..IMyFile" >>

Re: [Zope3-Users] suppressing menu item

2006-11-15 Thread Tom Dossis
Sascha Ottolski wrote: > Hi, > > I created a sub-interface of IFile, say IMyFile(IFile), which has it's > own "Edit" form, configured like this: > > for="..IMyFile" > schema="..IMyFile" > class=".EditMyFile" > permission="zope.ManageContent" > name="editmyfile.ht

Re: [Zope3-Users] Nested lists- "iteration over non-sequence"

2006-11-11 Thread Tom Dossis
Daniel M wrote: > Hi Kevin, > Thanks for the help! > > I've studied your example at > http://zope3demos.googlecode.com/svn/tags/zope3demos-200610-21/otherdemos/objectsofobjects2/ > > but I don't see how I could extend this example into a "List of List". > > Suppose I want to change your IPerso

Re: [Zope3-Users] adaptation/containers question

2006-11-09 Thread Tom Dossis
[EMAIL PROTECTED] wrote: > I'm trying to allow Zope3 Images in my IBlog container > > I've tried many variations of the follwoing without success. > > > interfaces.py > > class IBloggable(Interface): > """ Marker interface""" > > > myclass.py > > class ImageBlogAdapter(object): > >

[Zope3-Users] ReadOnly svn access not working

2006-10-11 Thread Tom Dossis
I'm aware there are some current issues with www.zope.org. but just in case this has been missed... > svn ls svn://svn.zope.org/repos/main svn: Can't connect to host 'svn.zope.org': Connection refused Thanks -Tom ___ Zope3-users mailing list Zope3-users

Re: [Zope3-Users] Looking for "best practice" in content indexing

2006-10-03 Thread Tom Dossis
Thierry Florac wrote: > - generally speaking, is it better to keep a single "big catalog", or a > set of many catalogs, each of them indexing a smaller set of classes ? I > suppose that querying is more simple with a single catalog, but what > about general performances ?? With the hurry.query pa

[Zope3-Users] Zope 3.3.0 - Adding Utilities to Content Space

2006-09-27 Thread Tom Dossis
Philipp von Weitershausen wrote: > On behalf of the Zope 3 development team I'm proud to announce the final > Zope 3.3.0 release. There were no changes since the 3.3.0 release > candidate. > I've noticed the following changes in the zope 3.3 ZMI Zope 3.3 - Can add utilities anywhere, e.g. to Fol

Re: [Zope3-Users] Re: Autocreated content objects

2006-09-25 Thread Tom Dossis
mats.nordgren wrote: > The IntId subscribers are fired on > zope.app.container.interfaces.IObjectAddedEvent and IObjectRemovedEvent. > That's correct, however the (IWrite)Container __setitem__ method invokes the ObjectAddedEvent for you when you add an object to the container. Your code below lo

Re: [Zope3-Users] help ! Zope 3.2.1 won't start any longer !

2006-09-13 Thread Tom Dossis
catonano wrote: > Microsoft Windows XP [Versione 5.1.2600] > (C) Copyright 1985-2001 Microsoft Corp. > > C:\Documents and Settings\adriano>d: > > D:\>ZopeIstanza\bin\runzope > Error: 'formatter' is not a known key name > (line 103 in file:/D|/ZopeIstanza/etc/zope.conf) > For help, use D:\Zope

Re: [Zope3-Users] Re: Performance

2006-08-28 Thread Tom Dossis
David Johnson wrote: > Okay. I think I figured it out. It seems that images and large objects are > the main culprit. We have very few images, mainly just icons for the > content types and tabs. > > I discovered this by using lynx and with IE disabling images. > > So the new question is: how

Re: [Zope3-Users] Re: looking for a tutorial for installing zope3 and psycopgda

2006-08-22 Thread Tom Dossis
bussiere maillist wrote: > yes but when i try to install psycop 1 it says to me : > checking PostgreSQL version... configure: error: missing PostgreSQL headers > when i make a ./configure What platform are you using? Sounds like you may be missing the postgresql-devel package.

Re: [Zope3-Users] What kind of Zope3 classes are available?

2006-08-17 Thread Tom Dossis
Steve Juranich wrote: > Can anybody clue me in on what classes might be available for me to get a > little better acquainted with Zope3? http://lovelysystems.com/training/lovely-zope-3-training-copenhagen > I have the "Zope 3 Developer's Handbook", and it's servicable, but I'm > afraid I'm much

Re: [Zope3-Users] Permissions for updateOrder() on OrderedContainer

2006-08-08 Thread Tom Dossis
Arne Nordmann wrote: > A.updateOrder(['C', 'B']) > Traceback (most recent call last): > ... > ForbiddenAttribute: ('updateOrder', 0x022244B0> > - > (object at 0x022244B0 is OrderedContainer 'A') > > configure.zcml defines each used interface with permission > 'Ma

Re: [Zope3-Users] Getting started with testbrowser

2006-06-27 Thread Tom Dossis
Darryl Cousins wrote: >> >>> from zope.testbrowser import Browser >> >>> browser = Browser() >> >>> browser.addHeader('Authorization', 'Basic mgr:mgrpw') oops: >> >>> browser = Browser('http://localhost/contents.html') # should be browser.open('http://localho

Re: [Zope3-Users] Re: I fold. What are ++etc++ and ++resource++ etc?

2006-06-12 Thread Tom Dossis
Michael Dexter wrote: > > My question is thus very naive: what is the ++xyz++ and @@xyz syntax and > can it be avoided? yes... The following are normally all equivalent.. http://host/content/++view++edit.html http://host/content/@@edit.html http://host/content/edit.html This presumes that you'

Re: [Zope3-Users] Custom index implementation

2006-06-05 Thread Tom Dossis
Achim Domma wrote: > Hi, > > I try to implement a custom index to be inserted into a catalog. I look > at the code and it seems to me, that I only have to derive my interface > from ICatalogIndex. I have defined my interface like this: > > class ITestIndex(zope.app.catalog.interfaces.ICatalogInde

Re: [Zope3-Users] MultiCheckBoxWidget and formlib

2006-05-26 Thread Tom Dossis
Mats Nordgren wrote: > Could anyone give me a hint on setting up a MultiCheckBoxWidget with > formlib? > > > This is what I got: > > class IMySchema(Interface): > multichoice = Set( > title=_('Pick one or many'), > value_type = Choice(values=['one', 'two', 'three'])) > > class MyEditF

Re: [Zope3-Users] Calling PageTemplate in Content object

2006-05-24 Thread Tom Dossis
David Johnson wrote: I still wonder why calling PageTemplate does not always render output or not give errors. That's the strangest part. At least with errors the problem would be diagnosible. Sounds like the error (exception) is being swallowed up somewhere - or perhaps the code isn't running

Re: [Zope3-Users] Calling PageTemplate in Content object

2006-05-24 Thread Tom Dossis
[EMAIL PROTECTED] wrote: > * > The default namespace for *custom* keyword agruments is > called *options* in a page templates. * That's a useful summary I didn't pickup. Thank you ___ Zope3-users mailing list Zope3-users@zope.org http://mail

Re: [Zope3-Users] New annotations factory problems

2006-05-24 Thread Tom Dossis
Ron Bickers wrote: > On Wed May 24 2006 16:42, Tom Dossis wrote: > >> I haven't been following this thread, however from the error message it >> appears your adapter is missing the context (adaptee)... >> >> def __init__(self, context): >>

Re: [Zope3-Users] Calling PageTemplate in Content object

2006-05-24 Thread Tom Dossis
David Johnson wrote: > I'm trying to call a page template in a content object, but nothing > seems to happen. No exceptions, no output, and no errors. I figure I'm > missing something. Anyone have ideas? > > ... > from zope.pagetemplate.pagetemplatefile import PageTemplateFile > > class OrderView

Re: [Zope3-Users] New annotations factory problems

2006-05-24 Thread Tom Dossis
Ron Bickers wrote: > On Wed May 24 2006 07:00, Martijn Faassen wrote: > > An IItem interface and a class Item implementation that's attribute > annotatable. > > The annotation interface and class are as follows: > > class IItemMiscInfo(Interface): > > inStock = Bool( > title=u"In

Re: [Zope3-Users] Two content objects' simultaneous adding

2006-05-22 Thread Tom Dossis
Ron Bickers wrote: > On Sat May 20 2006 17:09, Ron Bickers wrote: > >>> I have two content objects (both are containers) but I cannot add one >>> to another as give here : >>> >>> def create(self, data): >>> square = Square() >>> square.name = data['name'] >>> square.de

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

2006-05-22 Thread Tom Dossis
[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 examples of > containers, this makes a good tree like structure. But how t

Re: [Zope3-Users] Two content objects' simultaneous adding

2006-05-20 Thread Tom Dossis
baiju m wrote: > I have two content objects (both are containers) but I cannot add one > > It was working in 3.2, now NotYet error is coming in 3.3. Here is the > traceback: Why the different behaviour b/w versions? Did you have an active IntId utility installed in each version? Installing an In

[Zope3-Users] Problems with ZDC upgrading to Zope 3.3.0b1

2006-05-11 Thread Tom Dossis
I've encountered a problem running zope 3.3.0 beta1 against a zodb created 3.2. As a consequence of moving zope.app.dublincore to zope.dublincore, it seems DC annotations on old instances break, i.e. zope.app.dublincore.annotatableadapter.ZDCAnnotationData instance '\x00\x00\x00\x00\x00\x00\x0

[Zope3-Users] Re: Zope 3.30b1 error running make check

2006-05-10 Thread Tom Dossis
Stephan Richter wrote: It has been removed. It should not be part of the procedure anymore. Just ignore that step. Where did you find that? I need to update the documentation and the Makefile in the top level README.txt (line 79)... Now that the software has been built, you can run the unit

[Zope3-Users] Zope 3.30b1 error running make check

2006-05-10 Thread Tom Dossis
Seems like test.py may be missing from the 3.3.0b1 release? ~/Zope-3.3.0b1> make check python install.py -q build python test.py -v python: can't open file 'test.py': [Errno 2] No such file or directory make: *** [check] Error 2 Worked ok after copying test.py from the Zope-3.2.1/ release.. r

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

2006-05-08 Thread Tom Dossis
David Johnson wrote: I am trying to implement a currency input using a Float widget. However, the widget is populated with a strange character, and when saving the data that strange character causes problems. I do not see a Currency widget. What is the proper internationalization technique in

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

2006-04-30 Thread Tom Dossis
Martin Aspeli wrote: Hi, I'm probably doing something very wrong, but ... I have a general interface that can either by directly provided by an object or class (typically with implements() on the class), but could also be provided via an adapter. I have a few places where I just need to ch

Re: [Zope3-Users] Job

2006-04-20 Thread Tom Dossis
Tom Dossis wrote: David Johnson wrote: We’re looking to hire a full time Zope 3 developer. I hate publishing on this list, but does anyone have any good ideas on where to look? Zope is relatively young and specialized such that generic job search tools are not effective for finding good

Re: [Zope3-Users] Job

2006-04-20 Thread Tom Dossis
ce 1988. Best regards -Tom Dossis ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: FW: [Zope3-Users] Generating loginForm with formlib

2006-04-20 Thread Tom Dossis
I want to generate a login form for the PAU session credentials plugin. The plugin expects a form that have a login and a password field. I've created a interface: class ILoginForm(Interface): """For generating the login form.""" login = TextLine(title=u"Username", r

Re: [Zope3-Users] Container Contents View

2006-04-11 Thread Tom Dossis
David Johnson wrote: This is probably a trivial question. I would like have a container contents view, but I do not want it to be index.html (which is apparently the default?). However the ZCML I’m using always seems to define the view as index.html. What am I doing wrong this time? L

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

2006-03-20 Thread Tom Dossis
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 & workCount to methods

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

2006-03-20 Thread Tom Dossis
Gary Poster wrote: 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

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

2006-03-20 Thread Tom Dossis
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 patch - which I can send you if you like. -Tom _

[Zope3-Users] Re: how to make static pages

2006-03-16 Thread Tom Dossis
Lorenzo Gil Sanchez wrote: Hi, I'd like to ask what's the best way to create static html pages inside my application. For example, the intro page, a help page or a legal conditions page. I have a skin inside a browser package but if I understand them correctly the provide views for content obje

Re: [Zope3-Users] Losely or rather, less loosely coupled objects.

2006-03-09 Thread Tom Dossis
Max M wrote: When doing sites in Zope 2 I often have the need to couple/contain two or more fixed objects. When an object needs to have some specific properites and logic, many developers choose to subclass an existing object and change that. Eg. a member folder needs to *allways* have a 'co

Re: [Zope3-Users] Principal annotations

2006-03-09 Thread Tom Dossis
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 when I reload the page, they're gone. I don't know why. A quick test, hope it helps...

Re: [Zope3-Users] Principal annotations

2006-03-09 Thread Tom Dossis
Shane Hathaway wrote: Alternatively, it may possible to setup an adapter for IInternalPrincipal to IPrincipal ? I tried that first, but it got messy. IPrincipal needs an id, but InternalPrincipal doesn't know its own id; only the folder that contains it knows. However, the folder has no meth

Re: [Zope3-Users] Principal annotations

2006-03-08 Thread Tom Dossis
Tom Dossis wrote: Shane Hathaway wrote: Shane Hathaway wrote: Was this an accident? Did it work at one time? Are there plans to make principal annotation views work again? And how can I edit user annotations in the meanwhile? No one knows, I guess. After spending many days on a

Re: [Zope3-Users] Principal annotations

2006-03-08 Thread Tom Dossis
Shane Hathaway wrote: Shane Hathaway wrote: Was this an accident? Did it work at one time? Are there plans to make principal annotation views work again? And how can I edit user annotations in the meanwhile? No one knows, I guess. After spending many days on a seemingly simple problem, I'

Re: [Zope3-Users] PyWebOff

2006-03-03 Thread Tom Dossis
Shane Hathaway wrote: Hello, I've been assigned to present Zope in a local upcoming Python user group meeting. As part of the assignment, I'm supposed to solve the PyWebOff challenge using Zope: http://pyre.third-bit.com/pyweb/challenge.html I'd like to do this using Zope 3. However, I'm

Re: [Zope3-Users] Multiple sites in a single zope instance?

2006-02-28 Thread Tom Dossis
Graham Stratton wrote: What I want to be able to do is to simply create many 'sites' within a single instance. What matters is that each site can have its own appearance and users (editors). Now, I'm not sure that my sites actually need to be true Zope3 sites. Maybe I just need to have a marker

Re: [Zope3-Users] zodb objects backup

2006-02-26 Thread Tom Dossis
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 ___ Zope3-users mailing list Zope3-users@zope.org http://mai

[Zope3-Users] Making content into a resource

2006-02-16 Thread Tom Dossis
I have content objects, i.e. images (IImage), css files (IFile) contained in a site utility to provide customisations for each site. How can I present these as resources? e.g. I'd like to locate these as mysite/++resource++some_image rather than mysite/++etc++site/tools/mytool/some_image

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

2006-02-14 Thread Tom Dossis
Peter Bengtsson wrote: def __init__(self): self.queue = {} self.queue seem is empty each time I restart Zope. That's because dictionaries are not derived from Persistent. Try PersistentDict. D'oh! That's confusing. Isn't there a class that gathers all of these in one. It seems c

Re: [Zope3-Users] NameChooser functionality for IContainerNamesContainer

2006-01-16 Thread Tom Dossis
Joel Moxley wrote: I successfully added a name chooser for objects added through an add form to my container. This involved implementing IContainerNamesContainer on my container, INameChooser on my NameChooser, registering each, and being sure to set my set_before_add fields in the addform regis

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

2005-11-17 Thread Tom Dossis
Dominik Huber wrote: handler pseudo code: def addCatalogAndIndex(obj, event): sm = zapi.getNextSiteManager(obj) catalog = Catalog() addLocalUtility(sm, 'XY', ICatalog, catalog) catalog[name] = Index(name, IAnyInterface) Regards, Dominik From the apidoc for IWriteContainer.__s

Re: [Zope3-Users] Zope3 broke when renaming folder

2005-11-16 Thread Tom Dossis
John Smith wrote: Dear Zope users, Does anyone have a map as to where Zope3 stores its data inside the ZODB? the application data is in .root()['Application'] and I can see my folders there. But what about the registration processes: is there some mapping somewhere inside the ZODB that I can e

Re: [Zope3-Users] at sea with basic setup

2005-11-05 Thread Tom Dossis
Ross Boylan wrote: I'd like to create some users, set authentication methods, and so on. After a lot of fooling around with the GUI and looking at various docs, I conclude I have no idea what's going on. To complicate matters, there were some issue with my installation on Debian (using the packa

Re: [Zope3-Users] fieldindex

2005-10-28 Thread Tom Dossis
Pete Taylor wrote: hi all, I have a catalog set up, and i've been able to make text field work on zmi-added content. however, what i really want to be able to index and search is a set of objects that are created and archived elsewhere. I've tried to add a field index with the interface set to

Re: [Zope3-Users] catalog woes

2005-10-26 Thread Tom Dossis
Pete Taylor wrote: Hi all, on a fresh install of zope3.1final, and then again when running from the latest update out of the Trunk, I end up with the following when I attempt to register a catalog: ComponentLookupError: (zope.app.intid.interfaces.IIntIds>, '') I saw a similar post to this on t

Re: [Zope3-Users] No module named formlib...

2005-10-26 Thread Tom Dossis
Joshua Burvill wrote: Hello All, I am starting to work through Benji Yorks zope3 quickstart document which I am enjoying, but I've run into one problem. http://www.benjiyork.com/quick_start/ It seems the problem is with the line from zope.formlib import form In hello.py When I try at the

[Zope3-Users] Re: How do I logout from Zope 3 Management Interface

2005-10-25 Thread Tom Dossis
Todd Wilson wrote: I just joined the list, and I am following up on a post in the archive (sorry -- there wasn't a way to do this directly, so I don't know if this message will end up in the same thread). On 10/1/05, Lennart Regebro wrote: On 10/1/05, Milind Khadilkar wrote: > > I have in

Re: [Zope3-Users] IPluggableAuthentication -- 'new style' authentication problem

2005-10-13 Thread Tom Dossis
Christian Lueck wrote: Note: Since I don't know how to get into a site's context with the debugger (zopectl debug) ... Hi Christian, here's some code to get the root object of a zope3/zeo site... >>> from ZODB import DB >>> from ZEO.ClientStorage import ClientStorage >>> from zope.app.debug im

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

2005-10-05 Thread Tom Dossis
Jim Fulton wrote: Tom Dossis wrote: Leticia Larrosa wrote: I get the following error: """ 'Service' object has no attribute '_SampleContainer__data' """ I implementend a simple subclass of SampleContainer, then changed to subclass BTree

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

2005-10-03 Thread Tom Dossis
Leticia Larrosa wrote: When a try to see the view of list of "Service" of one of the "ServiceList" I get the following error: """ 'Service' object has no attribute '_SampleContainer__data' """ I'm newcomer in zope 3 and any idea will be appreciated. Thanks in advance. Leticia Larrosa In addi

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

2005-09-28 Thread Tom Dossis
Gary Poster wrote: 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 ad

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

2005-09-27 Thread Tom Dossis
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? from zope.app.catalog.interfaces import ICatalog from zope.app.catalog.catalog import Catalog from

[Zope3-Users] Problems with a catalog

2005-09-27 Thread Tom Dossis
1. How do I add a catalog to a site ? 2. Catalog error 1/- I get thus far.. From the /++etc++site/@@SiteManagement form I can successfully add a Catalog object. However, when I try to add an index, it fails ... File "... /zope/app/c

Re: [Zope3-Users] Disappearing dictionary. Upon restart, dictionary resets.

2005-09-26 Thread Tom Dossis
Alec Munro wrote: Well, I narrowed it down a little bit more. I've been initializing the dictionary in the class declaration, like the following: class SomeObj: some_dictionary = PersistentDict({}) Now, for some reason, each time Zope was started, it called this, and whenever I tried to ac

Re: [Zope3-Users] Disappearing dictionary. Upon restart, dictionary resets.

2005-09-25 Thread Tom Dossis
I have a content component that has a property that is a dictionary, the keys of which are objects (content components themselves). The values are lists of strings. I've tried implementing this a couple different ways, but each time I restart, the dictionary comes up empty. Hi Alan, Worked for

Re: [Zope3-Users] zope.schema.Object - Object of Objects

2005-08-25 Thread Tom Dossis
Christian Lueck wrote: ... Since there is not yet a posting on this problem on the list I decided to post it. Maybe this is a zope3-newbie problem, but maybe this list is the right place for these kinds of problems. I'm starting out on some new Zope3 work and would appreciate 'recipes' to loo