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
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:
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
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
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
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
>
> 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
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"
> />
>
>
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:
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
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
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
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
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
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(
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) + " \"
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
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
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
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"
>>
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
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
[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):
>
>
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 pa
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
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
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
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
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.
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
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
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
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'
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
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
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
[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
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):
>>
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 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
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
[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
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
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
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
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
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
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
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
ce 1988.
Best regards
-Tom Dossis
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users
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
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
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
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
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
_
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
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
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...
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
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
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'
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
85 matches
Mail list logo