Whoa, really bad line breaks, here is the pastbin link
http://zope3.pastebin.com/867518
David, zc.table makes rendering html tables more
programmatic.
--- [EMAIL PROTECTED] wrote:
> Thanks for the direction, Gary. :)
>
> Getting a Choice field working in doctests was quite
> a
> challenge. I
Thanks for the direction, Gary. :)
Getting a Choice field working in doctests was quite a
challenge. It now fails as only as a zc.table
FieldColumn. I'm including the relevant doctests and
tests.py
I apologize in advance for the verbose post. :)
Kevin Smith
File
"/root/temp/zc.table-0.6/src
Does anyone know if there is a trick in getting Choice
schema's to work with zc.table FieldColumn or am I
likely doing something wrong?
Thanks,
Kevin Smith
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-use
I need to investigate this further now, but this
problem so far seems to isolated to the ValueIndex.
Also, when the ObjectModifiedEvent is replaced with an
ObjectCreatedEvent, the object is properly indexed.
...
--- [EMAIL PROTECTED] wrote:
> Hi list,
>
> For some reason, everytime an object i
Hi list,
For some reason, everytime an object is modified, all
of the catalog information for that object is lost.
A full catalog reindex works.
Do I need to subscribe the interfaces of the catalog
indexes to the ObjectModfiedEvent or something? I
appreciate any pointers.
Thanks,
Kevin Smith
Nice call. Registering as ICatalog (instead of IExtentCatalog) works perfectly.
Thanks!
Kevin Smith
Gary Poster <[EMAIL PROTECTED]> wrote:
On Jan 11, 2007, at 1:42 PM,
[EMAIL PROTECTED]> wrote:
> In my experience (zope2), large full textindexes require more and
> more cpu time for every ne
In my experience (zope2), large full textindexes require more and more cpu time
for every new object added to the point where it takes several minutes for each
new article uploaded!
To avoid this problem, I was hoping to break the index into smaller pieces by
using extent catalogs to filter by
Ok, so the following "works", but if someone with more
knowledge could comment on this I'd appreciate it.
class MovieColumnSubmit(fieldcolumn.SubmitColumn):
def getId(self, item, formatter):
return fieldcolumn.toSafe(item.__name__)
def update(self, items, data, formatter)
Does anyone have a simple example of how FieldColumn
is used?
I'm quite sure I'm missing a very serious step here,
but have been unable to figure out how to "trigger"
the update method. Any help at all would be
appreciated.
I've tried the following, the request values show on
screen but fail to u
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):
implements(IBloggable)
__name__ = __parent__ = None
Hi, Yes, one solution is custom widgets. Although I don't have a List of List
example, I do have a List of Object example. It uses formlib,
CustomWidgetFactory, ListSequenceWidget and ObjectWidget
http://zope3demos.googlecode.com/svn/tags/zope3demos-200610-21/otherdemos/objectsofobjects2/
Proje
At least part of this story is being worked on in z3c.multiform,
however it's a project that states itself as being in it's infancy and
doesn't seem to be very active. If anyone is interested in
collaborating on this, I'm very interested in advancing this story.
Kevin Smith
Monterey County Week
I'm looking into formlib and display widgets. If anyone on the list has an
example, I'd love to see it. The following Objects of List example works
perfectly for edit view. For the display view it shows the AddressBook schema
fine, but shows the Person schema edit form. I've googled all day, but
Perhaps this already exists somewhere, but I couldn't find it. Feed this
function an object and it returns a dictionary of the associated schema
key/value pairs including those that are PersistentList's of objects. Handy for
view classes. Pointers and improvements welcome.
Kevin Smith
def map
I think the layer attribute may be missing.
Kevin Smith
- Original Message
From: Alec Munro <[EMAIL PROTECTED]>
To: Jürgen Kartnaller <[EMAIL PROTECTED]>
Cc: zope3-users@zope.org
Sent: Friday, October 6, 2006 11:39:23 AM
Subject: Re: [Zope3-Users] Re: Intended scope of viewlets?
I
Hi Alec,
Zope3demos has been updated with a stripped down
example of Jürgen at Lovely Systems "no macro" masterpage design. You
can get it from the trunk at
svn checkout http://zope3demos.googlecode.com/svn/trunk/ zope3demos
Should be good as of R35.
FYI: There was a major refactoring of the pa
self.context.absolute_url looks very zope2ish, absolute_url is no longer
inherited, it is an adapted component, so I believe the accepted Zope3 way is...
from zope.app import zapi
from zope.app.traversing.browser.interfaces import IAbsoluteURL
.
def render(self):
url = zapi.
I have a situation where the functional test passes but when the page is
actually viewed a ComponentLookupError is raised.
This test passes using zope.testbrowser
>>> browser.open('http://localhost/@@z3d.demo3.index.html')
>>> 'ViewletDemo3' in browser.contents
True
A quick sanity
Hi Florian,
I put together some simple installable examples or zope.viewlet and
zope.contentprovider. You can check them out from
svn checkout http://zope3demos.googlecode.com/svn/trunk/ zope3demos
project page http://code.google.com/p/zope3demos/
Kevin Smith
- Original Message
From:
Stephan,
I haven't quote got the hang of how to reuse viewlets, but I've setup an
installable example at:
1) I took it you meant for SearchView to subclass BaseView instead of
BrowserView
2) I added viewletManager directive in the zcml
svn checkout http://zope3-viewlet-demo.googlecode.
I'm investigating alternatives to macros, the following appears to work, but
does anyone see anything particularly wrong or limiting with this
implementation?
Thanks,
Kevin Smith
app.py
class PageView(BrowserView):
content = pagetemplate.ViewPageTemplateFile('page.pt')
Hi Folks,
Wow, viewlets are starting to look incredibly
powerful.
I'm posting my experimentation with them as a set of
demos loosely based on the zope.viewlet readme. The
first two demos are very simple and the third is a
intermediate step towards the complex example in the
readme.
If you have
Thanks for your reply. So, when you say macros still
excel for general O-wrap, do you mean things like
style_slot, script_slot and body_slot or do you also
include things like header_slot, navigation_slot,
breadcrumb_slot and footer_slot as well?
I'm a little confused as to whether render() from
Is it possible to use contentproviders as an
alternative to macros for providing the look and feel
of a site? I thought I saw someone mention something
to this affect.
Thanks.
ksmith
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org
ou're interested in helping out, please drop me a
line.
Best regards,
Kevin Smith
ksmith93940-dev at yahoo
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users
25 matches
Mail list logo