approach would be very helpful.
Thanks,
Tom
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users
product?
Thanks,
-Tom
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users
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
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
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:
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
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
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
:
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
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
=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
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
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
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
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:
?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
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
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
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
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
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
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
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):
-
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
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
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
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
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, +
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
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
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
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
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
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
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
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
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
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
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
. 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
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
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
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
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
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')
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
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):
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
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:
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
[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
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
[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
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 =
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
..
regards
-Tom
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users
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
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
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
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
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
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
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
.)
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
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...
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
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
=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
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
.
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
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
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
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
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
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
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
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
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
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
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
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 ...
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
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
'
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
84 matches
Mail list logo