[Zope] Using ReStructuredText instead of StructuredDocument inside ZPT

2006-02-23 Thread John Schinnerer
Hello,

I have been using the Structured Document (SD) product with page
templates (to provide some content sections that a client can edit
using structured text).

Now I would like to use ReStructuredText Document (RSTD) instead of SD.

I have been using code like this in a page template to render the
content of a SD within the page template:

...



Vision Statement


 
...

...where vision_statement is a SD object.

I expected that this would work the same if vision_statement were a
RSTD object...however it does not.  
What displays is only the unrendered, plain text content of the RSTD.

Can I use a RSTD object in the same way I have been using a SD?

If so, how do I get it to render?

This is on zope 2.7.5 with the ZReST that comes "built in."
A RSTD called directly (instead of inside a ZPT as above) renders as
expected.

thanks,
John S.




__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Zope scheduling problem

2006-02-23 Thread Nicholas Watmough

Thanks for that. It worked perfectly.

Out of interest, why am I unable to access the method from with my Zope 
python code? What is a private object, and why is it private?


Thanks,

Nick

Martijn Pieters wrote:

On 2/19/06, Nicholas Watmough <[EMAIL PROTECTED]> wrote:
  

I tried using unrestrictedSearchResults and got a security permission
error, saying I didn't have permission to access
unrestrictedSearchResults().

When I turned on verbose security, I got the following error:

Unauthorized: The object is marked as private. Access to
'unrestrictedSearchResults' of (CatalogTool at
/DCARF/project_file_system/portal_catalog) denied.

How do I change the permissions so I can access this method?



You can't, but you can access the method from unrestricted code.
Unrestricted code is any python code not stored in a Python Script or
a Pagetemplate object. An External Method or a code part of a Zope
Product would do the trick.

--
Martijn Pieters


  

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: [Zope3-dev] The Zope Software Certification Program and Common Repository Proposal

2006-02-23 Thread Stephan Richter
On Thursday 23 February 2006 20:29, Jim Fulton wrote:
> This is quite a document and vision.  I hope we can pull something
> like it off.  (Like many, I recognize the daunting size of the task.)

I have already working parsers and writers for all file formats. I have also a 
preliminary (but tested) implementation of registering, managing, 
unregistering a package in the repository with the ZSCP.

Kamal Gill has agreed to do some initial artwork for the site, which should be 
done mid-March.

We will see how it proceeds. Roger suggested to maybe even do some of the work 
during the Swiss Eastern Spring.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope3-Users] Re: [Zope] Debugging doctests

2006-02-23 Thread Chris McDonough

On Feb 23, 2006, at 4:51 PM, Stephan Richter wrote:
So, I take it that you are a second voter in favor of not requiring  
all tests

to be doctests.


If the ZSCP thing takes off, I think test/doc req'ts should be  
somewhat looser than mandating a particular test/doc framework  
(something along the lines of "must have good test coverage and  
appropriate narrative documentation", maybe with examples of what  
this means that could be in doctest format by default).  Would that  
be acceptable?


- C

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope3-Users] Re: [Zope] Debugging doctests

2006-02-23 Thread Stephan Richter
On Thursday 23 February 2006 14:16, Chris McDonough wrote:
>  (e.g. high-
> level overview of purpose, how to install it, what other packages it  
> depends upon, which versions of Python/Zope it works with, who is  
> responsible for maintaining the package, where to report bugs, and so  
> on).  I suppose this is really a packaging issue, but it would be  
> nice if more packages in the  zope namespace package were treated as  
> "islands" like this that could be installed separately from Zope  
> proper.

The ZSCP tries to exactly capture this information and provide it via its 
site.

So, I take it that you are a second voter in favor of not requiring all tests 
to be doctests.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope3-Users] Re: [Zope] Debugging doctests

2006-02-23 Thread Stephan Richter
On Thursday 23 February 2006 13:37, Lennart Regebro wrote:
> Not to mention, doctests are not debuggable from WingIDE.

Maybe we should have a WingIDE sprint in Boston at some point. This would be a 
good topic.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Packing data.fs programmatically

2006-02-23 Thread Ron Bickers
On Tue January 31 2006 07:47, Chris Withers wrote:

