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

2005-10-26 Thread Tom Dossis

Joshua Burvill wrote:

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/




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




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


That's it - formlib isn't included in zope 3.1.
You can get it from svn.zope.org - try the one in the current Zope3 trunk.
Add it your zope/ dir.
Don't forget to add an include for zope.formlib in your 
etc/package-includes/

___
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 Dominik Huber

Tom Dossis wrote:


Joshua Burvill wrote:


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/





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





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



That's it - formlib isn't included in zope 3.1.
You can get it from svn.zope.org - try the one in the current Zope3 
trunk.

Add it your zope/ dir.
Don't forget to add an include for zope.formlib in your 
etc/package-includes/


And it requires python 2.4 because method decoraters are used heavily.

Regards,
Dominik
begin:vcard
fn:Dominik Huber
n:Huber;Dominik
email;internet:[EMAIL PROTECTED]
tel;work:++41 56 534 77 30
x-mozilla-html:FALSE
version:2.1
end:vcard

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


[Zope3-Users] Traversing a Tuple Field

2005-10-26 Thread Johan Carlsson

Hi all,

I have a schema that defines a tuple field that holds object field
of a specific type.
Now I want to be able to traverse each object in the tuple
by using .//.

From the Zope3 book I've learn how to create a Traverser (by 
subclassing the ContainerTraverser) but my problem is that the first name

encountered is the field_name, but I can't return the tuple (or)
because it's a simple object not aware of location (that would be
fixable I guess, I've seen a LocationProxy somewhere).
Instead I return the context, which has the effect that the
Traverser gets called again (with the index), but I can't figure
out how to save the state, that the  has already been
traverser, so I'd know that the index should be look up on the field_name.

Are there anyway to know which part of the URL that has been traverse,
or to traverse ahead in the first call to the Traverser?

Any advice on this problem?

(I just realized that using a volatile attribute on the context might
work, but it just feels to darn un-zope3-ish)

--
Johan Carlsson  Tel: + 46 8 31 24 94
Colliberty  Mob: + 46 70 558 25 24
Torsgatan 72Email: [EMAIL PROTECTED]
SE-113 37 STOCKHOLM

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


Re: [Zope3-Users] Traversing a Tuple Field

2005-10-26 Thread Johan Carlsson

Johan Carlsson wrote:

Hi all,

I have a schema that defines a tuple field that holds object field
of a specific type.
Now I want to be able to traverse each object in the tuple
by using .//.

 From the Zope3 book I've learn how to create a Traverser (by 
subclassing the ContainerTraverser) but my problem is that the first name

encountered is the field_name, but I can't return the tuple (or)
because it's a simple object not aware of location (that would be
fixable I guess, I've seen a LocationProxy somewhere).
Instead I return the context, which has the effect that the
Traverser gets called again (with the index), but I can't figure
out how to save the state, that the  has already been
traverser, so I'd know that the index should be look up on the field_name.

Are there anyway to know which part of the URL that has been traverse,
or to traverse ahead in the first call to the Traverser?

Any advice on this problem?


Yes (found it, after I though of revisit the Life of a Request).

The request object uses to attribute to track the traversal
(well three actually (_last_obj_traversed too), but who's counting ;-)

request._traversal_stack, that holds the names to be traversed (reversed)
request._traversed_names, that holds the names that have been (or is 
being) traversed (current name is last).


That means I can just pop the last item in _traversal_stack and
push it on to _traversed_names, use it to locate my object in
the tuple and return it to the called :-)

--
Johan Carlsson  Tel: + 46 8 31 24 94
Colliberty  Mob: + 46 70 558 25 24
Torsgatan 72Email: [EMAIL PROTECTED]
SE-113 37 STOCKHOLM

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


Re: [Zope3-Users] which psycopg works with Zope3?

2005-10-26 Thread Dmitry Vasiliev

Brad Allen wrote:


Several of us in the Dallas area Python user group 
() are getting interested in Zope3 
development, but not all have joined the Zope3-users mailing list. Here 
is a question about Postgres and psycopg that came up on our user group 
mailing list. Any info about this would be appreciated...


At 1:59 AM -0500 10/24/05, Jeff Rush wrote:

Since you're on that list and I'm not yet, could you please ask them 
WHICH
versions of software are required to use PostgreSQL?  They say its the 
most
popular database adapter for Zope 3 so someone must have figured it 
out.  And

