Re: [Zope3-Users] How do I learn how to use Zope?

2009-06-17 Thread Benji York
On Tue, Jun 16, 2009 at 6:31 PM, Stephan
Richter wrote:
> On Tuesday 16 June 2009, Stephan Richter wrote:
>> Hi Edward,
>>
>> if this is commercial project, I am gladly offering my consulting and
>> training services. :-) Just let me know! ;-)
>
> Oh my, do not answer E-mails when you are toast. ;-)

Indeed.  I only answer email when I'm a ham sandwich.
-- 
Benji York
Senior Software Engineer
Zope Corporation
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Question about README.txt files

2009-05-05 Thread Benji York
On Tue, May 5, 2009 at 7:41 AM, Kent Tenney  wrote:
> On Mon, May 4, 2009 at 5:40 PM, Stephan Richter
>  wrote:
>> On Monday 04 May 2009, Kent Tenney wrote:
>>> So the magic in *.txt is ad-hoc for each package?
>>
>> It is not magic.
>
> I've considered the '>>>' prompt an interpreter prompt, so
>>>> write('file', """content""")
> always looked a bit magical to me.

If you're interested in alternate syntax for doctests you might like to
play with Manuel (http://pypi.python.org/pypi/manuel).  It's still in
alpha, but lets you design your own test syntax.  For example, it would
be easy to have the reST below create a file named "foo.txt" with the
given contents:

.. file: foo.txt

This is my file.
It is very nice.
-- 
Benji York
Senior Software Engineer
Zope Corporation
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] zodb is growing every login/logout

2009-04-22 Thread Benji York
On Tue, Apr 21, 2009 at 10:36 AM, Jens  wrote:
> Every login and logout, the ZODB grow about 300Byte. After some logins,
> the ZODB is getting bigger and bigger, and I have to pack it manually.

When I debug things like this I use some combination of fstail and a
hacked ZEO client that triggers a pdb each time an object is stored.

Using one or both of those you should be able to track down what kinds
of objects are being written.  From there hopefully you'll be able to
determine what is causing the writes.
-- 
Benji York
Senior Software Engineer
Zope Corporation
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] ImportError: No module named viewlet.interfaces !!

2009-04-07 Thread Benji York
On Tue, Apr 7, 2009 at 7:37 AM, Chetan Kumar  wrote:
> Stephan Richter wrote:
>> For some reason that smells like a circular import problem,
>>
>> Regards,
>> Stephan
>
> The reason was the absence of path to zope.viewlet egg from the
> sys.path. This slippage can surely be attributed to buildout. Also
> discovered that  out of 170 eggs listed in buildout.cfg only about 60
> appear in the scipts generated by buildout (paster, debug, ctl, python).
> Does it sound reasonable to say that buildout machinary may need attention?

You should produce a small, self-contained example of the problem so it
can be evaluated.  My suspicion is a bug in your buildout config rather
than buildout itself, but I can't tell from here.
-- 
Benji York
Senior Software Engineer
Zope Corporation
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] zope.app.apidoc.bookmodule and transaction

2008-12-17 Thread Benji York
On Wed, Dec 17, 2008 at 4:04 AM, Nylan  wrote:
> As mentioned here too:
> https://bugs.launchpad.net/zope3/+bug/303721
>
> After the buildout, starting zope gives me the error:
> 
> zope.configuration.config.ConfigurationExecutionError:
> zope.configuration.exceptions.ConfigurationError: Help Topic definition
> Project/eggs/transaction-1.0a1-py2.4.egg/transaction/README.txt does not exist
>
> 
> transaction 1.0a1-py2.4
> zope.app.apidoc 3.4.5-py2.4
>
>
> Is this a bug or do i miss something in my buildout.cfg?

It looks like the transaction documentation has been moved around and
zope.app.apidoc hasn't been updated.  You could remove apidoc from your
project altogether or just the "book" by adding an exclusion like so:

  
  

The above has to be "early" in your configuration.

Preventing failures like this from popping up is one reason to carefully
control the versions you use in a project.
-- 
Benji York
Senior Software Engineer
Zope Corporation
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Buildout seems to be broken due to missing back35.py in zope.app.component.

2008-10-15 Thread Benji York
On Wed, Oct 15, 2008 at 1:07 PM, Marius Gedminas <[EMAIL PROTECTED]> wrote:
> On Wed, Oct 15, 2008 at 10:59:24AM -0400, Benji York wrote:
>> On Wed, Oct 15, 2008 at 10:46 AM, Hermann Himmelbauer <[EMAIL PROTECTED]> 
>> wrote:
>> > Hi,
>> > It seems that buildout is broken:
>>
>> Are you referring to the Zope 3 trunk buildout?
>
> What's that, exactly?  zope.release trunk?

I was referring to svn://svn.zope.org/repos/main/Zope3/trunk.  I can
only assume that's what the OP was referring to.
-- 
Benji York
Senior Software Engineer
Zope Corporation
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Buildout seems to be broken due to missing back35.py in zope.app.component.

2008-10-15 Thread Benji York
On Wed, Oct 15, 2008 at 10:46 AM, Hermann Himmelbauer <[EMAIL PROTECTED]> wrote:
> Hi,
> It seems that buildout is broken:

Are you referring to the Zope 3 trunk buildout?
-- 
Benji York
Senior Software Engineer
Zope Corporation
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] building zope 3 instances?

2008-08-20 Thread Benji York
On Tue, Aug 19, 2008 at 6:11 PM, Chris Withers <[EMAIL PROTECTED]> wrote:
> Philipp von Weitershausen wrote:
>> Please don't remove things! Never ever. People might still be using them.
>
> That is getting a bit old. The confusion from having this cruft lying
> around (in the same way as accidentally released packages) is causing a
> lot more hurt tham people who're already using this (and hence already
> have a local copy of the egg, which they can keep using should no egg be
> available on pypi) would experience if they went away.

That argument neglects to include people that don't cache eggs (for
whatever reason) and people that need to build on a machine that may
have never cached the egg in question (like deploying brand new
servers).

> At the *very* least it's take about 2 minutes for a package manager to
> put a large "DO NOT USE - THIS IS ONLY HERE TO SUPPORT EXISTING SETUPS"
> at the top of the text on pypi to stop innocent bystanders getting
> caught out.

If a package is truly in that state, then yes a prominent warning should
be added.
-- 
Benji York
Senior Software Engineer
Zope Corporation
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Copying Objects from/in the ZODB

2008-07-28 Thread Benji York
On Mon, Jul 28, 2008 at 1:38 AM, Thierry Florac <[EMAIL PROTECTED]> wrote:
> Le dimanche 27 juillet 2008 à 15:15 -0300, Tim Cook a écrit :

>> I have a group of instances stored in the ZODB.  They are basically
>> skeletons that I want to copy, edit and store as new instances elsewhere
>> in the ZODB.

> Have a look at "zope.copypastemove" package interfaces and classes ;
> they should provide the simple functions you are looking for...