> > I do it though the webinterface with a wget from the crontab:

> Oh, ouch ouch bad fragile pain failure suffering...
>
> URL whacking is evil and must be punished...

How is this different than clicking on the Pack button in the ZMI?  What's 
the solution without ZEO and without having to stop Zope?

-- 
Ron
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope3-Users] Re: [Zope] Debugging doctests

2006-02-23 Thread Chris McDonough

On Feb 23, 2006, at 1:57 PM, Benji York wrote:

> But it's of course a judgment call.

Perhaps this is just one of those to-each-his-own things.
My own are doctests. ;)


Sure.  I actually really appreciate reading good doctests, they help  
a lot, and they beat not having any docs at all any day!


A non-sequitur:  For truly standalone packages, I suspect that people  
expect some form of non-executable narrative documentation to be  
included that ties the continued use of the package together with its  
implementation.  In my experience, it's easy to get lured into  
thinking that you've documented a package properly because it has  
doctests and interface documentation, when in reality it probably  
needs some other form of documentation beyond the doctests (e.g. high- 
level overview of purpose, how to install it, what other packages it  
depends upon, which versions of Python/Zope it works with, who is  
responsible for maintaining the package, where to report bugs, and so  
on).  I suppose this is really a packaging issue, but it would be  
nice if more packages in the  zope namespace package were treated as  
"islands" like this that could be installed separately from Zope  
proper.  It would also likely help prevent inappropriate dependencies  
from creeping in.  Zope 2 wasn't born a mess of spaghetti  
dependencies, they just sort of grew like weeds over time.


- C

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope3-Users] Re: [Zope] Debugging doctests

2006-02-23 Thread Chris McDonough

On Feb 23, 2006, at 1:17 PM, Benji York wrote:


Chris McDonough wrote:
I dunno about sucking because they are quite good for  
documentation,  but I tend to write plain-old unittests instead of  
doctests when I'm  testing without any pretense towards writing  
documentation.  If you  test internals of a class in a doctest,  
the doctest body gets pretty  cluttered, which tends to defeat the  
documentation-esque-ness of them.


Are you talking about doctests in docstrings?  If so, I definitely  
see downsides to that use case.  I was talking about doctests in  
stand-alone text files.  That's my (and several others) preferred  
way of using them.


Either.



If you /were/ talking about stand-alone doctests, then I have no  
idea what you're talking about. :)


It's just opinion, but for example, I don't think zope/wfmc/xpdl.txt  
reads much better as a doctest than it would as a plain old  
unittest.  But it's of course a judgment call.


- C

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope3-Users] Re: [Zope] Debugging doctests

2006-02-23 Thread Lennart Regebro
On 2/23/06, Chris McDonough <[EMAIL PROTECTED]> wrote:
> I dunno about sucking because they are quite good for documentation,

Oh, absolutely.

> but I tend to write plain-old unittests instead of doctests when I'm
> testing without any pretense towards writing documentation.

Exactly my sentiments.

> Being able to set a breakpoint in the test body is important for me
> too.  I probably could be setting breakpoints once I'm in the
> debugger

Well, how do you set a breakpoint in something which has no py-file
and line, but is in a text-document or string? :-)

Not to mention, doctests are not debuggable from WingIDE. ;-)

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope3-Users] Re: [Zope] Debugging doctests

2006-02-23 Thread Chris McDonough
I dunno about sucking because they are quite good for documentation,  
but I tend to write plain-old unittests instead of doctests when I'm  
testing without any pretense towards writing documentation.  If you  
test internals of a class in a doctest, the doctest body gets pretty  
cluttered, which tends to defeat the documentation-esque-ness of them.


Being able to set a breakpoint in the test body is important for me  
too.  I probably could be setting breakpoints once I'm in the  
debugger, but it's often easier to just stuff in a pdb.set_trace()  
before the line of code that I want to examine.   And putting a set  
trace in a unittest is a natural thing to do, because you know the  
set trace will only get invoked once during a test run (as opposed to  
putting it right in the app code, where it might get invoked "by  
accident" through a different test).  Setting breakpoints in unittest- 
tests is typically more fruitful than putting them in doctest-tests  
for the reasons that have been talked about in this thread.


- C

On Feb 23, 2006, at 11:27 AM, Lennart Regebro wrote:


On 2/23/06, Gary Poster <[EMAIL PROTECTED]> wrote:

You effectively can't step through all the tests (with a single
pdb).  You can step through a single line in the test well.  While it
sounds limiting, that has proved quite sufficient for me in
practice.  YMMV, of course.


