Re: [Zope3-Users] Re: [Zope-dev] Zope 3.4.0 candidate 1 Released

2008-02-02 Thread Martijn Faassen
Hey,

On Feb 1, 2008 11:52 PM, Martin Aspeli [EMAIL PROTECTED] wrote:
 Stephan Richter wrote:
  On Friday 01 February 2008, Martijn Faassen wrote:
  http://www.openplans.org/projects/zorg-redux
 
  This project does not seem to be public.

 Right - thanks Martijn for spilling the beans prematurely. ;-)

I hadn't realized that thing was private, but I don't feel too guilty.
The Foundation hasn't been hiding this effort, we just don't want too
many cooks involved before it's ready.

Anyway, Martin, I'm just recruiting people who want to write content
for you and giving you people to add to your list of volunteers to
write about Zope 3. I'm hoping you are keeping a list. :)

Regards,

Martijn
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


[Zope3-Users] zope.formlib doesn't check invariants on subschemas - need workaround

2008-02-02 Thread Derek Richardson
I have a schema, let's call it B. It contains an @invariant function. I 
observed that it is not being called during form validation.


After help from Philipp and some investigation, I determined that the 
problem is that schema B isn't itself the main form, but is nested 
within schema A as the value_type of a Tuple field. When schema A is 
validated, schema B's invariant is not checked. I think this may be a 
bug. If someone more knowledgeable will confirm, then I will open a bug 
report.


In the mean time, I need a workaround that verifies that the invariants 
on all instances of schema B in the Tuple on schema A hold during form 
validation. My nascent idea is to put an invariant on schema A that 
checks all the invariants on all schema B instances. However, I am not 
familiar enough with formlib internals to code this up without 
significant research. Can someone help me out with an implementation for 
this workaround or an idea for a different, better workaround?


Thanks,

Derek

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


[Zope3-Users] newbie needs to glue zope-concepts together to create tree

2008-02-02 Thread dfgdfg dfg
hi,

im new to zope, but i read the 2 books (not everything but very much). im 
developing a tree-like structure that i want to use throughout my project to 
store tag-information in it. every node should store some tags, that are 
extensible by the users by adding new tags as they tag their content they want 
to upload.

the intension of this tree is supporting the content tagging user with aleady 
used tags for this content.

i chose the tree structure because it has some context sensitive advantages for 
me.

the class-structure behind it is ready and now i dont know how to proceed with 
zope. what i need is a textfield, that is associated with some node of the 
tree. the textfield will use the ajax-script to display a dynamicly generated 
list of similar words as the user types in his letters. the words that can be 
similar should come from the node of some tree, that the textfield is 
associated with.

like when you type a url in the firefox browser it supports you with the urls 
that where already used.

and like in firefox, when you enter a new url, it is added to the 
already-used-urls-list, i need the same thing with my textfield. so this 
textfield is not an add-view or something, because it adds only when the tag is 
new to the database. the other times its just about selecting some tag and 
associate it with the content.

and in some cases, i want the textfield to only be a selectable one, where the 
user isnt allowed to add new tags to the database.

i dont know how to start. :( i read the 2 books up and down and search the 
internet sources for hints, but i dont get a clue for sure. i can see some 
ways, but i dont know if they are the right ones. i think i will have to 
implement a new schema, but then i will have to associate it with the right 
node-instance of the right tree... and then my imagination already stops. i 
just cant clue the pieces to a whole. if you could give me some hints i would 
really appreciate that.

just write me, make a schema, for parent class take this one, give it some 
attribute for the treenode, write a widget for it... maybe i will need an 
utility?? maybe i can or should use some of the utilities that come with the 
vocabulary? u see, i dont have a view on the thing as a whole, just pieces and 
i dont know how to glue them together.

greetings, garz
-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] using zope.testing's testrunner outside of zope

2008-02-02 Thread Stephan Richter
On Friday 01 February 2008, Chris Withers wrote:
 Stephan Richter wrote:
  If you use buildout, there is a recipe for creating a test runner. See
 
  http://svn.zope.org/zope.kgs/trunk/?rev=83325
 
  for a good example.

 Where's the actual test runner or test runner creater?

[test]
recipe = zc.recipe.testrunner
eggs = zope.kgs [test]

  Also, what's the best way to indicate in setup.py that my package needs
  zope.testing for the tests?
 
  There is a test option, where you can list all packages that should be
  installed for testing. See
 
  http://svn.zope.org/zope.component/trunk/setup.py?rev=81358view=auto

 What's the difference between tests_require and extras_require['test']?

