RE: [Zope3-Users] No module named formlib...

2005-10-27 Thread Joshua Burvill


No worries Benji, and thanks to everyone who helped solve my problem so
quickly.

Josh

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


RE: [Zope3-Users] No module named formlib...

2005-10-26 Thread Joshua Burvill

I think the way it reads is: (to paraphrase)

"I (the author) used pre-3.2 from subversion to write this... "

which does not convey that pre-3.2 is required, and prior versions will not
work.

I guess I underestimated the amount of new features that would be in the
pre-3.2 compared to the 3.1.0, eg formlib.

Hope this helps, Josh




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


[Zope3-Users] No module named formlib...

2005-10-25 Thread Joshua Burvill
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/

When I do the steps to create the edit form for hello world, I can no longer
start zope. See below for the traceback.

Any help appreciated.

It seems the problem is with the line

from zope.formlib import form

In hello.py

When I try at the interactive python prompt I get:

>>> from zope.formlib import form
Traceback (most recent call last):
  File "", line 1, in ?
from zope.formlib import form
ImportError: No module named formlib

hello.py:

import persistent
from zope import interface, schema
from zope.formlib import form

class IHelloWorld(interface.Interface):
greeting = schema.TextLine()
subject = schema.TextLine()

class HelloWorld (persistent.Persistent):
interface.implements(IHelloWorld)
greeting = 'Hello'
subject = 'world'

class MessageView(object):

def message(self):
return '%s %s!' % (self.context.greeting, self.context.subject)
 

class EditView(form.EditForm):
form_fields = form.Fields(IHelloWorld)



I am using precompiled python 2.3 on windows xp, precompiled zope3
3.1.0final for python2.3.




Traceback (most recent call last):
  File "c:\python23\zopeskel\bin\runzope", line 48, in ?
run()
  File "c:\python23\zopeskel\bin\runzope", line 44, in run
main(["-C", CONFIG_FILE] + sys.argv[1:])
  File "C:\Python23\Lib\site-packages\zope\app\server\main.py", line 58, in
main
setup(load_options(args))
  File "C:\Python23\Lib\site-packages\zope\app\server\main.py", line 169, in
setup
zope.app.appsetup.config(options.site_definition)
  File "C:\Python23\Lib\site-packages\zope\app\appsetup\appsetup.py", line
52, in config
context = xmlconfig.file(file, execute=execute)
  File "C:\Python23\Lib\site-packages\zope\configuration\xmlconfig.py", line
555, in file
include(context, name, package)
  File "C:\Python23\Lib\site-packages\zope\configuration\xmlconfig.py", line
491, in include
processxmlfile(f, context)
  File "C:\Python23\Lib\site-packages\zope\configuration\xmlconfig.py", line
346, in processxmlfile
parser.parse(src)
  File "c:\python23\lib\xml\sax\expatreader.py", line 107, in parse
xmlreader.IncrementalParser.parse(self, source)
  File "c:\python23\lib\xml\sax\xmlreader.py", line 123, in parse
self.feed(buffer)
  File "c:\python23\lib\xml\sax\expatreader.py", line 207, in feed
self._parser.Parse(data, isFinal)
  File "c:\python23\lib\xml\sax\expatreader.py", line 348, in end_element_ns
self._cont_handler.endElementNS(pair, None)
  File "C:\Python23\Lib\site-packages\zope\configuration\xmlconfig.py", line
326, in endElementNS
self.context.end()
  File "C:\Python23\Lib\site-packages\zope\configuration\config.py", line
554, in end
self.stack.pop().finish()
  File "C:\Python23\Lib\site-packages\zope\configuration\config.py", line
702, in finish
actions = self.handler(context, **args)
  File "C:\Python23\Lib\site-packages\zope\configuration\xmlconfig.py", line
491, in include
processxmlfile(f, context)
  File "C:\Python23\Lib\site-packages\zope\configuration\xmlconfig.py", line
346, in processxmlfile
parser.parse(src)
  File "c:\python23\lib\xml\sax\expatreader.py", line 107, in parse
xmlreader.IncrementalParser.parse(self, source)
  File "c:\python23\lib\xml\sax\xmlreader.py", line 123, in parse
self.feed(buffer)
  File "c:\python23\lib\xml\sax\expatreader.py", line 207, in feed
self._parser.Parse(data, isFinal)
  File "c:\python23\lib\xml\sax\expatreader.py", line 348, in end_element_ns
self._cont_handler.endElementNS(pair, None)
  File "C:\Python23\Lib\site-packages\zope\configuration\xmlconfig.py", line
326, in endElementNS
self.context.end()
  File "C:\Python23\Lib\site-packages\zope\configuration\config.py", line
554, in end
self.stack.pop().finish()
  File "C:\Python23\Lib\site-packages\zope\configuration\config.py", line
702, in finish
actions = self.handler(context, **args)
  File "C:\Python23\Lib\site-packages\zope\configuration\xmlconfig.py", line
491, in include
processxmlfile(f, context)
  File "C:\Python23\Lib\site-packages\zope\configuration\xmlconfig.py", line
346, in processxmlfile
parser.parse(src)
  File "c:\python23\lib\xml\sax\expatreader.py", line 107, in parse
xmlreader.IncrementalParser.parse(self, source)
  File "c:\python23\lib\xml\sax\xmlreader.py", line 123, in parse
self.feed(buffer)
  File "c:\python23\lib\xml\sax\expatreader.py", line 207, in feed
self._parser.Parse(data, isFinal)
  File "c:\python23\lib\xml\sax\expatreader.py", line 348, in end_element_ns
self._cont_handler.endElementNS(pair, None)
  File "C:\Python23\Lib\site-packages\zope\configuration\xmlconfig.py", line
326, in endElementNS
self.context.end()
  File "C:\Python23\Lib\site-packages\zope\configuration\config.py", line
554, in end
self.stack.pop().finish()
  Fi

[Zope3-Users] Application with objects incl relations / references

2005-10-23 Thread Joshua Burvill








Hello,

 

I want to make an application that has the following types
of objects, for example:

 

Customers 

 

Addresses

 

Quotes

 

Quote_items

 

With the usual references/relations between objects, eg
customer may have more that one address, more than one quote, quote has many
quote_items, etc

 

Can someone give me a high level description/overview of
what I need to use/do in zope3 to make something like this.

 

No need to go into details, just general pointers / names of
things to use, I can then go and find out all the details.

 

Thanks, Josh






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