Sigh. doctests really do suck.

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )



___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: Packing data.fs programmatically

2006-02-23 Thread Paul Winkler
On Thu, Feb 23, 2006 at 11:27:59AM -0500, Derrick Hudson wrote:
> Does 'zopectl run' require exclusive access to the database?  (IOW
> must the zope server be stopped before zopectl run can be used?)

Yes, IFF you are not running zeo.

That's another useful reason to use zeo :-)
 
> I just came across this thread and have a situation where this would
> be useful, however ZEO is not used for that deployment.

Ah, that's a shame.

-- 

Paul Winkler
http://www.slinkp.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Packing data.fs programmatically

2006-02-23 Thread Derrick Hudson
Chris,

On Tue, Jan 31, 2006 at 01:36:36PM +, Chris Withers wrote:
| ZEO & Stepper

Is ZEO required to use Stepper?

| Or if you don't like Stepper, then zopectl run...

Does 'zopectl run' require exclusive access to the database?  (IOW
must the zope server be stopped before zopectl run can be used?)


I just came across this thread and have a situation where this would
be useful, however ZEO is not used for that deployment.

-D

-- 
The fear of the Lord leads to life:
Then one rests content, untouched by trouble.
Proverbs 19:23
 
www: http://dman13.dyndns.org/~dman/jabber: [EMAIL PROTECTED]


signature.asc
Description: Digital signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope3-Users] Re: [Zope] Debugging doctests

2006-02-23 Thread Lennart Regebro
On 2/23/06, Gary Poster <[EMAIL PROTECTED]> wrote:
> You effectively can't step through all the tests (with a single
> pdb).  You can step through a single line in the test well.  While it
> sounds limiting, that has proved quite sufficient for me in
> practice.  YMMV, of course.

Sigh. doctests really do suck.

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] RESOLUTION: Can Zope 2.9 Coexist With Zope 2.6 Using Different Ports?

2006-02-23 Thread Mark, Jonathan (Integic)
Title: RESOLUTION: Can Zope 2.9 Coexist With Zope 2.6 Using Different Ports?






Thanks for the help everyone. I needed to make the $Instance/var and $Instance/log directories readable and writable to the user that Zope 2.9 ran as. Once I did that the problem went away.


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Python equivalent to Javascript "escape/unescape"

2006-02-23 Thread Dan Fairs
On 2/23/06, Brian Sullivan <[EMAIL PROTECTED]> wrote:
> I was assuming that it would somehow be easy to do the equivalent to
> Javascript "escape/unescape" functions in a Python script but for some
> reason I just can't find out how to do it.

from Products.PythonScripts.standard import url_quote, url_quote_plus

That what you need?

Cheers,
Dan

--
Dan Fairs <[EMAIL PROTECTED]>
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Python equivalent to Javascript "escape/unescape"

2006-02-23 Thread Brian Sullivan
>
> >I was assuming that it would somehow be easy to do the equivalent to
> > Javascript "escape/unescape" functions in a Python script but for some
> > reason I just can't find out how to do it.
> >
> > Maybe I can't see the forest for the trees. Anybody out there have a
> > cluestick to whack me with?
>
> Try googling:urllib.urlencode
>
> It should get you going in the right direction
>