the DA was written by the same guy that wrote the Zope 3 book.

The actual tarball for "psycopgda" is 10 months old and doesn't install
(missing psycopgdb-configure.zcml file)


The tarball version is for use with ZopeX3-3.0.0 and psycopg v1.0


and the newer copy I checked out of
the Zope subversion repository failed with a "psycopg module doesn't 
supply a 'new_type' method".


It seems to me what you are trying to use psycopgda with psycopg v2.0. Psycopg 
v2.0 is not supported for now since it is still beta.



Remember in class we had differences between Psycopg
v1.0 and v2.0.  I'd like someone to clearly state the working set of 
versions

of stuff.

It appears the sequence is:

  psycopgdb Zope 3 database adapter (two versions of this)
=>
  psycopg Python DB-API interface to the PostgreSQL client libraries
(and at least two versions of this)


So, conclude:

- The tarball version is for use with ZopeX3-3.0.0 and psycopg v1.0;
- The svn version works with Zope 3.1 (and should work with Zope 3.2) and still 
psycopg v1.0;

- Psycopg v2.0 is not supported for now;

--
Dmitry Vasiliev (dima at hlabs.spb.ru)
http://hlabs.spb.ru
___
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 Benji York

Joshua Burvill wrote:

I am starting to work through Benji Yorks zope3 quickstart document which I
am enjoying, but I've run into one problem.


Others have correctly diagnosed your problem, but I have to ask why you 
had it to start with.  The Quick Start is very explicit about checking 
out the pre 3.2 code from Subversion; can I be more explicit, or should 
you just read more carefully? :)  Any feedback is appreciated.

--
Benji York
Senior Software Engineer
Zope Corporation
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


[Zope3-Users] catalog woes

2005-10-26 Thread Pete Taylor
Hi all,
on a fresh install of zope3.1final, and then again when running from
the latest update out of the Trunk, I end up with the following when I
attempt to register a catalog:

ComponentLookupError: (, '')

the relevant portion of the traceback is:


Module zope.tales.tales, line 695, in evaluatereturn _expression_(self)   - /home/jtaylor/zopetrunk/Zope3/src/zope/app/form/browser/add.pt   - Line 19, Column 8
   - _expression_:- Names:  {'args': (),   'context': ,   'default': ,
   'loop': {},   'nothing': None,   'options': {},   'repeat': {},   'request': 
http://localhost:8080/++etc++site/default/SiteCatalog/addRegistration.html>,   'template': ,   'usage': <
zope.pagetemplate.pagetemplate.TemplateUsage object at 0xb394e8ec>,   'view': add.pt object at 0xb394ea2c>,   'views': <
zope.app.pagetemplate.viewpagetemplatefile.ViewMapper object at 0xb3956e8c>}  Module zope.tales.expressions, line 204, in __call__return self._eval(econtext)  Module zope.tales.expressions, line 198, in _eval
return ob()  Module zope.app.form.browser.add, line 62, in updateself.createAndAdd(data)  Module zope.app.form.browser.add, line 127, in createAndAddnotify(ObjectModifiedEvent(content, description))
  Module zope.event, line 23, in notifysubscriber(event)  Module zope.app.event.dispatching, line 66, in dispatchfor ignored in subscribers(event, None):  Module zope.component, line 181, in subscribers
