Re: [Zope3-Users] Views for adapted components

2007-03-26 Thread tom
: raise NotImportableException(self.context) [...] Another way to do this, if you don't like exceptions is (in your view): adapter = IImportExport(self.context, None) if adapter is not None: do something else: raise an exception or do something other Cheers -Tom

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

2005-08-25 Thread Tom Dossis
' to look at. Perhaps adding these to a site such as zopelabs.com would (also) be useful. There is a Zope3 category there, but unfortunately only has zero items. -Tom ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo

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

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

[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

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 add

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 BTreeContainer, but forget to delete existing instances created

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

2005-10-26 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 regebro at gmail.com wrote: On 10/1/05, Milind Khadilkar

Re: [Zope3-Users] catalog woes

2005-10-26 Thread Tom Dossis
to do this programmatically I can send some code snippets based on the the response on my original posting (by Gary Poster). -Tom ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

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

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

2005-11-17 Thread Tom Dossis
with the event.'' This could be alternative way to implement the the subscriber solution above. However, from looking at the code (Zope3.1) it doesn't seem to to what the apidoc claims. Does anybody know if this is still intended? -Tom ___ Zope3-users mailing

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

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

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

2006-02-28 Thread Tom Dossis
make images/files (logo's, css) available as resources to your skin. regards -Tom ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: [Zope3-Users] PyWebOff

2006-03-03 Thread Tom Dossis
. This may help distill the python, zope and zcml. -Tom ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: [Zope3-Users] Principal annotations

2006-03-08 Thread Tom Dossis
=zope.app.annotation.IAttributeAnnotatable / /content Also in the example the browser:editform directive should be changed from IPrincipal to IInternalPrincipal. Good luck. -Tom ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

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

Re: [Zope3-Users] Principal annotations

2006-03-09 Thread Tom Dossis
.) I'm sure it will all click into place soon enough. -Tom ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

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] Losely or rather, less loosely coupled objects.

2006-03-09 Thread Tom Dossis
those ugly urls. Any pointers, or am I the only one thinking along those lines? Have a look at Zope3 DublinCore which is done via annotations. -Tom ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

[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

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

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
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: FW: [Zope3-Users] Generating loginForm with formlib

2006-04-20 Thread Tom Dossis
zope.app.form.Widget.setPrefix() to do what I expected. -Tom ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

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

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

2006-05-10 Thread Tom Dossis
.. regards -Tom ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

[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] 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. persistent broken zope.app.dublincore.annotatableadapter.ZDCAnnotationData instance

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 to

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.description =

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 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): # context is the IItem object to be adapted

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

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

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

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.ICatalogIndex):

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've

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://localhost/contents.html')

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', mypackage.cont.Cont object at 0x022244B0 - (object at 0x022244B0 is OrderedContainer 'A') configure.zcml defines each used interface

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

2006-08-17 Thread Tom Dossis
of an auditory learner. There's also 'Web Component Development with Zope3 - http://worldcookery.com/About . It offers a different slant to the Developers Handbook. Some parts of it are now out of date wrt Zope 3.3. There are also some tutorials on worldcookery.com. Regards, -Tom

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 do I

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\adrianod: D:\ZopeIstanza\bin\runzope Error: 'formatter' is not a known key name (line 103 in file:/D|/ZopeIstanza/etc/zope.conf) For help, use

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

2006-09-27 Thread Tom Dossis
. to Folders (content space). Zope 3.2 - Can only add utilities to a Site Mgmt Folder Zope 3.3 - All Objects have a ZMI Registration Tab Zope 3.2 - Only ILocalUtility? objects have a reg. tab Is this intentional? I seem to recall an objective of zope3 was to remove 'tools' from content space? Thanks -Tom

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 package

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

Re: [Zope3-Users] how to access the root folder in normal operation