Hmm-- seems to have the stuff I want but also seems not accessible
from a Zope Python script :-(
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Python equivalent to Javascript "escape/unescape"

2006-02-23 Thread Jonathan
- Original Message - 
From: "Brian Sullivan" <[EMAIL PROTECTED]>

To: "zope list user" 
Sent: Thursday, February 23, 2006 10:45 AM
Subject: [Zope] Python equivalent to Javascript "escape/unescape"



I was assuming that it would somehow be easy to do the equivalent to
Javascript "escape/unescape" functions in a Python script but for some
reason I just can't find out how to do it.

Maybe I can't see the forest for the trees. Anybody out there have a
cluestick to whack me with?


Try googling:urllib.urlencode

It should get you going in the right direction


Jonathan
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Python equivalent to Javascript "escape/unescape"

2006-02-23 Thread Brian Sullivan
I was assuming that it would somehow be easy to do the equivalent to
Javascript "escape/unescape" functions in a Python script but for some
reason I just can't find out how to do it.

Maybe I can't see the forest for the trees. Anybody out there have a
cluestick to whack me with?
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Debugging doctests

2006-02-23 Thread Stephan Richter
On Thursday 23 February 2006 08:13, Lennart Regebro wrote:
> As you see, I can't even step into that next line. And even if I
> could, the necessity of having to step through the doctestrunning
> would be a major pain in the ass.

Ok, I have never needed this. And I can see why it does not work. Every 
doctest line is its own expression. I personally can live with that 
limitation. As I said, I have never needed this.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Debugging doctests

2006-02-23 Thread Lennart Regebro
On 2/23/06, Stephan Richter <[EMAIL PROTECTED]> wrote:
> How do you want to use the debugger?

I'd like to be able to step through the tests.

> I run the tests, if the set_trace()
> occurs it throws me to the prompt and all is fine. I can use the debugger as
> usual.

When I do this, I get a prompt. Pressing next returns to the running
of the tests, not the next line of the test. Here is an example:

  >>> import pdb;pdb.set_trace()
  >>> gsm = zope.component.getGlobalSiteManager()
  >>> gsm.provideUtility(I1, ob)
  >>> gsm.provideUtility(I11, ob11)

When I run this, my debuggning session looks like this:

$ bin/zopetest --dir zope/component
Running unit tests:
--Return--
> /opt/Zope-3.2.0/lib/python/zope/testing/doctest.py(351)set_trace()->None
-> pdb.Pdb.set_trace(self)
(Pdb) s
--Return--
>  zope.component.tests.test_getAllUtilitiesRegisteredFor[4]>(1)?()->None
-> import pdb;pdb.set_trace()
(Pdb) s
> /opt/Zope-3.2.0/lib/python/zope/testing/doctest.py(1257)__run()
-> self.debugger.set_continue() #  Example Finished 
(Pdb) s
--Call--
> /opt/Zope-3.2.0/lib/python/zope/testing/doctest.py(353)set_continue()
-> def set_continue(self):
(Pdb) s
> /opt/Zope-3.2.0/lib/python/zope/testing/doctest.py(356)set_continue()
-> if self.__debugger_used:
(Pdb) s
> /opt/Zope-3.2.0/lib/python/zope/testing/doctest.py(357)set_continue()
-> pdb.Pdb.set_continue(self)
(Pdb) s
--Call--
> /usr/lib/python2.4/bdb.py(196)set_continue()
-> def set_continue(self):
(Pdb) s
> /usr/lib/python2.4/bdb.py(198)set_continue()
-> self.stopframe = self.botframe
(Pdb) s

As you see, I can't even step into that next line. And even if I
could, the necessity of having to step through the doctestrunning
would be a major pain in the ass.

Here is a non-doctest exampe as comparison. This is what I want:

import pdb;pdb.set_trace()
sm = zapi.getSiteManager()
sm.registerUtility(IDummyUtility, dummy1)
sm.registerUtility(IDummyUtility, dummy2)

-> sm = zapi.getSiteManager()
(Pdb) n
>/home/zopes/cps34/Products/Five/site/tests/test_utility.py(209)test_registeringTwiceIsConflict()
-> sm.registerUtility(IDummyUtility, dummy1)
(Pdb) n
>/home/zopes/cps34/Products/Five/site/tests/test_utility.py(210)test_registeringTwiceIsConflict()
-> sm.registerUtility(IDummyUtility, dummy2)
(Pdb) s
--Call--
> /home/zopes/cps34/Products/Five/site/localsite.py(147)registerUtility()
-> def registerUtility(self, interface, utility, name=''):
(Pdb)

I can't seem to be able to do this.

> There used to be an issue with the debugger not displaying anything, since
> doctests mess with stdout and that has been fixed. This is what Benji and I
> were talking about.

Oh.

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Debugging doctests

2006-02-23 Thread Stephan Richter
On Thursday 23 February 2006 06:53, Lennart Regebro wrote:
> Ah, not in Zope 2.9 it seems. Is this expected, or an I doing something
> wrong? I'm running the Five tests with bin/zopectl test --dir Products/Five
> as usual, and having a set_trace() in the doctests behaves exactly as with
> the old test runner, where you have to debug though the doctest running as
> well, which makes it pretty useless...

How do you want to use the debugger? I run the tests, if the set_trace() 
occurs it throws me to the prompt and all is fine. I can use the debugger as 
usual.

There used to be an issue with the debugger not displaying anything, since 
doctests mess with stdout and that has been fixed. This is what Benji and I 
were talking about.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Can Zope 2.9 Coexist With Zope 2.6 Using Different Ports?

2006-02-23 Thread Thomas Bennett
I'm running Zope 2.8.1-final, python 2.3.5, linux2 and  Zope 2.6.1 python 
2.1.3, linux2 on the same server so I don't see why you cant' also run Zope 
2.9.  More than likely each of your configurations have the same path to the 
lock file.  Edit zopefolder/etc/zope.conf where zopefolder is the name of you 
Zope instance.  Or you need to grant permissions for the user that Zope runs 
as to modify that file or change owner.  See 'man chmod' and 'man chown'. 

from zope.conf

# Directive: lock-filename
#
# Description:
# The path to a "lock file" which will be locked by Zope while it's
# running.  This file is used by zopectl.py to determine if Zope is
# currently running.  This defaults to CLIENT_HOME/Z2.lock.
#
# Default: CLIENT_HOME/Z2.lock
#
# Example:
#
#lock-filename /home/chrism/projects/sessions/var/Z2.lock

Thomas


On Wednesday 22 February 2006 12:59, Mark, Jonathan (Integic) wrote:
> My website GoodbyeJim.com currently runs Zope 2.6 on Red Hat 7.3. I have
> installed Zope 2.9 to use port 3200 instead of 80.
>
> Does Zope 2 support running two separate instances of two versions of Zope
> on different ports? I have been able to run Zope 3 concurrently with Zope
> 2.6 without problem.
>
> When I run bin/runzope in my Zope 2.9 home directory I get the following
> error on lock_file.py line 60:
>
> IOError: [Errno 13] Permission denied: '.../Data.fs.lock'

-- 

Thomas McMillan Grant Bennett   Appalachian State University
Computer Consultant III P O Box
University Library  Boone, North Carolina 28608

Please use the Systems Help Desk at http://linux.library.appstate.edu/help
All in Systems receive an email with each submission.

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Debugging doctests

2006-02-23 Thread Lennart Regebro
On 2/21/06, Stephan Richter <[EMAIL PROTECTED]> wrote:
> On Tuesday 21 February 2006 12:14, Lennart Regebro wrote:
> > (btw, through all this, I assume that Jims fix for the doctest
> > debugging problem that he mentioned did work, and that you now can
> > insert an import pdb;pdb.set_trace() in the middle of the doctests.
> > Right?)
>
> This has been fixed since ages. :-)