tests_require contains a list of test dependencies that setuptools uses for 
its integrated test support. Unfortunately, this lsit is not exposed, so 
buildout cannot use it. So instead, we use extras_require['test'] to 
provide that same list.

Regards,
Stephan
-- 
Stephan Richter
Web Software Design, Development and Training
Google me. Zope Stephan Richter
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] zope.formlib doesn't check invariants on subschemas - need workaround

2008-02-02 Thread Stephan Richter
On Saturday 02 February 2008, Derek Richardson wrote:
 After help from Philipp and some investigation, I determined that the
 problem is that schema B isn't itself the main form, but is nested
 within schema A as the value_type of a Tuple field. When schema A is
 validated, schema B's invariant is not checked. I think this may be a
 bug. If someone more knowledgeable will confirm, then I will open a bug
 report.

I would not consider this a bug. I would not expect it to work this way. But 
then I also think that the generic Object field is evil, though I am 
sometimes sucked into believing it is not. So I guess the way to fix it would 
be to check the invariants within the validation method of the Object field.

 In the mean time, I need a workaround that verifies that the invariants
 on all instances of schema B in the Tuple on schema A hold during form
 validation. My nascent idea is to put an invariant on schema A that
 checks all the invariants on all schema B instances. However, I am not
 familiar enough with formlib internals to code this up without
 significant research. Can someone help me out with an implementation for
 this workaround or an idea for a different, better workaround?

Yep, that workaround work, but the error message does not appear in the right 
location. I do not use formlib, so I cannot help with an implementation 
either.

Regards,
Stephan
-- 
Stephan Richter
Web Software Design, Development and Training
Google me. Zope Stephan Richter
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Trouble installing DocumentLibrary

2008-02-02 Thread Stephan Richter
On Friday 21 September 2007, John Goerzen wrote:
               ConfigurationError: ('Unknown directive',
               u'http://namespaces.zope.org/browser', u'layer')

 Does anyone have any idea how to fix this?

You do not seem to load the most fundamental browser directives. You must 
include the meta.zcml file from zope.app.publisher (I believe) somewhere.

You should contact Infrae to help you out with this particular problem.

Regards,
Stephan
-- 
Stephan Richter
Web Software Design, Development and Training
Google me. Zope Stephan Richter
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] How to go further?

2008-02-02 Thread Stephan Richter
On Sunday 23 September 2007, Simon wrote:
 Could someone tell me for example how to integrate Fckeditor to it?

 I just know that in my interfaces.py I need to do

 from zope.html.field import XhtmlFragment

 and then in description I need to do change Text in XhtmlFragment

This does not make sense.

 Is there some more advanced book than the one of Phil???

Well, a book is always secondary writing. We have a lot of primary 
documentation in doctests.

 Is there more documentation somewhere else???

Yes, there is. The zope.html package comes with several documentation files:

http://svn.zope.org/zope.html/trunk/src/zope/html/README.txt?rev=69548view=auto
http://svn.zope.org/zope.html/trunk/src/zope/html/browser.txt?rev=69548view=auto
http://svn.zope.org/zope.html/trunk/src/zope/html/docinfo.txt?rev=81422view=auto
http://svn.zope.org/zope.html/trunk/src/zope/html/widget.txt?rev=70761view=markup

Regards,
Stephan
-- 
Stephan Richter
Web Software Design, Development and Training
Google me. Zope Stephan Richter
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] how to use invariant/validator? (z3c.form=1.6 and z3c.formui=1.3)

2008-02-02 Thread Stephan Richter
On Friday 21 September 2007, Kai Krackler wrote:
    - __traceback_info__: (zope.interface.exceptions.Invalid instance at
 0x2b2d6e6af440, 'widget', ['label']) TypeError: tuple indices must be
 integers

Does this error still happen with z3c.form 1.8?

Regards,
Stephan
-- 
Stephan Richter
Web Software Design, Development and Training
Google me. Zope Stephan Richter
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Re: z3c.form install problem?

2008-02-02 Thread Stephan Richter
On Sunday 16 September 2007, Philipp von Weitershausen wrote:
 a) stay on Zope 3.3 and *don't* install z3c.form via setuptools. Simply
 copy the package to $INSTANCE/lib/python. That requires, of course, that
 z3c.form actually works on Zope 3.3.

Yes, z3c.form is compatible with Zope 3.3. Though I suggest switching to Zope 
3.4, since we usually do not test against Zope 3.3 anymore.

Regards,
Stephan
-- 
Stephan Richter
Web Software Design, Development and Training
Google me. Zope Stephan Richter
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users