[Zope3-Users] Using z3c.table in a grok view?

2008-06-01 Thread Adam Summers
Hi, forgive the double posting. My membership to grok-dev hasn't been approved yet... Hi there, I'm trying to get a better feel for grok so that I can evaluate for an upcoming project - so far, its been a relatively painless experience! However, I've been using Paul Carduner's guide

Re: [Zope3-Users] formlib vs z3c.form

2007-12-06 Thread Adam Summers
Hi, A quick, blind question. I've been evaluating grok and am very impressed at how easy it makes the whole development process. How hard is it to get grok to play nicely with z3c.form et al? Has anyone any examples? Thanks and Regards, Adam Christophe Combelles wrote: Chris Withers

Re: [Zope3-Users] Time for a Decimal field type in zope.schema?

2007-04-27 Thread Adam Summers
Hi, Did the inclusion of Darryl's code ever get off the ground? I can't find a Decimal in zope.schema in Zope3.3.1 ... Regards, Adam Marius Gedminas wrote: On Thu, 31 Aug 2006 20:29:49 +0700 Darryl Cousins [EMAIL PROTECTED] wrote: On Thu, 2006-08-31 at 15:07 +0300, Marius Gedminas wrote:

[Zope3-Users] Should I be using a more basic form in Formlib than EditForm?

2006-12-30 Thread Adam Summers
Hi all, I have an edit form: class claimEditForm(form.EditForm): form_fields = form.Fields(Iclaim).omit('__name__', '__parent__') @form.action(_(MyApply), condition=form.haveInputWidgets) def handle_edit_action(self, action, data): if self.context.modify(data):

[Zope3-Users] Re: Should I be using a more basic form in Formlib than EditForm?

2006-12-30 Thread Adam Summers
Once more, with formatting: Hi all, I have an edit form: class claimEditForm(form.EditForm): form_fields = form.Fields(Iclaim).omit('__name__', '__parent__') @form.action(_("MyApply"), condition=form.haveInputWidgets) def handle_edit_action(self, action, data): if

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

2006-12-30 Thread Adam Summers
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__.def_c == self.c:

Re: [Zope3-Users] Custom Image Widget - Solution

2006-12-17 Thread Adam Summers
value_type=Object(IImage, __name__='ImgItem', title=_(u"Image"))) anyway, hope this helps anyone who gets stuck on this sort of thing. Again, thanks. Adam Tom Dossis wrote: Adam Summers wrote: Hi Tom Widget Afficionados. Thanks for the help so far. My problem is

Re: [Zope3-Users] Custom Image Widget

2006-12-14 Thread Adam Summers
cs List"), value_type=Object(IImage, __name__='ImgItem', title=_(u"Image"))) img = Object(IImage, title=_(u"Single img"), required=False) And hence, the self.context.context points to the claim object, not the list inside when rendering supDoc Again, any help is mu

[Zope3-Users] Custom Image Widget

2006-12-11 Thread Adam Summers
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, + b64encode(self._data.data) + \ / return

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

2006-12-06 Thread Adam Summers
Hi, Tom Dossis wrote: 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 =

Re: [Zope3-Users] Examples

2006-02-08 Thread Adam Summers
Hi, My two cents worth - A lot of time is spent saying Zope3 is different to Zope2 -- its better (and I wholeheartedly agree). However, there is a lot of stuff which is in the zope 2 books which is applicable to zope3, but is absent. eg: ZPT design, SQL integration. Is it possible for

Re: [Zope3-Users] Re: Zope 3 Marketing Competition? (was Re: [Zope3-dev] Re: Selecting a code name)

2006-02-07 Thread Adam Summers
Despite my silence, I have been watching this with interest - I think its a great way to get moving. +2 for me :) Regards, Adam Paul Everitt wrote: Stephan Richter wrote: On Monday 06 February 2006 20:49, Gary Poster wrote: How about we have a marketing competition? :-) +1 from me plus

[Zope3-Users] Building PDF files using reportlab, with image objects in Zope3

2006-01-02 Thread Adam Summers
Hi, I'm trying to build a report using zope3 + reportlab 1.20 that I want to contain some images from a container (which in the code below is called 'item'). Has anyone done this? Can they suggest a technique? Trying the following: images = [] for docpage in

[Zope3-Users] substitute for deprecated response.write()?

2005-12-28 Thread Adam Summers
Hi, I was having a look at Phillipp's fabulous book (thanks!), and came across the code for publishing a PDF document to the browser (this is slightly modified from the book): from zope.app import zapi from zope.app.publisher.browser import BrowserView from ccard.pdf.interfaces import

Re: [Zope3-Users] substitute for deprecated response.write()?

2005-12-28 Thread Adam Summers
Hi, I am red faced (and blurry-eyed, its 1am here)- I found the answer in the archives, in September: On Fri, Sep 16, 2005 at 11:50:19AM -0400, Stephan Richter wrote: Just return the data; it is handled properly now. Adam Summers wrote: Hi, I was having a look at Phillipp's