2006-11-15 Thread Tom Gross
Hi Shailesh, have a look at zope.traversing.api. There's a getRoot-method. Cheers -Tom Shailesh Kumar wrote: Hi, In a functional test setup, one can access the root folder using getRootFolder() of FunctionalTestSetup. How can I access the root folder in a nomal operation mode

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: editform for=..IMyFile schema=..IMyFile class=.EditMyFile permission=zope.ManageContent name=editmyfile.html

Re: [Zope3-Users] question about MailDir folder for queuedDelivery on windows

2006-11-17 Thread Tom Gross
in *cur* are just like files in *new*. The big difference is that files in *cur* are no longer new mail: they have been seen by the user's mail-reading program. Cheers -Tom Shailesh Kumar wrote: Hi, I am trying to use mail:queuedDelivery. It says that the /...\lib\python\baton

Re: [Zope3-Users] how to access the root folder in normal operation

2006-11-17 Thread Tom Gross
Hi Shailesh, take a look at zope.app.appsetup. You could subscribe to the DatabaseOpenedWithRoot-event. Cheers -Tom Shailesh Kumar wrote: Hi, zope.traversing.api.getRoot returns the root of a given object. What I wanted to do was that when zope starts, I would like to create a few

Re: [Zope3-Users] Custom Content Container

2006-11-28 Thread Tom Gross
Hi David, which fields does your IOwner-interface consist of? You get this error if you call an auto generated form from a List-field, without having value_type specified, but there are other scenarios, so this information would be helpful. Cheers -Tom David Johnson wrote: I created

Re: [Zope3-Users] how to know which port zope is runnning on?

2006-11-28 Thread Tom Gross
Hi Shailesh, try request.get('SERVER_PORT'). Cheers -Tom Shailesh Kumar wrote: Hi, Is it possible for the application code to figure out the port number on which zope is running? What is the suitable api for that? With regards, -shailesh

Re: [Zope3-Users] Custom Content Container

2006-11-29 Thread Tom Gross
constraints the intended way. Cheers -Tom David Johnson wrote: I figured out the problem. In my interfaces I was using the contains and containers methods. When I stuck to the more tedious __parent__ = ... approach as outlined in Stephan's book, all was solved. Thanks. -Original Message

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

2006-12-02 Thread Tom Dossis
at zope.publisher.interfaces.IPublishTraverse to hook in your own handler for traversing a Person object. regards, -Tom ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

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

2006-12-11 Thread Tom Dossis
the IInitIndicator component works directly after the registration but *nowhere* else in my application. Have you 'browsed' the utility via the ZMI 'Manage Site'? Is there an instance there (in the site you expect it to be)? If so the 'Registration' page could provide some useful info. Regards, -Tom

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 = uoops! no img if self._renderedValueSet(): mycontent = img src=\data:image/gif;base64, +

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

2006-12-12 Thread Tom Gross
I usually put this in the docstring of classes I want to use as utilities. Just to make sure :-). -Tom wrote: Hi, On Tue, Dec 12, 2006 at 07:56:53AM +1100, Tom Dossis wrote: FB wrote: Hi, is there any reason why a registered utility which is persistently stored inside the site

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

2006-12-12 Thread Tom Gross
Hi Frank, you are trying to lookup the utility with the name None. If you don't specify a name when registering the utility, omit the second parameter: zapi.getUtility(IInitIndicator) Cheers -Tom FB wrote: On Tue, Dec 12, 2006 at 05:29:55PM +0300, Garanin Michael wrote: FB wrote

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

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=None): -

Re: [Zope3-Users] getUtilitiesFor without context