Also check out zc.copy (README at
http://svn.zope.org/zc.copy/trunk/src/zc/copy/README.txt?rev=77433&view=markup)
if you need to customize the copying operation.
-- 
Benji York
Senior Software Engineer
Zope Corporation
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Interface confusion (still)

2008-07-15 Thread Benji York
On Tue, Jul 15, 2008 at 7:27 PM, Fred Drake <[EMAIL PROTECTED]> wrote:
> On Tue, Jul 15, 2008 at 6:56 PM, Benji York <[EMAIL PROTECTED]> wrote:
>> When one says that a class *provides* an interface they're saying that
>> instances of that class *implements* the interface.
>
> Sorry, you got that backwards.  Instances provide the interfaces their
> class implements.

Darn, I always do that. ;)
-- 
Benji York
Senior Software Engineer
Zope Corporation
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Interface confusion (still)

2008-07-15 Thread Benji York
On Tue, Jul 15, 2008 at 6:31 PM, Tim Cook <[EMAIL PROTECTED]> wrote:

>> Note: classes *implement* interfaces, their instances *provide* them.
>
> ... and I am still confused about a use case for classProvides.

When one says that a class *provides* an interface they're saying that
instances of that class *implements* the interface.

On the other hand, lets say you had an IFooFactory interface that only
required that objects *providing* it be callable.  In that case a class
Foo itself can *provide* the interface (because the class is callable).

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


Re: Not Really SOLVED! Re: [Zope3-Users] Re: zope.schema Question

2008-07-07 Thread Benji York
On Mon, Jul 7, 2008 at 1:28 PM, Tim Cook <[EMAIL PROTECTED]> wrote:
>
> Okay, the problem is defined but it really isn't a solution for me.
> It seems that Zope has defined 'description' as a keyword not allowed in
> schema definitions.

That's rather odd.  Can you construct a small example (say, a
stand-alone .py file) that demonstrates the problem?
-- 
Benji York
Senior Software Engineer
Zope Corporation
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] zope.interface.exceptions.InvalidInterface: Concrete attribute, existence

2008-07-03 Thread Benji York
On Thu, Jul 3, 2008 at 2:21 PM, Tim Cook <[EMAIL PROTECTED]> wrote:
>
> On Thu, 2008-07-03 at 14:08 -0400, Benji York wrote:
>> On Thu, Jul 3, 2008 at 1:34 PM, Tim Cook <[EMAIL PROTECTED]> wrote:
>>
>> > I've been chasing a problem for a couple of days and I just can't figure
>> > out what the error is telling me.  Thanks for any pointers.
>>
>> It looks like the immediate problem is that
>> oship.openehr.rm.support.interval.Interval is not a field.
>
> Thanks!
>
> That fixed that error.  But I have NO IDEA how you arrived at that
> observation.  Can you enlighten me?

The last bit of user code in the traceback is attempting to define
ICAttribute, I looked at it, noticed it had three attributes, one of
which was referred to in the traceback ("existence").  The only bit of
user code there was Interval, so I looked at it's definition and noticed
that it didn't inherit from anything or provide any interfaces.

Is there any way in which I might enlighten you further? :)
-- 
Benji York
Senior Software Engineer
Zope Corporation
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] zope.interface.exceptions.InvalidInterface: Concrete attribute, existence

2008-07-03 Thread Benji York
On Thu, Jul 3, 2008 at 1:34 PM, Tim Cook <[EMAIL PROTECTED]> wrote:

> I've been chasing a problem for a couple of days and I just can't figure
> out what the error is telling me.  Thanks for any pointers.

It looks like the immediate problem is that
oship.openehr.rm.support.interval.Interval is not a field.
-- 
Benji York
Senior Software Engineer
Zope Corporation
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Zopeproject-generated app - problem with temporary paths to egg packages

2008-06-19 Thread Benji York
On Thu, Jun 19, 2008 at 7:29 AM, Alek <[EMAIL PROTECTED]> wrote:
> Hello,
> For some mysterious reason my app (generated by zopeproject) uses eggs from
> some temporary path, even when the original egg is not zipped.

This is a known problem with setuptools.  The easiest way around it is
to remove the egg's .pyc files.  They will be regenerated with correct
path info.
-- 
Benji York
Senior Software Engineer
Zope Corporation
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Send User-Agent header with zope.testbrowser.browser.Browser

2008-05-09 Thread Benji York
On Fri, May 9, 2008 at 2:27 PM, Jeff Kowalczyk <[EMAIL PROTECTED]> wrote:

> Is there anything I need to do with the mech_browser attribute to send a
> custom User-Agent header with zope.testbrowser.browser.Browser?

There's no way to do a custom User-Agent with just testbrowser.  The
way to do it with mechanize is described in
http://wwwsearch.sourceforge.net/mechanize/doc.html, which should work
if used on the mech_browser attribute of a testbrowser instance.

Note that the mech_browser attribute is an undocumented implementation
detail and may disappear without warning.  Swim at your own risk, no
lifeguard on duty.
-- 
Benji York
Senior Software Engineer
Zope Corporation
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] weird parsing, is this a bug? Re: What's wrong to this html block to testbrowser.Browser?

2008-04-23 Thread Benji York
On Sun, Apr 20, 2008 at 5:48 AM, Fet Biz <[EMAIL PROTECTED]> wrote:
> I found that "" is critical to the testbrowser.browser's content
> parsing:

This looks like a bug in ClientForm (which zope.testbrowser uses to
parse HTML forms).  It would help expedite a bug fix if you could
reproduce the behavior using only ClientForm (available at
http://wwwsearch.sourceforge.net/ClientForm/) and report the bug to
that project.
-- 
Benji York
Senior Software Engineer
Zope Corporation
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] demostorage does not support blobs

2008-04-20 Thread Benji York
On Sun, Apr 20, 2008 at 4:52 AM, Christophe Combelles <[EMAIL PROTECTED]> wrote:
>  Unsupported: Storing Blobs in  0xb6fb8dcc> is not supported.

I don't know if DemoStorage is supposed to work or not, but as a work-around
you can try zc.demostorage2 (http://pypi.python.org/pypi/zc.demostorage2).
-- 
Benji York
Senior Software Engineer
Zope Corporation
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] error 500 on blob upload with testbrowser

2008-04-19 Thread Benji York
On Sat, Apr 19, 2008 at 9:00 PM, Christophe Combelles <[EMAIL PROTECTED]> wrote:
> Hello,
>
>  I can successfully upload a zope.app.file.File with testbrowser,
>  but with zope.file.file.File (blob-based), I get this error 500:

add "browser.handleErrors = False" just before you make the call that
raises the exception and you'll see what the underlying exception, not
the 500 the publisher generates.
-- 
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] Re: [Zope-dev] bsquare'ing

2008-04-03 Thread Benji York

Adam GROSZER wrote:

We used to issue "python2.4 bootstrap.py",
"buildout bootstrap ." gives an error, unless I'm missing something.


I'm not familiar with Christian's work with bsquare, but suspect giving 
him the actual error message would be helpful.

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


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

2008-03-27 Thread Benji York

Kurt Zitze wrote:

if you want to raise the userbase of zope, the first and most obvious
thing to do is, get a forum running! mailing lists are bu*** and
completly out of date. it is max cumbersome to login into your email
account to do a post and so on, i think i dont need to enumerate all
the disadvantages of a mailing list compared to a forum.


forums (and capitalization) are way too cumbersome we should switch to 
texting each other with our mobile phones

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


Re: [Zope3-Users] Support for components and interfaces in Python 2.5

2008-03-20 Thread Benji York

Nate Lowrie wrote:

Long time python programmer.  New to Zope.  I want to use Zope 3's
component and interface libraries for a plugin system for a rather
complex Accounting/ERP program I am developing.  I was extremely
dismayed when I found absolutely no support for Python 2.5.


You're misinformed.  Almost all of "Zope 3" works with Python 2.5. 
Specifically it sounds like you're interested in zope.interface and 
zope.component, both of which work fine with 2.5.  For a 
project-by-project listing, see 
http://wiki.zope.org/zope3/ModuleImplementationStatus.



What is
going on?  Python 2.5 has been released for almost a year now and
porting hasn't been done yet?


Almost all of the individual packages have been ported at this point. 
I'm not sure as to the status of RestrictedPython, but it doesn't sound 
like you want to use it anyway.

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


Re: [Zope3-Users] Buildout and custom python

2007-12-21 Thread Benji York

David Pratt wrote:
Hi Benji. This is exactly what I have been doing up till now and has 
been working well for quick work on a local development machine. My 
current thinking though is to take control of as much of the software as 
possible so that development == deployment on my local machine to 
mitigate the risk of breaking things even if it means more disk. I am 
doing this in conjunction with stripping the deployment server to it's 
barest bones and bringing as much of the software into the buildout as 
possible.


I really would like to see a two stage buildout that does the python 
construction with a python.cfg and then the main buildout with 
buildout.cfg file as part of the standard fare. I'm trying a few things 
today to see if a simple event class and callback can be used to create 
the python first and have the callback's handler run the main buildout 
as an experiment.


Where you draw the boundary line between the "environment" and the 
"application" has a big impact on how you make these types of decisions.


You want to find the optimum place to draw that line so you end up 
getting the most benefit from the least amount of work (it's kind of 
analogous to the max-flow min-cut theorem from graph theory).


Let me use an example to illustrate.  Say you decided to build Python 
with your buildout.  After all, your app uses Python, so to have good 
reproducibility you want to make sure Python is perfectly clean and 
built repeatably so you don't get any surprises.  Makes sense.


Your app is enjoying increased success and one day you need to add some 
new servers to your cluster.  You buy a few new machines, put your OS on 
them, and build your app.  You then run your tests and they fail.


Darn.

You investigate and find that your Python was built without support for 
zip compression because the zlib development libraries aren't included 
in your base OS install.  Now you have a decision to make, do you add 
zlib to your buildout, or do you add the zlib development package to 
your OS?


If Python is part of the environment you add the zlib development 
package to your OS.  Of course that means you need a good way of 
controlling what is in the OS (environment).  Conveniently, there are 
ways to do that (RPM, APT, ports, etc.).


At this point if you draw the app/environment boundary to include Python 
in your app, you should add zlib to your buildout, right?  What happens 
if you hit a bug in GCC when compiling Python?  Do you include GCC in 
your buildout to make sure you get the right version?  It gets worse the 
deeper you go. :)

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


Re: [Zope3-Users] Buildout and custom python

2007-12-21 Thread Benji York

Christian Theune wrote:

And you can mix-and match: have buildout profiles that use your personal
`good` Python for development and production profiles that build it
themselves. OTOH this is somewhat controversial regarding test what you
fly, fly what you test ... ;)


As long as you also run your tests in production, it seems fine to me.
--
Benji York
Senior Software Engineer
Zope Corporation
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Buildout and custom python

2007-12-21 Thread Benji York

Darryl Cousins wrote:

I'm trying to created an isolated environment using buildout. I had
understood that defining a custom build python would ensure that all
eggs are installed and compiled with the custom python.


An alternative to building Python with buildout is to build a single 
"clean" Python and use it for all their buildouts.


Some advantages of this approach are that your buildouts take less time 
to build from scratch (no building Python every time), and are a bit 
smaller (by about 115MB on my system).  I keep lots of buildouts around 
(a few dozen), so those advantages add up.


Of course it also lets you stay away from the generally "dirty" system 
Python (just as the Python-per-buildout strategy does as well).

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


Re: [Zope3-Users] buildout and egg depedencies

2007-12-06 Thread Benji York

Jim Fulton wrote:

None of the above. What is the harm of the dependencies?


One of the options included in "none of the above" is to not use 
buildout at all.  Forget that the project in question uses buildout (or 
setuptools) and integrate it into your project however you would have 
before those tools existed (svn:externals, make a checkout, whatever).

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


Re: [Zope3-Users] Duplicate emails from mail queue

2007-11-08 Thread Benji York

Darryl Cousins wrote:

Initial tests seem to show that the problem is solved using the trunk.


It seems to be working well for us too.  I'll see if I can get 3.5.0b1 
released some time today.

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


Re: [Zope3-Users] Duplicate emails from mail queue

2007-11-04 Thread Benji York

Darryl Cousins wrote:

Has anyone experienced duplicate emails being sent using
IQueuedMailDelivery?


We've seen this when you have more than one process (or thread) 
attempting to deliver messages from a single maildir.  I've recently 
made changes on the zope.sendmail trunk to eliminate the duplicates.  I 
need to do another release, maybe tomorrow.  If you want to try the fix 
before a release is made, you can try running a trunk checkout.

--
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] Re: [Zope3-dev] Known-good-sets problem

2007-10-05 Thread Benji York

Stephan Richter wrote:
2. How many packages should be controlled in this index? I think we should 
definitely add packages from z3c and the zc namespace.


What is the motivation to include non-controlled packages?  I suppose it 
is to let people use those packages with (in this case) Zope 3.4.  What 
if someone wants Zope 3.4 and Twisted version X and Plone version Y 
(just making those up).  Perhaps we need a way to refer to several KGS 
when constructing an application.  Or is one KGS supposed to define a 
"universe" of packages known to work together.  If so, I would think 
there would be no place for non-controlled packages.

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


Re: [Zope3-Users] Re: Getting current user and current user's group in a buildout script

2007-10-01 Thread Benji York

Derek Richardson wrote:
The use case is that the pound (http://www.apsis.ch/pound) install is 
evil.


In that case you could create a custom cmmi recipe that passes the user 
and group to the pound build process.

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


Re: [Zope3-Users] Getting current user and current user's group in a buildout script

2007-10-01 Thread Benji York

Derek Richardson wrote:
So, is there an easy way to do it? I know I can write a recipe, but a 
recipe seems heavyweight for this. It seems to me that access to these 
two values should be built into buildout as implicit variables. Is this 
contrary to the lightweight, pluggable design philosophy?


The way we've handled similar needs is to require the user to enter that 
kind of information in their default.cfg.  That way you don't have to 
sniff the environment, and the user has explicit control over what 
values buildout sees.

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


Re: [Zope3-Users] Modified IntId utility

2007-09-26 Thread Benji York

Maken Seteva wrote:

On 24. Sep 2007, at 18:53, Maken Seteva wrote:


Fellow Zopers.
I have made a slight modification to my intid util by inheriting from IntId 
and overriding _generateId().
I do this to be sure that all new created objects will have an incrementing 
number where
the first object created gets id 1, the next gets id 2 and so on. This way I 
get for "free" sorting by

oldest/newest.


Not fully sure how to resolve conflicts though as I'm quite new to this. 


The best way to resolve conflicts is to not create them.  If you use the 
most significant bits of your int ID as a counter, and fill the least 
significant bits with conflict busting randomness, you'll be in good 
shape.  We (ZC) have a package that does just that which we really need 
to release.  If there's interest I'll take a stab at doing that soon.

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


Re: [Zope3-Users] best way to get started nowadays?

2007-09-22 Thread Benji York

Chris Withers wrote:
So, what *is* the "standard" way now and where can I read about how to 
do it?


That's in flux at the moment.  I think Philipp's zopeproject is a step 
in the right direction, but haven't had a chance to look at it closely yet.


I've put up the basic buildout I use when starting projects at 
svn://svn.zope.org/repos/main/Sandbox/benji/zope3-from-eggs. You should 
be able to check that out, run bootstrap.py, bin/buildout, then use 
bin/ctl start to start ZEO and Zope.


You'll want to change some values in setup.py and buildout.cfg for your 
project (package name, etc.).

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


Re: [Zope3-Users] Re: Prevent an event

2007-09-17 Thread Benji York

Philipp von Weitershausen wrote:
Just to be clear: As far as I remember, nothing happens on catalog 
creation. Stuff happens on *index* creation. When you add an index to a 
catalog that is already aware of objects, it will make sure that the 
newly added catalog is up to date by forcing an indexing procedure. And 
yes, this will wake up all the objects in your catalog (which isn't a 
recursive process, nor does it mean "touch"ing in the sense of 
modification).


Unfortuantely, there isn't a way to prevent the execution of a selected 
event subscriber (which is probably what you want; you don't want to 
prevent the event as a whole).


I've had the need to do this when adding an index to an app with a large 
amount of content (30 gig or so), but unfortunately I don't remember how 
we did it.  If no one pipes up soon I'll try to dig up the details.

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


Re: [Zope3-Users] zopeproject and debugging zope

2007-09-08 Thread Benji York

Lorenzo Gil Sanchez wrote:

Now I miss something from the old 'bin/runzope' days. I liked how you
could run an interactive debug session using zope.app.debug.Debugger and
the command 'bin/zopectl debug'.


If you use the zc.zope3recipes:instance recipe to build an instance 
(even one that you never start) it will accept a "debug" command, just 
like zopectl.

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


Re: [Zope3-Users] Eggs, workingenv.py, and 'classic' instance homes

2007-08-16 Thread Benji York

Jeff Shell wrote:

But now I'd like to be able to install that into "classic" zope 3.3
instance homes, trying to be as unobtrusive as possible.


I don't know anything about workingenv, but I would just use Subversion 
externals.

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


Re: [Zope3-Users] Ahh, counters... Best practice?

2007-08-14 Thread Benji York

Jeff Shell wrote:

We're working on something where we need to allow site visitors to
rate items. It's the basic star-rating thing. We want to keep a count
of the number of votes along with the current value.


At work we've been contemplating an approach for use in some similar 
situations we want to address.


In broad strokes: keep the updated value in memory, write the value to 
the database "periodically" (for whatever value of "periodically" is 
appropriate for the data).


This should work well when the value changes often and loosing the most 
recent updates to the value isn't catastrophic.

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


Re: [Zope3-Users] Re: Strange ZODB error - Solved: Zalchemy bug

2007-08-13 Thread Benji York

Hermann Himmelbauer wrote:
2007-08-13T11:01:03 CRITICAL txn.1082132800 A storage error occurred during 
the second phase of the two-phase commit.  Resources may be in an 
inconsistent state.


I don't know the details, but doesn't Zalchemy do some "interesting" 
things relating to transactions?

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


Re: [Zope3-Users] Strange ZODB error - Solved: Zalchemy bug

2007-08-09 Thread Benji York

Hermann Himmelbauer wrote:
Once again it proves that updating only makes sense if an update is really 
necessary... ;-)


Or if your express intent is to pay off some version debt.
--
Benji York
Senior Software Engineer
Zope Corporation
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] How to access "request" variable from vocabulary

2007-08-06 Thread Benji York

Yow, the whitespace in my last message was seriously messed up.  Let me
try again.

Adam Groszer wrote:
> I'm using something like this:
>
> def getCurrentRequest():
> return getInteraction().participations[0]

It is, of course, better if you can structure your app so you don't have
to pull the request "out of thin air", but if you do, I'd be a little
more careful about it.  Like so:

def getRequest():
 i = zope.security.management.getInteraction()

 for p in i.participations:
 if IRequest.providedBy(p):
 return p

 raise RuntimeError('Could not find current request.')
--
Benji York
Senior Software Engineer
Zope Corporation
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] How to access "request" variable from vocabulary

2007-08-06 Thread Benji York

Adam Groszer wrote:

I'm using something like this:

def getCurrentRequest():
return getInteraction().participations[0]


It is, of course, better if you can structure your app so you don't have 
to pull the request "out of thin air", but if you do, I'd be a little 
more careful about it.  Like so:


def getRequest(): 




i = zope.security.management.getInteraction() # raises 
NoInteraction 




for p in i.participations: 




if IRequest.providedBy(p): 




return p 








raise RuntimeError('Could not find current request.')
--
Benji York
Senior Software Engineer
Zope Corporation
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Re: Using svn checkout with zc packages

2007-07-30 Thread Benji York

Jeff Shell wrote:

Getting started as eggs is one thing. Moving code that is not in an
egg format is another, particularly in a system like CVS which is
brain dead about directories. But I think I just need to revisit the
CVS manual for this.


Normally little or nothing more than giving your code a setup.py is 
required to "eggify" it.  You can use CVS checkouts to create develop 
eggs as a transitional step.



We're stuck with CVS for now, for better or worse. And my vague
understanding of development eggs (which is next to nil) is that
they're biased towards SVN.


Not that I'm aware of.  You should be able to use CVS just fine.
--
Benji York
Senior Software Engineer
Zope Corporation
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: AW: [Zope3-Users] Re: Using svn checkout with zc packages

2007-07-30 Thread Benji York

Gary Poster wrote
long term: yeah, this needs to be fixed.  Jim's aware of it.  Has to  
do with how eggs are built.  AIUI, fixing it would probably happen in  
setuptools.


Right, setuptools builds the pycs in a temporary directory and then 
moves them to the final location.  Because the pycs include the full 
path as of the time they were built, they then point to the wrong place. 
 Gary's suggestion forces them to be rebuilt with correct paths.

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


Re: [Zope3-Users] Convention Question

2007-07-19 Thread Benji York

Tim Cook wrote:

Does z3c stand for Zope 3 Component?


It stands for "Zope 3 community", but (IMO), name space package names, 
while mnemonic, don't actually confer meaning.  In other words, just 
because Zope Corp uses zc. as our name space doesn't mean anything other 
than we were the ones that created the project.


Summary: name space packages are just for uniquifying package names.
--
Benji York
Senior Software Engineer
Zope Corporation
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: Vedr. [Zope3-Users] Zope 3 API documentation needs a new strategy

2007-07-18 Thread Benji York

Torvald Bringsvor wrote:

Very good point I think. The current documentation
makes me feel stupid, sometimes wanting to go in some
other direction than Z3.


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


Re: [Zope3-Users] Building an admin interface

2007-07-16 Thread Benji York
Thanks for the info.  I really need to dig into both viewlets and 
pagelets the next time I do a new UI from scratch.

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


Re: [Zope3-Users] Building an admin interface

2007-07-16 Thread Benji York

Stephan Richter wrote:

- Use viewlets to do the entire UI.

- Use pagelets to do the entire UI.


This reminds me of something I've been curious about but haven't had 
time to research lately.  What are the differences between pagelets and 
viewlets and their various strengths/weaknesses.  An acceptable answer 
is "read the docs and decide for yourself". 

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


Re: [Zope3-Users] Error in installing Zope 3.3.1

2007-07-02 Thread Benji York

Bin Hu wrote:
I was trying to install Zope 3.3.1 on a Mac running OS X 10.4.10 with  
python 2.5.1 (from MacPython) and got the following error message:


Python 2.5 isn't supported yet.  I believe 3.3.1 wants Python 2.4.3.
--
Benji York
Senior Software Engineer
Zope Corporation
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] problems deleting objects in containers

2007-06-06 Thread Benji York

Dominique Lederer wrote:

for xx in [key for key in container.keys()]:
  del container[xx]


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


Re: [Zope3-Users] Blog naming proposals

2007-05-29 Thread Benji York

Vinny wrote:

Grog


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


Re: [Zope3-Users] Blog naming proposals

2007-05-28 Thread Benji York

Florian Lindner wrote:

What ideas have you for Zope3 blog package, what would you choose?


I would choose anything as long as it doesn't have a Z in it.  But 
that's just me.

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


Re: [Zope3-Users] Re: zc.queue conflict question

2007-05-17 Thread Benji York

Gary Poster wrote:

there are subtleties


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


Re: [Zope3-Users] Zope Book problem update

2007-05-04 Thread Benji York

Robert Norman wrote:

Followup to my problem of using the Web  Component  Development book:



getMultAdapter fails and browser does not see the views.



the ZODB works and other zope related tasks work OK
but the view stuff doesn't seem to register.


Hmm, it sounds like there's some "Chapter 7" configuration that hasn't 
been loaded.  Is there a "slug" you're supposed to install or a 
 you need to make?

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


Re: [Zope3-Users] Utility Local to an Annotation?

2007-04-25 Thread Benji York

Derek Richardson wrote:
The specific case is uuids for atom feed entries. We have annotations 
representing feeds and I would like my uuid utility to be local to the 
feed annotation, thus recording and making available uuids only for 
entries in that feed.


How about a multi-adapter from content and feed to UUID?
--
Benji York
Senior Software Engineer
Zope Corporation
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] ZODB? PostgreSQL?

2007-04-23 Thread Benji York

Hermann Himmelbauer wrote:

I'm no expert, but I don't see how transactions would lead to a huge database.


I suspect he is referring to the way FileStorage use an append-only file 
format (between packs).  If you never pack the database, it will grow 
forever.  The simple answer is "don't do that". :)


This can be an issue if you have a very, very high number of writes of 
large objects.  The DB may grow too fast between packs to be usable. 
That doesn't normally happen though.



When it comes to differences between ZODB and RDBs, I'd say the following:

- In many situations you already have an existing RDB, so the decision has 
already been made.


True enough.  As you mention below, in this situation you can also use 
the ZODB alongside a relation DB.


- RDBs scale scale very well, so in case your application gets really huge, an 
RDB is an option. With Zope, you can easily cluster the application server, 
however the ZODB can not be distributed. (Maybe ZODB can even not make good 
use of multiple processor due to Python's GIL).


They may well exist, but I have yet to see a storage server that was CPU 
bound (that wasn't running on antique hardware).  IO is much more 
important on a storage server (ZODB or RDB).


- In case of data models, which heavily rely on references (=relations), I 
think you are also better off with RDBs.


Why's that?

- RDBs have several addons, such as backup strategies, report generation etc. 
etc.


True, although I've never gotten much value out of "generic" RDB 
utilities, especially report generators.



If speed and the data model is not an issue, then I'd opt for ZODB.


If speed is an issue, one rule overrides all: benchmark and then decide.

Moreover there's also the possibility of a hybrid approach, where parts of the 
data are stored in the ZODB and other parts in a relational database.


That's my preferred general approach.  If data is "painfully 
rectangular", then a RDB might be the best approach.

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


Re: [Zope3-Users] Re: zope.intid and UUIDs

2007-04-20 Thread Benji York

I really like Gary's suggestions here, which I'll paraphrase:

First create interfaces that content can be adapted to to get a UUID, so 
other people can provide different implementations and those can 
interoperate.  Then, create default implementations that work however 
you like.


Then if you, or one of your users want to use a different, or second 
implementation, the migration will be much easier.

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


Re: [Zope3-Users] zope.intid and UUIDs

2007-04-18 Thread Benji York

Derek Richardson wrote:
I wrote most of it today and there is more code shared between the 
two than is different. The main differences are:



* OOBTrees, instead of an IOBTree and an OIBTree
* Different events are fired when an object is registered and 
unregistered (they could be merged, but this is easy 
backwards-compatibility)

* _generateId() is, of course, different

The rest is pretty much copied and pasted, even most of the tests.


This suggests to me that you instead want to /use/ an int ID utility, 
not /be/ (a mutated) one.  Unless there's a very compelling reason to 
copy all that functionality composition would be much cleaner.

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


Re: [Zope3-Users] Add unittest

2007-04-18 Thread Benji York

Florian Lindner wrote:
I've added an directory "tests", created an empty __init__.py in it and a file 
named test_proxycache.py which contains:


import unittest


I *highly* recommend doctests over most uses of unittest.  One 
reasonable example of doctest usage is in zc.copy 
(http://svn.zope.org/zc.copy/trunk/src/zc/copy/).

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


Re: [Zope3-Users] Using 'if object' evaluates false even if object exists

2007-04-12 Thread Benji York

Giovannetti, Mark wrote:

Hope everyone's having a splendid day/evening/whatever.


My whatever is going quite well, thanks!


I've encountered a strange error.  I have two chunks
of nearly identical code below.  The only difference
is the first "if" statement.


This is related to how Python evaluates boolean expressions.  See 
http://docs.python.org/lib/truth.html for more info.

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


Re: [Zope3-Users] Re: RFC 4122 UUIDs

2007-04-04 Thread Benji York

Derek Richardson wrote:
I believe that that will not guarantee a *universally* unique id, but 
only an id unique within that ZODB. Am I wrong?


The RFC prescribes a specific algorithm for generating universally 
unique IDs.


Of course, they are only "universally unique" in a probabilistic way.

It wouldn't be difficult to salt the integer IDs such that they generate 
UUIDs that are as likely as any other to be unique.  Something like this 
would work:


import uuid
int_id = 42
salt = 0x32352352353243263235235235324326
print uuid.UUID('%X' % (int_id ^ salt))

Another option would be to create an IOBtree to map each object's intid 
to a randomly generated UUID (generated by the uuid.uuid1 method from 
the earlier referenced module).

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


Re: [Zope3-Users] RFC 4122 UUIDs

2007-04-04 Thread Benji York

Derek Richardson wrote:
I am hoping that Zope 3 assigns an RFC 4122 UUID to each content item. 
If not, I am hoping there is a third-party product to do this.


I would use the standard intid utility and simply encode the generated 
integer as a UUID.

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


Re: [Zope3-Users] Zope3 groups and such

2007-02-21 Thread Benji York

Robert Hicks wrote:

Are there any meetings in Virginia or round abouts?


There has been a Fredericksburg ZPUG in the recent past, but it petered 
out in the last year.


There were recently signs of resurgence on the mailing list 
(http://mail.zope.org/mailman/listinfo/fredericksburg-zpug), but nothing 
has come of it yet.

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


Re: [Zope3-Users] Infrastructure Requirements?

2007-02-16 Thread Benji York

Jonathan wrote:

Thanks for the info!  What OS are you running on the dual-core cpus?


We generally run CentOS in our production clusters.  There isn't really 
anything special about CentOS though, any good OS would be fine.  Maybe 
even Windows. :)


I hadn't heard anything about anyone running 2 instances of zope on a 
dual-core cpu and was wondering if it was better to go with 2 cpus on a 
single box, or run 2 instances of zope on a single dual-core cpu in a single 
box.


I doubt it would make a measurable difference.
--
Benji York
Senior Software Engineer
Zope Corporation
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Infrastructure Requirements?

2007-02-16 Thread Benji York

Jonathan wrote:

From: "Benji York" <[EMAIL PROTECTED]>

Four instances on a four core box works quite nicely. :)


Do you mean "four instances on a box with 4 cpus" or "4 instances on a box 
with 2 cpus, where each CPU has a dual core"?


The latter, but it generally makes little difference.

ie. has anyone tried running 2 instances of zope on a dual-core cpu? If so, 
how did it perform?


I'm not sure what kind of answer you're looking for so here's the most 
useful one I can muster: very well.  :)

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


Re: [Zope3-Users] Infrastructure Requirements?

2007-02-16 Thread Benji York

Doyon, Jean-Francois wrote:

- On the web boxes run Apache with mod_rewrite to get you to the Zope
instance(s) running on the app layer machines


Some people substitute Squid for Apache, or in certain circumstances, 
leave that layer out all together.



I still bother to try and get single CPU machines, because of the whole
Python GIL vs. Thread issue, though newer linuxes have CPU affinity.


I don't quite understand that statement.  You can certainly run an 
instance per CPU and modern OS schedulers are smart enough to make 
setting CPU affinity overkill.


Four instances on a four core box works quite nicely. :)
--
Benji York
Senior Software Engineer
Zope Corporation
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Error when calling addform

2007-02-13 Thread Benji York

Stephan Richter wrote:

On Monday 12 February 2007 15:56, David Johnson wrote:
Many people have offered approaches.  I find the simplest and  
cleanest approach for declaring interfaces is as follows:


The cleanest way, in my opinion, is just not to use the addform directive 
altogether. zope.formlib is the wildly accepted successor.


I know that my acceptance of formlib is certainly wild.
--
Benji York
Senior Software Engineer
Zope Corporation
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] interview for my diploma thesis about Zope 3 in education

2007-01-23 Thread Benji York

David Johnson wrote:

Zope  was developed (as I understand and may be incorrect) by a
professor in Computer Science in order to explain web development and
instruction on application development.


You are indeed incorrect.  Correction left as an exercise for the reader. :)
--
Benji York
Senior Software Engineer
Zope Corporation
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] zc.buildout with Zope 2

2007-01-12 Thread Benji York

Martin Aspeli wrote:

Jim Fulton wrote:
This may not be the right place for this question, but I'm wondering if 
anyone has experience or examples using zc.buildout with Zope 2.

I don't.  I'm using the immediate predecessor of zc.buildout
for zope Zope 2 projects though.



Is this internal only?


No, we put a version in the sandbox 
(http://svn.zope.org/Sandbox/zc/buildout/trunk/) a little over a year 
ago, and I could update that version if you want, but I doubt you will; 
 it is woefully under-documented and not that easy to get into.


You'd probably be better off digging into zc.buildout.
--
Benji York
Senior Software Engineer
Zope Corporation
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] zope.testbrowser and vhost

2007-01-02 Thread Benji York

Dominique Lederer wrote:

i see there is a VirtualHostingBrowser class in
zope.testbrowser.testing, but i dont have a clue on how to use this.


Use VirtualHostTestBrowserSuite instead of
unittest.TestSuite and the tests you add to the suite will be run twice: 
once normally and again in a virtual hosting environment.

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


Re: [Zope3-Users] Re: zope 3.3 on windows can't create pages

2006-12-29 Thread Benji York

Robert Hicks wrote:

Do you know when Python 2.5 will be supported?


It will probably be a while.  2.5 includes some changes that will
require some of Zope's security machinery to be updated.


I just received a shiny iMac and I am waffling between putting 2.4.4
or 2.5 on it.


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


Re: [Zope3-Users] Registered utility is never found

2006-12-12 Thread Benji York

Tom Gross wrote:
you are trying to lookup the utility with the name None. If you 
don't specify a name when registering the utility,

omit the second parameter: zapi.getUtility(IInitIndicator)


In other words, the name of an unnamed utility isn't None, but the empty 
string.

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


Re: [Zope3-Users] ZODB explorer?

2006-12-05 Thread Benji York

Roger Ineichen wrote:

Yes there is a ZODB browser. You can install it like every
other zope 3 package and start the standalone app.

check it out at:

svn+ssh://svnzope/repos/main/z3c.zodbbrowser


I think that should be svn://svn.zope.org/repos/main/z3c.zodbbrowser/.

It looks like Roger has an alias set up for svn.zope.org, and you don't 
need the "+ssh" unless you want a writable checkout (and it won't work 
at all unless you have check-in privileges).

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


Re: [Zope3-Users] I'm very happy to see the new version of Zope 3

2006-10-23 Thread Benji York

KLEIN Stéphane wrote:

I send this message only to say than I very happy to see the new very
of Zope 3 Wiki.


I agree.  The new wiki looks terrific.
--
Benji York
Senior Software Engineer
Zope Corporation
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] TAL, TALES, METAL documentation

2006-10-22 Thread Benji York

Perry Smith wrote:

On Oct 21, 2006, at 11:41 PM, Fred Drake wrote:

For Zope 3 are these the right places to look:

Yes, those are the right place.  I've added links to these documents
in the documentation section of the Zope 3 wiki.


Thanks.  They are fairly old.  


That's because those specs, and the software they describe, are stable.

Also, last night, I was reading  
about "Content Providers" and "Viewlets and Viewlet Managers" which  
are TAL statements not listed in Appendix C or the TAL 1.4 Spec.


Nor should they be.  TAL is extensible, and those statements are 
extensions to TAL, not part of the standard.

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


Re: [Zope3-Users] Links / Relationships (again)

2006-10-16 Thread Benji York

Jeff Shell wrote:

I see there's a `zc.extrinsicreference` in the svn.zope.org
repository. Is that in a usable state?


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


Re: [Zope3-Users] Zope3.3.0-zope.rdb implementation - bug, feature?

2006-10-16 Thread Benji York

Maciej Wisniowski wrote:
A workaround would be to rename any offending columns (forgive my 
rusty SQL if this isn't quite right):


  select 1 as one from dual

Yes, I've even written this in my previous email :)


Then I'll claim that my email reading is rusty too. :)


the names of numeric attributes (like '1') to prefixed ones
(like '_1') It works but I'm not sure whether it is proper
solution for something other than tests, but in general
who may use this kind of dynamically created labels for
something useful...?
Personally, I don't see zope.rdb being as very useful and would expect 
to see third-party RDB interfaces supersede it.

As I can see in Zope3 ResultSet's are used
directly by SQLScripts.
Do you mean that third-party RDB interfaces should have it's
own SQLScripts implementation or some other
changes should be done?


Something should be done, but I don't know what.  Interested third 
parties should lead the way here.

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


Re: [Zope3-Users] Zope3.3.0-zope.rdb implementation - bug, feature?

2006-10-13 Thread Benji York

Maciej Wisniowski wrote:

I've just tried to use Zope3.3.0 with cx_Oracle adapter
and to check whether connection works I've used
typical for Oracle statement:

select 1 from dual

I've received error:
TypeError: __slots__ must be identifiers

The problem is (I think) with class Row or
RowClassFactory defined
in zope/rdb/__init__.py.


Right, the RowClassFactory appears to assume that the column names are 
valid Python identifiers, "1" is not.  That doesn't seem like a good 
assumption to me.


A workaround would be to rename any offending columns (forgive my rusty 
SQL if this isn't quite right):


  select 1 as one from dual


I've implemented temporary solution that simply changes
the names of numeric attributes (like '1') to prefixed ones
(like '_1') It works but I'm not sure whether it is proper
solution for something other than tests, but in general
who may use this kind of dynamically created labels for
something useful...?


Personally, I don't see zope.rdb being as very useful and would expect 
to see third-party RDB interfaces supersede it.



I would like to know your's opinions
before submiting a bug and/or trying to create a patch.


I'd submit a bug report with the details you included in your email.
--
Benji York
Senior Software Engineer
Zope Corporation
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] zc.winauth takes too much time to authenticate every page load

2006-10-12 Thread Benji York

Benji York wrote:
[a mixture of truth and pre-caffeine insanity]


[EMAIL PROTECTED] wrote:
I suspect my problem may be a configuration issue in my PAU 


It sounds like it; make sure you have the "No Challenge if 
Authenticated" plugin enabled.


My suggestion above makes no sense at all. :)

Two things:

I like your original idea of finding a way to cache the fact that a user 
is authenticated.  I'd like to see a plugin that stores that information 
in a session, that way the plugin could be used with zc.winauth or any 
other credential mechanism.


Per your performance problems: we have used zc.winath in a pretty 
heavily-loaded environment with a user-store of more than 5,000 entries. 
 Unless you have massively more users than that, I would think you 
should be able to get decent performance.  We had some similar 
performance problems and I was able to re-configure the server on-which 
Zope was running such that the authentication was much faster.  I wish I 
remembered the details, hopefully Google and MSDN will be helpful.

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


Re: [Zope3-Users] zc.winauth takes too much time to authenticate every page load

2006-10-12 Thread Benji York

[EMAIL PROTECTED] wrote:

It works great, but I have one issue: authentication takes much time
(almost 10 seconds). 


Windows authentication can be slow.  There are ways to speed it up, the 
Microsoft documentation might help.



IMHO sane behavior would be: authenticate with ActiveDirectory once
(on login) and then authenticate basing only on cookie


It depends on what you want.  If you want immediate revocation, then 
it's not.  If, like most people, you don't care too much about immediate 
revocations, then read below.


I suspect my problem may be a configuration issue in my PAU 


It sounds like it; make sure you have the "No Challenge if 
Authenticated" plugin enabled.

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


Re: [Zope3-Users] svn.zope.org and www.zope.org not online

2006-10-10 Thread Benji York

Roger Ineichen wrote:
www.zope.org is  still not reachable. 
Do I get a old cached DNS entry from my DNS provider?


Not exactly, the IP hasn't changed.  The new DNS host seems to be 
handing out the wrong IPs.



What is the correct working IP for svn.zope.org?


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


Re: [Zope3-Users] svn.zope.org and www.zope.org not online

2006-10-10 Thread Benji York

Adam Groszer wrote:

squid/2.5.STABLE6 says:
While trying to retrieve the URL: http://www.zope.org/

The following error was encountered: 
Connection Failed 

The system returned: 
(111) Connection refused


There appear to be some issues with the zope.org DNS as it is 
transitioned to third-party hosting, but the servers themselves are up. 
What IP does www.zope.org resolve to for you?

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


Re: [Zope3-Users] Re: Versionitis with psycopgda Again

2006-09-28 Thread Benji York

Philipp von Weitershausen wrote:

Jeff Rush wrote:
Any suggestions?  With the popularity of psycopg + Zope3, any chance we 
could get psycopgda added into the Zope3 distribution to mitigate this 
chasing?


I don't think that can happen. We're thinking about making the core 
smaller, not bigger :). Also, not everyone has or needs psycopg, so the 
testing would become a burden.


OTOH, if someone is willing to maintain psycopg and run a buildbot slave 
for it, we could easily add it to our buildbot master so that every time 
a change was made to the core the psycopg tests would be run and the 
maintainer would be alerted to any failures.  I suspect this pattern 
will be more common in the "smaller core/more add-ons" future.


PS: It's interesting to note that the Python project is doing something 
similar now (http://www.python.org/dev/buildbot/community/), and when we 
get Zope 3 on Python 2.5 I intend to set up a slave to test Z3 every 
time a checkin is made to Python.

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


Re: [Zope3-Users] testbrowser passes but view fails

2006-09-27 Thread Benji York

[EMAIL PROTECTED] wrote:

I have a situation where the functional test passes but when the page is 
actually viewed a ComponentLookupError is raised.


One common cause for these types of errors is differences in 
configuration between the testing and production environment.  Try 
running zope with the testing config and see if you get the same results 
when accessing the page with a real browser.


You can do that by specify which ZCML to use with the -X 
site-definition=foo.zcml switch, where foo.zcml is either the top-level 
ftesting.zcml or the ZCML for your test layer.

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


Re: [Zope3-Users] Functional Tests

2006-09-11 Thread Benji York

Fabio Rizzo Matos wrote:

Does anybody knows where i find any "tutorial" for zope.testbrowsers?


The README.txt would be a good place to start.
http://svn.zope.org/Zope3/trunk/src/zope/testbrowser/README.txt?rev=69730&view=markup
--
Benji York
Senior Software Engineer
Zope Corporation
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Zope 3 Distilled book update 3

2006-09-06 Thread Benji York

Baiju M wrote:

On 9/6/06, Benji York <[EMAIL PROTECTED]> wrote:


Baiju M wrote:


 (This is about : http://kpug.zwiki.org/Zope3Distilled)


I recommend you verify that you can use the "Distilled" name.  I believe
computer book titles of that form are protected by an Addison-Wesley
trademark.



How can I verify this. There are some titles from  Addison-Wesley.


Wait and see if they send you a cease and desist letter?
--
Benji York
Senior Software Engineer
Zope Corporation
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Zope 3 Distilled book update 3

2006-09-06 Thread Benji York

Baiju M wrote:

  (This is about : http://kpug.zwiki.org/Zope3Distilled)


I recommend you verify that you can use the "Distilled" name.  I believe 
computer book titles of that form are protected by an Addison-Wesley 
trademark.

--
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] Re: [Zope3-dev] z3c vs. the zorg

2006-08-24 Thread Benji York

Stephan Richter wrote:
Right, thus I am clearly -1. :-) (Wow, now I do not even have to argue myself 
anymore. ;-)


:)

Note that we spent a lot of time coming up with this name and pretty much all 
the contributors to the namespace were involved in the discussion.


Sorry.


Zope Corp decided to use "zc",
Lovely Systems "lovely" and a bunch of us not representing a company decided 
to use "z3c". So what's wrong with that?


I totally support your prerogative to name your packages whatever you 
want (within reason).  My main thought are about long-term aesthetics. 
A hard to defend cause, I admit.


> (BTW, I would without a thought change the working in
> the ZSCP document to be less asserting and globalizing.)

I wouldn't mind that.

I wonder how Zope Corp. would feel if I would ask them to use zcorp, because 
"zc" stands for Zope Community?


If "zc" were to become "zope community", I'd be *totally* for it (but I 
don't speak for ZC here, so that may not be cool with others, like say 
Jim).  We'd either keep using "zc" under the new meaning, or switch to 
something else.


BTW, I am not aggravated about the mail; I am just very tired of those 
pointless namespace discussions.


I'm sorry.  It's off my chest now, so if this (mercifully) peters out 
soon, we'll all be better off.

--
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] z3c vs. the zorg

2006-08-24 Thread Benji York
Stephan's ZSCP proposal suggests using the package name "z3c" for 
"community" packages.  IOW, packages that aren't part of a larger 
collection like lovely.*, zc.*, etc..  There are currently several z3c 
packages in existence.


The zope3.org packages currently use the package name "zorg".  I 
personally (and at least a couple other people feel the same way) like 
zorg better than z3c.  I'd like to propose that zorg become the name 
space package for otherwise homeless modules/packages.


(In fairness, I'll note that Stephan likes z3c better, and that name is 
already in semi-wide-spread use).

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


Re: [Zope3-Users] zc.tables integration with Zope3

2006-08-22 Thread Benji York

Stephan Richter wrote:
Note that I am -1 for including zc.table at this stage. I feel that it needs 
some more thought and real-life usage. Note: I use zc.table *a lot*!


I'm +1 on your -1.  It's a bit early yet.  Plus the eggification of 3.4 
will hopefully reduce the need to put things in the core.



For the customer I never base any code on those skins


Same here.

As for batching, it would be nice to have a utility, but I would like to see 
some "out-of-core" implementation first and see it evolve a couple 
iterations.


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


Re: [Zope3-Users] zc.tables integration with Zope3

2006-08-21 Thread Benji York

Stephan Richter wrote:

On Monday 21 August 2006 17:34, Benji York wrote:


I don't think I'd be very happy with a div-based zc.table.


Then don't use it. It will be an alternative, of course. I will not break the 
existing API and output.


Oh!  I misunderstood.  I couldn't imagine that the current architecture 
could be coerced into allowing both styles of output.   I look forward 
to the improvements!

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


Re: [Zope3-Users] zc.tables integration with Zope3

2006-08-21 Thread Benji York

Stephan Richter wrote:

On Monday 21 August 2006 17:07, Fred Drake wrote:


Huh?  Whatever for?  Are you planning to use zc.table for something
other than tabular data?  (X)HTML tables are entirely reasonable for
tabular data, which is the only use case I'm aware of.


That depends on the designer you talk to. :-) I agree with you, but I have 
this requirement.


I don't think I'd be very happy with a div-based zc.table.
--
Benji York
Senior Software Engineer
Zope Corporation
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] NTLM and Active Directory based authentication for Zope 3

2006-08-17 Thread Benji York

[EMAIL PROTECTED] wrote:

Hello,

I need to setup single sign on for Zope 3. My Zope 3.2 is running stand alone on Windows server. 


We (Zope Corp.) just open sourced zc.winauth.  It's not "single 
sign-on", but "shared sign-on", but it might be helpful.  You can view 
the README here: 
http://svn.zope.org/zc.winauth/trunk/src/zc/winauth/README.txt?rev=69546&view=markup


You could build a true single sign-on system on top of it, if you're 
willing to be IE-only.

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


Re: [Zope3-Users] testbrowser hangs

2006-08-17 Thread Benji York

Darryl Cousins wrote:

Hi,

Python version maybe? The timing is about right with a debian upgrade, I
am now running Python 2.4.4c0. Guess I better figure out how to
downgrade and see what happens then with the tests.


That's the problem.  There was a bug introduced to Python (both the 2.4 
an 2.5 branches) when trying to fix an sgmllib bug.  This was discovered 
yesterday by John J. Lee of the mechanize project (which testbrowser uses).


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


Re: [Zope3-Users] Re: zalchemy integration

2006-08-14 Thread Benji York

Jeff Shell wrote:

2. There's an 'add to cart' form that is in this page's main template
(or other)
   code, and the user has added something to the cart. The 'update' action of
   the form adds the item on a post-back. But because it comes *after* the
   'cartContents' content provider, the 'cartContents' provider won't show an
   incremented number until the next stage.


We've been calling those "update bugs".
--
Benji York
Senior Software Engineer
Zope Corporation
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Re: Total n00b to zope3 and apache.

2006-07-28 Thread Benji York

Darryl Cousins wrote:

I often find it useful to access the same instance with different server
names so I can stay logged in as manager (http auth) on one and log in
as different site users (cookie auth) to test security settings and only
need one browser open.


Another good trick for that is starting multiple servers in the same 
instance on different ports.

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


Re: [Zope3-Users] CoInitialize and Zope3

2006-07-21 Thread Benji York

Luke Benstead wrote:
Now my questions are... are these errors occurring because of the use of 
Coinitialize()? and if so how can I use CoInitialize with Zope3 so that 
I can use adodbapi?


I don't have anything to add to what we talked about on IRC (if that was 
indeed you), but to get CoInitialize to run at app start time you can 
add a subscriber to the IProcessStartingEvent and run your code there.

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


Re: [Zope3-Users] Security alert: use of Through-the-Web reStructuredText

2006-07-19 Thread Benji York

David Pratt wrote:
What about the idea of maintaining a text file in 
the distribution specific to possible security issues. Is this worth 
considering for historical purposes so they do not get lost over time or 
implicitly understood by only a handful of people.


Exactly.  Any package that needs security-related things verified should 
have a test (doctest in a text file) describing the problem and 
verifying that it has been fixed.


I don't think we want a single file to hold them though, tests 
(including these) should normally live near the package that they test.

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


Re: [Zope3-Users] Security alert: use of Through-the-Web reStructuredText

2006-07-19 Thread Benji York

David Pratt wrote:
You are probably right but just the same I'd rather see the patched 
version for z3 also since I am certain this will become less obvious 
over time if it is left the way it is.


Instead of maintaining a fork of docutils, Zope 3 should (and may 
already, I haven't been keeping up with this issue) include tests to 
make sure we're using docutils appropriately.  Best of both worlds: we 
have continued assurance we don't regress, and we don't have to maintain 
a fork/patches.

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


Re: [Zope3-Users] Products/Ordered Container

2006-06-28 Thread Benji York

Jim Washington wrote:

David Johnson wrote:

I'm interested in an ordered container in which the order
can be manipulated (rather than add order or alphabetical).



For an ordered container implementation, look in zope.app.container.ordered


It's a different animal than z.a.c.ordered, but zc.listcontainer might 
interest you too.

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


Re: [Zope3-Users] Re: Splitting ZODB ?

2006-06-26 Thread Benji York

David Pratt wrote:
Hi Jim. Where should this be done (separate identifier). I was thinking 
of a UUID of some sort when I read this which could be helpful for other 
things.


UUIDs can be quite useful, but for identifying objects within a database 
the "universal" part doesn't make much sense, hence things like the 
intid utility.

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


  1   2   >