[Zope3-Users] SV: Books example

2006-09-10 Thread Kim L. Jacobsen
Thanks Philipp and Sébastien

Don't know why I missed that errata.

Regards,
Kim
 

 -Oprindelig meddelelse-
 Fra: Philipp von Weitershausen [mailto:[EMAIL PROTECTED] 
 Sendt: 10. september 2006 10:22
 Til: Kim L. Jacobsen
 Cc: zope3-users@zope.org
 Emne: Re: Books example
 
 Kim L. Jacobsen wrote:
  Philipp,
  
  Regarding this subject... When I try the examples from chapter 7 in 
  your book, I get the following error, when I try to add a Recipe. I 
  simple can't figure out, how to resolve it. Any suggestions?
  
  I'm using Zope 3.2.1
 
 This is a known erratum:
 
 * page 96, Example 7.4.1: Due to an incompatible change from 
 Zope 3.1 to Zope 3.2, The custom sequence widget no longer 
 works as listed. Adding the following code to the widget 
 class fixes the problem:
 
 def __init__(self, context, value_type, request):
  return super(DynamicSequenceWidget, 
 self).__init__(context, request)
 
 
 
 
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


[Zope3-Users] Re: Books example

2006-09-09 Thread Kim L. Jacobsen
Philipp,

Regarding this subject... When I try the examples from chapter 7 in your book, 
I get the following error, when I try to add a Recipe. I simple can't figure 
out, how to resolve it. Any suggestions?

I'm using Zope 3.2.1

Regards,
Kim

---

Traceback (innermost last):
  Module zope.publisher.publish, line 138, in publish
result = publication.callObject(request, object)
  Module zope.app.publication.zopepublication, line 161, in callObject
return mapply(ob, request.getPositionalArguments(), request)
  Module zope.publisher.publish, line 113, in mapply
return debug_call(object, args)
   - __traceback_info__: bound method +.action of 
zope.app.publisher.browser.viewmeta.+ object at 0xb58c54ac
  Module zope.publisher.publish, line 119, in debug_call
return object(*args)
  Module zope.app.container.browser.adding, line 128, in action
name=view_name) is not None:
  Module zope.component, line 165, in queryMultiAdapter
return sitemanager.queryMultiAdapter(objects, interface, name, default)
  Module zope.component.site, line 75, in queryMultiAdapter
default)
  Module zope.interface.adapter, line 475, in queryMultiAdapter
return factory(*objects)
  Module zope.app.form.browser.editview, line 64, in __init__
self._setUpWidgets()
  Module zope.app.form.browser.add, line 49, in _setUpWidgets
setUpWidgets(self, self.schema, IInputWidget, names=self.fieldNames)
  Module zope.app.form.utility, line 153, in setUpWidgets
context=context)
  Module zope.app.form.utility, line 101, in setUpWidget
widget = widget(field.bind(context), view.request)
  Module zope.app.form, line 120, in __call__
return self._create(args)
  Module zope.app.form, line 102, in _create
instance = self._widget_factory(*args)
TypeError: __init__() takes exactly 3 arguments (4 given)

 

 -Oprindelig meddelelse-
 Fra: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] På vegne af Philipp von 
 Weitershausen
 Sendt: 10. september 2006 00:28
 Til: zope3-users@zope.org
 Emne: [Zope3-Users] Re: Books example
 
 Sébastien VINOT wrote:
  Hello,
  
  I'm using both books to learn Zope3 :
  - Web component Development with Zope 3 (Philipp Von Weitershausen)
  - Zope 3 (Stephan Ritcher)
  
  I read somewhere that examples are updated somewhere on the 
 web but I 
  can't find out where (I have to admit I did not dig into 
 the second at 
  the moment). Does someone know where example are available ?
 
 There will be a second edition of my book available later 
 this year at which point I will also provide a new set of examples.
 
 Philipp
 
 ___
 Zope3-users mailing list
 Zope3-users@zope.org
 http://mail.zope.org/mailman/listinfo/zope3-users
 
 
 
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


[Zope3-Users] Upgrading from 3.2.0 to 3.2.1

2006-08-09 Thread Kim L. Jacobsen
Thanks, that was the kind of solution I was hoping for. I guess that if
you want to use this method, you need to install the products under
INSTANCE_HOME in stead of SOFTWARE_HOME.

It would be nice, if it was documented somewhere, how to upgrade from
the previous version - e.g. in the FAQ.

Regards,
Kim

-Oprindelig meddelelse-
Fra: Philipp von Weitershausen [mailto:[EMAIL PROTECTED] 
Sendt: 9. august 2006 00:31
Til: Kim L. Jacobsen
Emne: Re: Upgrading from 3.2.0 to 3.2.1



Kim L. Jacobsen wrote:
 I've been playing around with Zope 3.2.0, installed psycopgDA, 
 configured DB-connections, installed other products and made some 
 modifications in ZMI (can't quite remember all of them). Now I want to

 upgrade to 3.2.1. Do I have do start from scratch again, or is there a

 method for upgrading Zope 3.

You can have more than one Zope 3 installed, e.g. you can install Zope
3.2.1 in parallel to 3.2.0 and switch your instance over to 3.2.1 (by
editing the start scripts in $INSTANCE/bin). You can also install Zope
3.2.1 into the place where 3.2.0 was installed; your instance should
continue to work. Such a thing isn't recommended when upgrading between
major versions, though (3.2 to 3.3).

Philipp






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


[Zope3-Users] RE: Upgrading from 3.2.0 to 3.2.1

2006-08-09 Thread Kim L. Jacobsen
Originally I thought, that buying a printed book didn't make much sense
for fast changing product :-) like Zope 3. But maybe I'll go ahead do
it anyway.

Regards,
Kim
 

 Quoting Kim L. Jacobsen [EMAIL PROTECTED]:
  Thanks, that was the kind of solution I was hoping for. I 
 guess that 
  if you want to use this method, you need to install the 
 products under 
  INSTANCE_HOME in stead of SOFTWARE_HOME.
 
 Zope 3 doens't have products anymore, it just deals with 
 Python packages which can be located anywhere on the 
 PYTHONPATH. Of course, it usually makes sense to put 
 instance-specific packages into $INSTANCE/lib/python. I'm 
 pretty sure that this is documented (instance's have a 
 README.txt file; my book also suggests this).
 
 Philipp

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


[Zope3-Users] Upgrading from 3.2.0 to 3.2.1

2006-08-08 Thread Kim L. Jacobsen



Hi,

I've been playing 
around with Zope 3.2.0, installed psycopgDA, configured DB-connections, 
installed other products and made some modifications in ZMI (can't quite 
remember all of them). Now I want to upgrade to 3.2.1. Do I have do start from 
scratch again, or is there a method for upgrading Zope 3.

Thanks 
in advance
Kim

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


SV: [Zope3-Users] Getting Started Question

2006-04-24 Thread Kim L. Jacobsen
Hi Steve

I have the same problems and doubts as you, and still don't know the answer. 
But I found the SVN-repository for the book here: 
svn://svn.zope.org/repos/main/book/trunk.

Hope it helps at little.

Regards,
Kim
 

  -Oprindelig meddelelse-
  Fra: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] På vegne af Steven H. Rogers
  Sendt: 24. april 2006 06:30
  Til: zope3-users@zope.org
  Emne: Re: [Zope3-Users] Getting Started Question
  
  Thanks for the link.  I know RH9 is ancient, and there are 
  many reasons for using a newer distribution, but I have 
  reasons for not upgrading right now.
  
  I'm using Python 2.4.2 and have no problems running Zope 
  3.2.0.  One question is whether I need a newer version of 
  Subversion to use the repository. 
  Another is whether Richter's book is sufficiently current to 
  be helpful.
  
  Regards,
  Steve
  
  baiju m wrote:
   On 4/24/06, Steven H. Rogers [EMAIL PROTECTED] wrote:
   I've installed Zope 3.2 and I'm reading Stephan Richter's Zope 3
  Developer's
   Handbook.  It seems that a lot has changed since this was 
  written.  
   When I got to Zwiki installation example, it looks like the 
   Subversion repository
  has
   been reorganized.  I found Zwiki, but haven't been able to 
  check it 
   out on
  my
   Red Hat 9 system which has a rather old version of 
  Subversion (0.17).  
   Any recommendations on how to proceed?  Should I install an older 
   version of
  Zope
   3, or read the book without trying to reproduce the examples?
  
   For experimenting with Zope 3, better use to latest Fedora 
  or Ubuntu.
   Red Hat 9 is very old, I think even Python 2.3 is not available and 
   Python 2.4.2 or later is recommended for Zope 3.2
  
   Here is some quick start guides:
   http://worldcookery.com/Appetizers
  
   --
   Baiju M
  
  
  ___
  Zope3-users mailing list
  Zope3-users@zope.org
  http://mail.zope.org/mailman/listinfo/zope3-users
  
  
  
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


[Zope3-Users] Install problem with Zope 3.2.1

2006-04-07 Thread Kim L. Jacobsen



Hi,

I tried installing 
Zope 3.2.1. configure worked ok, but when ran make I got the 
following:

/usr/bin/python install.py -q buildTraceback (most recent call 
last): File "install.py", line 28, in ? 
context.initialize() File 
"/usr/src/Zope/Zope-3.2.1/Support/zpkgsetup/setup.py", line 121, in 
initialize self.scan(depname, pkgdir, reldir) 
File "/usr/src/Zope/Zope-3.2.1/Support/zpkgsetup/setup.py", line 211, in 
scan self.scan_package(name, directory, reldir) 
File "/usr/src/Zope/Zope-3.2.1/Support/zpkgsetup/setup.py", line 225, in 
scan_package pkginfo = package.loadPackageInfo(name, 
directory, reldir) File 
"/usr/src/Zope/Zope-3.2.1/Support/zpkgsetup/package.py", line 101, in 
loadPackageInfo pkginfo = read_package_info(directory, 
reldir) File "/usr/src/Zope/Zope-3.2.1/Support/zpkgsetup/package.py", 
line 166, in read_package_info data_files[:] = 
expand_globs(directory, reldir, data_files) File 
"/usr/src/Zope/Zope-3.2.1/Support/zpkgsetup/package.py", line 303, in 
expand_globs raise ValueError(ValueError: filename 
pattern '*-configure.zcml' doesn't match any filesmake: *** [build] Fejl 
1



I can configure and build Zope 3.2.0 and 
2.9.1 without any problems.

I'm using Gentoo Linux and python 
2.4.2.

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