return sitemanager.subscribers(objects, interface)  Module zope.component.site, line 89, in subscribersreturn self.adapters.subscribers(required, provided)  Module zope.interface.adapter, line 487, in subscribers
subscribers = [subscription(*objects)  Module zope.app.catalog.catalog, line 144, in reindexDocSubscriberid = zapi.getUtility(IIntIds, context=cat).queryId(ob)  Module zope.component, line 257, in getUtility
raise ComponentLookupError(interface, name)ComponentLookupError: (, '')I saw a similar post to this on the zope3-users list in sept sometime, but I wasn't working with catalogs then, so it didn't really stick out to me.
url to the post is here.  not exactly the same issue I'm running into, but close.Thanks!Pete 


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


[Zope3-Users] Re: problems getting started under Ubuntu 5.10

2005-10-26 Thread Derrick Hudson
On Mon, Oct 17, 2005 at 10:32:24PM -0500, Brad Allen wrote:
| 
| Hi, I'm trying to get started with Zope3 under Ubuntu 5.10. 
| The package manager for Ubuntu installed Zope 3.1.0-1.
| The first problem I had was creating a Zope instance.
| Here is what happened:
| 
| 
| [EMAIL PROTECTED]:/usr/lib/zope3/bin$ ./mkzopeinstance --dir=$HOME/myzope
| --user=admin:mypwd
[...]
|   File
| "/usr/lib/python2.4/site-packages/zope/app/server/mkzopeinstance.py",
| line 111, in process
| os.chown(options.destination, uid, gid)
| OSError: [Errno 1] Operation not permitted: '/home/ballen/myzope'

Hrm.  That doesn't look good.  Usually only root can invoke 'chown'.
I wonder why it is trying to set the ownership.  When I have used the
mkzopeinstance zope itself (not from the package) it didn't try any
such thing.

| ---
| 
| Ok, so I thought maybe I need to perform the operation under sudo.
| That seemed to work, though I was a little worried because I had
| read on the mailing list that Zope3 shouldn't be started or run
| as the root user.

Correct.  While it is generally good practice not to run anything as
root, unless it absolutely has to be, running 'mkzopeinstance'
shouldn't be a large risk.

| Next, I wanted to start up the Zope instance. See transcript below:
| 
| 
| 
| [EMAIL PROTECTED]:~/myzope$ ./bin/runzope
[...]
|   File
| "/usr/lib/python2.4/site-packages/ZConfig/components/logger/loghandler.py", 
line 34, in __init__
| StreamHandler.__init__(self, open(filename, mode))
| IOError: [Errno 13] Permission denied: '/home/ballen/myzope/log/z3.log'

The zope server process needs to open the log file in append mode
(requires write access on the file).  Since mkzopeinstance set the
ownership to someone other than you, above, you can't write to the log
file.

| -
| 
| Ok, that didn't work. So, I tried starting Zope as sudo, which also
| didn't work. Here is the transcript:

Starting zope as root should work because the process will then have
access to the log file.

If you specify a user in the zope.conf file (or on the command line)
then zope will setuid() to the specified user.  This can be useful if
zope needs to bind to a socket <1024 (only root can do that) or if
zope is run from an init script.


| --
| [EMAIL PROTECTED]:~/myzope$ sudo ./bin/runzope
[...]
|   File
| "/usr/lib/python2.4/site-packages/zope/app/onlinehelp/onlinehelp.py",
| line 123, in registerHelpTopic
| raise ConfigurationError(
| zope.configuration.config.ConfigurationExecutionError:
| zope.configuration.exceptions.ConfigurationError: Help Topic
| definition /usr/lib/zope3/lib/python/zope/interface/README.txt does not
| exist
|   in:
|   File "/usr/lib/zope3/lib/python/zope/app/apidoc/bookmodule/book.zcml",
| line 11.4-16.10
|   
| 
| 
| So, I'm stuck. Any help on this would be much appreciated.

That looks like an installation (packaging) problem.  As an
intermediary workaround you could just comment out that 
tag and avoid this error.  If I were you, I'd talk to fabio and doko.
They've done a lot of work in making the packages (for ubuntu and
debian) so they'd be the primary ones to fix it.

HTH,
-D

-- 
One OS to rule them all, one OS to find them,
One OS to bring them all and in the darkness bind them,
In the Land of Redmond, where the Shadows lie.
 
www: http://dman13.dyndns.org/~dman/jabber: [EMAIL PROTECTED]


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


[Zope3-Users] make check

2005-10-26 Thread Paul Dumais
Hi all,

I have one error:

Ran 6991 tests in 333.025s

FAILED (failures=1)

when doing make check on a Zope-3.1.0 build on Ubuntu Linux. In short it is:

Failure in test testRunIgnoresParentSignals (zdaemon.tests.testzdrun.ZDaemonTest
s)
Traceback (most recent call last):
  File "/usr/lib/python2.4/unittest.py", line 260, in run
testMethod()
  File "/home/paul/Zope-3.1.0/build/lib.linux-i686-2.4/zdaemon/tests/testzdrun.p
y", line 237, in testRunIgnoresParentSignals
self.assert_(is_started, "spawned process failed to start in a minute")
  File "/usr/lib/python2.4/unittest.py", line 309, in failUnless
if not expr: raise self.failureException, msg
AssertionError: spawned process failed to start in a minute

Is this serious? How could I get this test to pass?

Thanks,

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


[Zope3-Users] Re: Zwiki issues with Unicode text pasted from Word

2005-10-26 Thread Derrick Hudson
I experienced this problem too.  I thought I fixed or worked around it
a while ago, though.  I may have just hacked my system.

Some notes about this:
- it is the output (view) that produces the error
- add and edit work fine
- Word has nothing to do with the problem (any source of non-ascii
data will have the same effect)
- I don't remember if the problem is in zwiki or docutils

Hmm, now that I think about it, the problem might be fixed in a newer
version of docutils.  I'll make a note to revisit this when I have
a few minutes.  If you don't want to wait, you might search the
zope3-dev list and the Collector to see if I mentioned it there.

HTH,
-D


On Tue, Oct 04, 2005 at 09:32:58AM -0400, Joel Moxley wrote:
| Thank you Duncan and Gary for your informative replies yesterday.  I'm
| working on understanding and implementing your input.
| 
| In the meantime, I'm having an issue with my zwiki.  I checked on
| google, and I do not find this as a known issue.  I have not had time
| to extensively document the behavior, but I can report the following:
| 
| My zwiki page bombed (System Error) when a user copied and pasted a
| paragraph from Microsoft Word into the edit form of the wiki page. 
| After some quick debugging, I found two unicode characters to be the
| problem:
| 
| Unicode characters 2103 and 2019 ("right single quotation mark" and
| "en dash", respectively).
| 
| Thus, whenever we have apostrophes and dashes in Word, they will kill
| the wiki page when copied in the edit form.  Which is suboptimal :)
| 
| I pasted the traceback here:
| http://paste.plone.org/289
| 
| which culminates in "UnicodeEncodeError: 'ascii' codec can't encode
| character u'\u2013' in
| position 4104: ordinal not in range(128)"
| 
| Clearly, the wiki just does not know how to encode these characters. 
| Anyways, a workaround or fix would be very nice because one of the
| main reason I wanted the wiki was to not have to deal with revisions
| in Word.
| 
| Thanks,
| Joel
| 
| PS: This is zope-3.1final and zwiki-3.0.0