2007-01-10 Thread Tom Dossis
this with: from zope.app.component import hooks print hooks.getSite() # None Use: # work out what your site hook.set(site) before your util lookups. regards, -Tom ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3

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

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, should be: hooks.set(site) hooks.setSite(site

[Zope3-Users] Customized NotFound-Page

2007-01-12 Thread Tom Gross
Hi, I created a customized 'NotFound'-Page which displays fine itself. Now the page should render in a skin with some security sensitive viewlets. These viewlets disappear when rendering the 'NotFound'-Page. Is there a known solution to the problem? Thanks, Tom

Re: [Zope3-Users] objectwidget help

2007-01-31 Thread Tom Gross
Hi Ivan, I might be wrong, but I think there's an example for listwidgets containing objects in the zope3demos-package: http://code.google.com/p/zope3demos/ Maybe it helps. Cheers -Tom Ivan Horvath wrote: Dear All, in my implementation there is an object. one of this object properties

Re: [Zope3-Users] objectwidget help

2007-01-31 Thread Tom Gross
Hi Ivan, did you get the code from the repository? It's: svn checkout http://zope3demos.googlecode.com/svn/trunk/ zope3demos Cheers -Tom Ivan Horvath wrote: thank you Tom! i downloaded, but unfortunately i cannot see it in my browser. what is the url for the otherdemos objectsofobject2

Re: [Zope3-Users] objectwidget help

2007-02-01 Thread Tom Gross
?type_name=BrowserAdd__zope3demos.formlib2.demo.OrderCreate Formlib2 Demo Object/a You can create the object via the 'Add:'-Navigation. Choose 'Formlib Demo Object' there. -Tom Ivan Horvath wrote: Hi Tom, yes, but i made another checkout to another folder, renamed the previous one

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:

Re: [Zope3-Users] Error when calling addform

2007-02-11 Thread Tom Dossis
content If you add an __init__ constructor to BlogComment then you could use the fields or keyword_arguments instead, e.g. fields=name email content -Tom ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

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

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

2007-03-09 Thread Tom Dossis
Zope3. You'll be a much better programmer. regards, -Tom ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: [Zope3-Users] Zope 3 and menus

2007-03-13 Thread Tom Gross
=href item/abs_action; title item/description tal:content=item/title/a /li /ul /div Cheers -Tom eXt wrote: Hi I've got a problem with menus. I'd like to define a global menu, and then add some options to it depending on actual context (view registered for specific

Re: [Zope3-Users] imports cleanup

2007-03-15 Thread Tom Gross
Hi Christophe, you may want to take a look at pylint. www.logilab.org/project/name/pylint It is a coding standard checker, finding unused imports as well but does much more. Cheers -Tom Christophe Combelles wrote: Hello, As I'm experimenting with various components, I'm adding more

Re: [Zope3-Users] Installing Zope / permissions ???

2007-04-05 Thread Tom Groß
Zope as root. Cheers -Tom On Thu, 2007-04-05 at 10:42 +0200, Tobias Daub wrote: Hello Everybody, I'm new to Zope and I just wanted to install it on my providers webserver (Goneo). So I logged in via ssh and did the things from the README.txt. ./configure = wenr OK Python 2.4.3

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

2007-05-03 Thread Tom Dossis
rudimentary first cut, and only provides a grid (table) layout. I can't see myself getting any time to work on it in the immediate future. If you think it might be useful I can send you the package (which includes doctests). Regards -Tom class SearchForm(LayoutMixin, form.EditForm

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 containment tree but

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] 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] Weird error for a certain named attribute

2007-10-18 Thread Tom Dossis
deleting all .pyc-files and deleting all old Foo objects, and the site i run for testing followed by restarting the server. But adding new Foo objects still don't work. (But renaming tags to anything else and then trying again will succeed). Any ideas? Add: default=[] to your IFoo schema. -Tom

[Zope3-Users] overriding single resources from resourcedirectories

2008-06-02 Thread Tom Gross
product? Thanks, -Tom ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

[Zope3-Users] Problem running examples from Zope3 book Weiterhausen

2006-03-09 Thread Rijgersberg, T.J. (Tom)
probably to my same mistakes. Regards, Tom This e-mail and its contents are subject to the DISCLAIMER at http://www.tno.nl/disclaimer/email.html ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

[Zope3-Users] registerHandler question/problem

2009-06-15 Thread Tom Sanders | DGS Visueel
approach would be very helpful. Thanks, Tom ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users