Ah, not in Zope 2.9 it seems. Is this expected, or an I doing something wrong?
I'm running the Five tests with bin/zopectl test --dir Products/Five
as usual, and having a set_trace() in the doctests behaves exactly as
with the old test runner, where you have to debug though the doctest
running as well, which makes it pretty useless...

Hang on, I just tried it with Zope 3.2 too, and it didn't work either.
What am I doing wrong?

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: CMFExternalFile and huge ZODB pickles

2006-02-23 Thread Pawel Lewicki

Chris Withers napisał(a):

Pawel Lewicki wrote:

Any clues?
Products used:
- ExternalFile 1.2.0
- CMFExternalFile 0.5
- Plone 2.0.5


None of these are products I'd trust. Use a ZODB analysis tool to find 
out the types of objects you have in your database and see which product 
is causing the issues..


Thanx a lot!!
I hope you got my mail yesterday. I posted it to group too, but I don't 
see it here :(


Analyze.py gives me that result. I wonder if it's caused by bug in any 
of the products or script?


Class Name   CountTBytesPct AvgSize
-- --- -  - ---
...
OFS.Folder.Folder 2731 7177565156  95.4% 2628182.04

The only reference to folder I have is: 
folder.manage_addProduct['ExternalFile'].addExternalFile(filename, '', 		 
'',filepath, '',file)


Pawel

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] image processing site quidance...