-- 
\begin{humor}
Disclaimer:
If I receive a message from you, you are agreeing that:
   1. I am by definition, "the intended recipient"
   2. All information in the email is mine to do with as I see fit and make
such financial profit, political mileage, or good joke as it lends
itself to. In particular, I may quote it on USENET or the WWW.
   3. I may take the contents as representing the views of your company.
   4. This overrides any disclaimer or statement of confidentiality that may
be included on your message
\end{humor}
 
www: http://dman13.dyndns.org/~dman/jabber: [EMAIL PROTECTED]


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


Re: [Zope3-Users] catalog woes

2005-10-26 Thread Tom Dossis

Pete Taylor wrote:

Hi all, on a fresh install of zope3.1final, and then again when
running from the latest update out of the Trunk, I end up with the
following when I attempt to register a catalog:

ComponentLookupError: (zope.app.intid.interfaces.IIntIds>, '')


I saw a similar post to this on the zope3-users list in sept
sometime, but I wasn't working with catalogs then, so it didn't
really stick out to me.

url to the post is here
.
not exactly the same issue I'm running into, but close.

Hi Pete,
That's my posting. The catalog depends on an unnamed IntId utility.
You first need to add and register (no name) a Unique Id utility in your 
++etc++site/default site management folder.
Then add your catalog(s) using the Site Management page. These end up in 
your ++etc++site/tools sm folder.
If you need to do this programmatically I can send some code snippets 
based on the the response on my original posting (by Gary Poster).

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


Re: [Zope3-Users] make check

2005-10-26 Thread Jim Fulton

Paul Dumais wrote:

Hi all,

I have one error:

Ran 6991 tests in 333.025s

FAILED (failures=1)

when doing make check on a Zope-3.1.0 build on Ubuntu Linux. In short it is:

Failure in test testRunIgnoresParentSignals (zdaemon.tests.testzdrun.ZDaemonTest
s)
Traceback (most recent call last):
  File "/usr/lib/python2.4/unittest.py", line 260, in run
testMethod()
  File "/home/paul/Zope-3.1.0/build/lib.linux-i686-2.4/zdaemon/tests/testzdrun.p
y", line 237, in testRunIgnoresParentSignals
self.assert_(is_started, "spawned process failed to start in a minute")
  File "/usr/lib/python2.4/unittest.py", line 309, in failUnless
if not expr: raise self.failureException, msg
AssertionError: spawned process failed to start in a minute

Is this serious? How could I get this test to pass?


Don't run the tests as root.

Jim

--
Jim Fulton   mailto:[EMAIL PROTECTED]   Python Powered!
CTO  (540) 361-1714http://www.python.org
Zope Corporation http://www.zope.com   http://www.zope.org
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] make check

2005-10-26 Thread Stephan Richter
On Wednesday 26 October 2005 16:26, Jim Fulton wrote:
> > AssertionError: spawned process failed to start in a minute
> >
> > Is this serious? How could I get this test to pass?
>
> Don't run the tests as root.

I see this error sporatically using a non-root user as well. I just never 
worry about it. :-)

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] catalog woes

2005-10-26 Thread Pete Taylor
Tom,
thank you sir!  I'll get on that immediately.On 10/26/05, Tom Dossis <[EMAIL PROTECTED]> wrote:
Pete Taylor wrote:> Hi all, on a fresh install of zope3.1final, and then again when> running from the latest update out of the Trunk, I end up with the> following when I attempt to register a catalog:
>> ComponentLookupError: (> zope.app.intid.interfaces.IIntIds>, '')>> I saw a similar post to this on the zope3-users list in sept> sometime, but I wasn't working with catalogs then, so it didn't
> really stick out to me.>> url to the post is here> .> not exactly the same issue I'm running into, but close.Hi Pete,That's my posting. The catalog depends on an unnamed IntId utility.You first need to add and register (no name) a Unique Id utility in your
++etc++site/default site management folder.Then add your catalog(s) using the Site Management page. These end up inyour ++etc++site/tools sm folder.If you need to do this programmatically I can send some code snippets
based on the the response on my original posting (by Gary Poster).-Tom
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] make check

2005-10-26 Thread Jim Fulton

Stephan Richter wrote:

On Wednesday 26 October 2005 16:26, Jim Fulton wrote:


AssertionError: spawned process failed to start in a minute

Is this serious? How could I get this test to pass?


Don't run the tests as root.



I see this error sporatically using a non-root user as well. I just never 
worry about it. :-)


Right.  This is not what I thought it was.

This is something that I diagnosed and thought I fixed
a few weeks ago.

I'll look at it.

Jim

--
Jim Fulton   mailto:[EMAIL PROTECTED]   Python Powered!
CTO  (540) 361-1714http://www.python.org
Zope Corporation http://www.zope.com   http://www.zope.org
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] make check

2005-10-26 Thread Jim Fulton

Jim Fulton wrote:

Stephan Richter wrote:


On Wednesday 26 October 2005 16:26, Jim Fulton wrote:


AssertionError: spawned process failed to start in a minute

Is this serious? How could I get this test to pass?



Don't run the tests as root.




I see this error sporatically using a non-root user as well. I just 
never worry about it. :-)



Right.  This is not what I thought it was.

This is something that I diagnosed and thought I fixed
a few weeks ago.

I'll look at it.


OK, Tim helped me remember what was going on with this.

I predict you can make this test pass by setting the execute bit on
the script donothing.sh in zdaemon/tests in the installation.
This test is trying to execute this script and can't because the
execute bits got cleared in the release process.

The test really should be rewritten to write the shell script itself
and set the permissions to whatever it wants.

Jim

--
Jim Fulton   mailto:[EMAIL PROTECTED]   Python Powered!
CTO  (540) 361-1714http://www.python.org
Zope Corporation http://www.zope.com   http://www.zope.org
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


[Zope3-Users] apache

2005-10-26 Thread Pete Taylor
twice in a day...  i'm on some kind of roll ;)

put zope3.1 behind apache for the first time, and i'm running into
some behavior i didn't expect.  nothing configured as a
browser:resource is coming through.  not zope's own css, js, or
images, not my own application's css and images...  the html generated
by the view on the content object comes through, but nothing else.  i
suspect it has to do with traversal, just because of the following
exception (plus the top info, just to show it's zope's own stuff as
well as mine):


Time
Wed Oct 26 17:16:20 2005
User
admin, zope.manager, Manager,
Request URL
http://localhost/agency_application/@@/zope3_tablelayout.css
Exception Type
ForbiddenAttribute
Exception Value
('publishTraverse', )
TracebackTraceback (innermost last):
  Module zope.publisher.publish, line 135, in publish
 object = request.traverse(object)
  Module zope.publisher.browser, line 501, in traverse
 ob = super(BrowserRequest, self).traverse(object)
  Module zope.publisher.http, line 386, in traverse
 ob = super(HTTPRequest, self).traverse(object)
  Module zope.publisher.base, line 271, in traverse
 subobject = publication.traverseName(
  Module zope.app.publication.publicationtraverse, line 56, in traverseName
 ob2 = ob.publishTraverse(request, nm)
ForbiddenAttribute: ('publishTraverse',
)

my httpd.conf virtual host directive is this:


ServerAdmin [EMAIL PROTECTED]
ErrorLog logs/fcwkstn.thig.com-error_log
CustomLog logs/fcwkstn.thig.com-access_log common
RewriteEngine On
RewriteRule ^/agency_application(/?.*) \
http://localhost:8080/agency_application/++vh++http:localhost:80/agency_application/++$1
\
[P,L]


can anyone see something I'm doing wrong, or has seen similar behavior maybe?
thanks as always,
Pete
___
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] Re: Zwiki issues with Unicode text pasted from Word

2005-10-26 Thread Derrick Hudson
On Wed, Oct 26, 2005 at 02:54:27PM -0400, Derrick Hudson wrote:
| I experienced this problem too.  I thought I fixed or worked around it
| a while ago, though.  I may have just hacked my system.
| 
| Some notes about this:
| - it is the output (view) that produces the error
| - add and edit work fine
| - Word has nothing to do with the problem (any source of non-ascii
| data will have the same effect)
| - I don't remember if the problem is in zwiki or docutils
| 
| Hmm, now that I think about it, the problem might be fixed in a newer
| version of docutils.  I'll make a note to revisit this when I have
| a few minutes.  If you don't want to wait, you might search the
| zope3-dev list and the Collector to see if I mentioned it there.

Ok, here are the facts that I dug up:

- my installation still has the problem;  I am ignoring it for now
  because it's not immediately critical, I don't want to replace
  the unicode with ascii, and the problem will be fixed "later"

- my installation is still on Zope 3.0.0

- Zope includes docutils, which performs the actual ReST->HTML
  transformation
  Zope 3.0.0 has :
# Revision: $Revision: 1.1 $
# Date: $Date: 2003/07/30 20:14:04 $
  Zope 3.1.0 has :
# Revision: $Revision: 3374 $
# Date: $Date: 2005-05-26 23:21:48

With this information to refresh my memory, I think I decided to look
into and resolve this issue a while ago.  In doing so I discovered
that the new(er) zwiki+docutils in the trunk (at the time) already
worked.  At least, that's what I remember now.  I can't find any
mention of this in the zope3-dev archives.

I just tried two new tests -- I used my Zope 3.1.0 installation and
tried it with both the older zwiki that is in my current instance and
the current version on the trunk.  Both versions fail, but with
different errors.  The older version fails with encoding/decoding
errors.  Just for fun I replaced 'html = str(source)' on line 120 of
zwiki/browser/wikipage.py with 'html = source'.  Doing this causes the
unicode character to display fine for me (using firefox on ubuntu
which is set to expect UTF-8).  The trunk version fails with a
traversalerror.  

My immediate recommendation for you is
1)  file a bug report in the collector
2)  replace 'html = str(source)' on line 120 of
zwiki/browser/wikipage.py with 'html = source' and see if that
works for you.

HTH,
-D

-- 
Commit to the Lord whatever you do,
and your plans will succeed.
Proverbs 16:3
 
www: http://dman13.dyndns.org/~dman/jabber: [EMAIL PROTECTED]


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


Re: [Zope3-Users] make check

2005-10-26 Thread Paul Dumais
Sent this using the wrong  account:

On 10/26/05, Paul Dumais <[EMAIL PROTECTED]> wrote:
> Hi Jim,
>
> The execute bit seems OK:
>
> -rwxr-xr-x  1 root root59 2005-10-02 12:48 donothing.sh
>
> I get more errors if I run as root (the above one included). Ubuntu
> does something tricky to the root account so that you cannot su root.
> You have to sudo 'command' to do root tasks. I suspect this difference
> is why I get more errors when I do sudo make check.
>
> Since I am running make check as a user on the system, I though I
> would try chown 'user' donothing.sh. Doing this gives the same error
> when I run 'make check'.
>
> I guess this begs the question: should I be looking to chown 'user' a
> bunch of files and directories (since I plan to run everything as a
> user)? Should I be looking to get rid of the su  root lockout feature
> of Ubuntu? Hopefully none of this should be necessary since my 'user'
> is a superuser.
>
> I guess this is not a major problem, since Steve is safely ignoring
> the error. Thanks for the quick replies! I read some posts from August
> that mentioned that it may just be an issue of a slower machine (my
> machine has a few other processes running on it). Increasing the error
> threshold to something higher may be what's needed?
>
> Paul
>
>
> On 10/26/05, Jim Fulton <[EMAIL PROTECTED]> wrote:
> > Jim Fulton wrote:
> > > Stephan Richter wrote:
> > >
> > >> On Wednesday 26 October 2005 16:26, Jim Fulton wrote:
> > >>
> >  AssertionError: spawned process failed to start in a minute
> > 
> >  Is this serious? How could I get this test to pass?
> > >>>
> > >>>
> > >>> Don't run the tests as root.
> > >>
> > >>
> > >>
> > >> I see this error sporatically using a non-root user as well. I just
> > >> never worry about it. :-)
> > >
> > >
> > > Right.  This is not what I thought it was.
> > >
> > > This is something that I diagnosed and thought I fixed
> > > a few weeks ago.
> > >
> > > I'll look at it.
> >
> > OK, Tim helped me remember what was going on with this.
> >
> > I predict you can make this test pass by setting the execute bit on
> > the script donothing.sh in zdaemon/tests in the installation.
> > This test is trying to execute this script and can't because the
> > execute bits got cleared in the release process.
> >
> > The test really should be rewritten to write the shell script itself
> > and set the permissions to whatever it wants.
> >
> > Jim
> >
> > --
> > Jim Fulton   mailto:[EMAIL PROTECTED]   Python Powered!
> > CTO  (540) 361-1714http://www.python.org
> > Zope Corporation http://www.zope.com   http://www.zope.org
> >
>
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Windows binary psycopgda-1.0.0.tgz

2005-10-26 Thread Bobby Brewster
Thanks for your help so far.
However I am still not able to get it working.
 
I am trying again with the latest files (zope 3.1 final and psycopgda1.0.0)
 
I installed Python24 to
C:\PyZope\Python24
 
Zope 3.1 installed itself to
C:\PyZope\Python24
 
And I created a Zope Home Instance at
 
C:\PyZope\ZopeHome
 
I could NOT find "package-includes" so I created it at C:\PyZope\ZopeHome\packages-includes and copied psycopg-configure.zcml into it.
 
Also I copied: psycopgda 
to  C:\PyZope\ZopeHome\lib\python\psycopgda
 
RESTARTED ZOPE
 
But still could not see anything like database adapters in Z3 "Add" list.
 
What am I doing wrong?
Any help would be much appreciated
Zopehead,
 
 
On 10/11/05, Stéphane Brunet <[EMAIL PROTECTED]> wrote:
Hi,From the readme.txt which is in the psycopgda subdirectory, I can read :Installing PsycopgDA
1. Check out the psycopgda package into a directory in your  PYTHONPATH.  INSTANCE_HOME/lib/python or Zope3/src is usually the  most convenient place:  svn co 
svn://svn.zope.org/repos/main/psycopgda/trunk psycopgda2. Copy `psycopg-configure.zcml` to the `package-includes` directory  of your Zope instance.--However you don't have to checkout the SVN as you already have the files.
So there seem no need to use the configure script at all.There is also a setup.py script in the distribution archive. Perhaps a"python.exe setup.py --install should also work ?Regards,
StéphaneBobby Brewster wrote:> Hey all,>> Can anyone explain to me how to get> psycopgda-1.0.0.tgz (26 K)> <
http://www.zope.org/Products/Zope3-Packages/psycopgda/1.0.0/psycopgda-1.0.0.tgz> to> work in Win32?>> I believe it wants me to do a compile (/.configure)>> Any help would be much appreciated.
>> Thank you>> Shapehead>___Zope3-users mailing listZope3-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