2006-02-23 Thread Nicolas Georgakopoulos



Chris Withers wrote:

Nicolas Georgakopoulos wrote:


I don't have any experience writing external products... should be 
easy if I finish the python programming part as a simple traditional 
python release and then to implement it as a Zope product ?


Yeah, sure be easy enough... and we're to help if you run into 
problems :-)

Thanks (again) Chris :-)


For what part of my needs should I read about ZODB ? Can't 
understand  the "not to read whole image objects at once"


Where are you storing your image data?
That's the point , I think it will be easier (for me) if I write a 
python program that is called by Zope external method to make the image 
processing in the local file system.
So the image files should be uploaded in the local files system to be 
processed and then able to be read it from Zope to be displayed and 
downloaded 

Is there a "strong" reason to do it otherwise  (ZODB) ?
begin:vcard
fn:Nicolas Georgakopoulos
n:Georgakopoulos;Nicolas
email;internet:[EMAIL PROTECTED]
tel;work:2810 391945
tel;fax:2810 391937
tel;cell:6945 714 578
version:2.1
end:vcard

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Can Zope 2.9 Coexist With Zope 2.6 Using Different Ports?

2006-02-23 Thread Chris Withers

J Cameron Cooper wrote:
I don't know if this is your problem, but you can't run two instances off 
the same ZODB unless you use ZEO. 


And it's certainly an extremely bad idea to try and do so with two 
different versions of Zope, whatever your setup!


how you've installed things.) But it's certainly possible. I have at 
least three different versions of Zope and at least a dozen different 
instances on this machine right now.


Yup, he really needs to make sure the new and old zope's aren't trying 
to share an instance home on disk!


cheers,

Chris

--
Simplistix - Content Management, Zope & Python Consulting
   - http://www.simplistix.co.uk

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Zope on a shared host behind Apache?

2006-02-23 Thread Sven Deichmann
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

you may face several problems with shared hosts:

- - you may not have the privilege to configure apache to your needs (you
may be able to via .htaccess)

- - you may lack the privilege to compile/install software (including the
Zope instance. Remember that you need to compile parts of Zope!)

- - needed software could be unavailable to you (python)

If the provider uses security modules you may also not be able to open
ports.

Also remember that the zope instance will most probably run as your user
and will have the same privileges as you (its unlikely you will be able
to execute it as different user or create one...) including the ability
to wipe out the whole directory content.

Regards,
Sven

Marty McFly schrieb:
> Hello,
> 
> I've just tried to install zope on a shared host which is run by an Apache 
> server. I have seen on the net, that there are 3 possibilities to run Zope 
> together with Apache: rewrite_rules, ProxyPass and FastCGI. As far as I've 
> seen, all of these 3 modules are already installed on the server. However, I 
> think that you need to have root/superuser/...-privileges in order to use one 
> of these methods, right?
> 
> Unfortunately, I don't have any of those privileges... I only have 
> write-access to my personal home-directory. Do you have an idea what Icould 
> do instead?
> 
> Thanks, Martin
> 
> P.S.: I'm having problems with my mail-provider. I hope this won't be a 
> double-post again.
> 
> Schnell und einfach ohne Anschlusswechsel zur Lycos DSL Flatrate wechseln und 
> 3 Monate kostenlos ab effektiven 5,21 EUR pro Monat im ersten Jahr surfen.
> http://www.lycos.de/startseite/online/dsl/index.html?prod=DSL&trackingID=email_footertxt
> 
> 
> 
> 
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )

- --
- ---
  Information nimmt Gestalt an... - 
- ---
Werkbank Multimedia GmbH * Bergstrasse 152 * 44791 Bochum * GER
Fon: +49(0)234/ 935386-03  * Fax: 935386-06 * [EMAIL PROTECTED]
- ---
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkP9bwoACgkQx3fK1szFYvlaAgCfeprj/+yvNyBt50AH1RNKf9G3
Gf4An3rADqhHGnnSei3r1SiQ1/nHjsAT
=qBNF
-END PGP SIGNATURE-
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )