[Zope-dev] SessionManager, BerkeleyDB, and license compatability

2000-10-12 Thread Toby Dickenson

I understand from the SessionTracking wiki that this product may use
BerkeleyDB

http://www.zope.org/Wikis/DevSite/Projects/CoreSessionTracking/CurrentStatus

The BerkeleyDB license at http://www.sleepycat.com/licensing.html
indicates that it may only be distributed free of charge with software
that is 'freely available and redistributable by others'.

We are currently using Zope to develop an application that does not
fall into this category. It would be a serious problem for us if
Zope's core had a dependency on code with this type of license.



Toby Dickenson
[EMAIL PROTECTED]

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




Re: [Zope-dev] SessionManager, BerkeleyDB, and license compatability

2000-10-12 Thread Chris McDonough

This is a good point...

Not to worry, however, because the default configuration of the session
tracking stuff is going to use in-memory storage.  Berkeley DB will not need
to be (and won't be) distributed with Zope.  The session manager will be
capable of using nonundo databases (like one based on
BerkeleyStorage/BerkeleyDB), but a nonundo database won't be required to
make use of it.  When you want to use it, you will be able to pick and
choose from nonundo storage implementations including BerkeleyDB.



- Original Message -
From: "Toby Dickenson" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Cc: "James Wilson" [EMAIL PROTECTED]
Sent: Thursday, October 12, 2000 10:04 AM
Subject: [Zope-dev] SessionManager, BerkeleyDB, and license compatability


I understand from the SessionTracking wiki that this product may use
BerkeleyDB

http://www.zope.org/Wikis/DevSite/Projects/CoreSessionTracking/CurrentStatus

The BerkeleyDB license at http://www.sleepycat.com/licensing.html
indicates that it may only be distributed free of charge with software
that is 'freely available and redistributable by others'.

We are currently using Zope to develop an application that does not
fall into this category. It would be a serious problem for us if
Zope's core had a dependency on code with this type of license.



Toby Dickenson
[EMAIL PROTECTED]



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




[Zope-dev] Re: A couple of ZPatterns questions

2000-10-12 Thread James Johnson

2. I want to store a list of products, and give each one an 
arbitrary 
number of photos. I can use a Product ZClass, subclassed from 
ObjectManager and store Image objects inside it.

Would using the new ZPatterns based EMarket-0.2.0a2 help as a base 
system.  I would also look at the updated information on SkinScript 
located here.
http://www.zope.org//Members/pje/Wikis/ZPatterns/SkinScriptSyntax
I hope this helps.


Get your Free E-mail at http://tacoma.zzn.com

Get your own Web-Based E-mail Service at http://www.zzn.com

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




Re: [Zope-dev] Strange permissions in the (built-in) API reference

2000-10-12 Thread Michel Pelletier

KevinL wrote:
 
  Michel Pelletier wrote
  Dieter Maurer wrote:
  3. Jim is working on formal interface support for python and he's
  thinking hard about it, we definatly didn't want to think hard about it
  and then turn out we came up with a bad answer, the existing API docs
  are just that, docs, not interfaces.  When format interfaces come about,
  API docs will probably be converted to that format.
 
 As in mods to python to give it interface support?  Is that discussion taking
 place anywhere public? 

It already did way back in the day shimmery dream sequence

http://www.zope.org/Members/jim/PythonInterfaces/Summary


 It's suddenly become an issue for me, for a
 non-related project...
 
 KevinL

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




Re: [Zope-dev] Xron fragility

2000-10-12 Thread Loren Stafford


From: "Kapil Thangavelu" [EMAIL PROTECTED]


[snip]
   Xron has a single dispatcher thread. This thread knows how long to
sleep
   for until the next job needs to run.

 this model has problems when new jobs (for immeadiate execution) are
 entered after the system sleeps. i think it should it taken into
account
 that people will use this dispatching thread to achieve async
operations
 on a request, and that these might need to be done immeadiately.


This is not (or should not be) a problem in current Xron design. The
Dispatcher wakes up early if the Schedule catalog is changed.

-- Loren




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




Re: [Zope-dev] Xron fragility

2000-10-12 Thread Loren Stafford

  What if you want a small job to be done every 30 seconds?

 I generally don't... I'm satisfied with cron granularity, although
others
 might not be.  Do you have this requirement?

I thought a little about the granularity issue and decided to go with
the most general solution. I have no requirement for 30-second
intervals, but I wanted to avoid support requests from those who might
have such a need.

Also, I have no need for large numbers of scheduled methods. But I used
a heavy-duty data structure (Catalog) and the sleeping dispatcher model,
just so there would be no arbitrary limits that would cause me support
headaches later.


It uses Client.py to run a job.
  
   Why is this?  This doesn't make any sense to me on its face.  Why
not
 just
   call the method from a separate thread?
 
  Which separate thread? Do you create a new ZODB thread? That sounds
as
  if it might use quite a few resources.
 
  Is there a Zope API for making ZODB threads call methods on objects,
as
  signalled by other threads? I'm guessing the easiest way to do that
is
  to use Client.py to make a new http request.


Yes, using Client.py was the easiest way to do that. The biggest problem
with Client.py is its dependency on HTTP. If your server is set up to
only accept HTTPS, then you can't use Xron -- not a desirable trade-off.
We need another mechanism that achieves the same goal -- simulating the
environment of a request -- without going all the way back to the
socket.

-- Loren



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




[Zope-dev] Future of Xron and method scheduling in Zope

2000-10-12 Thread Loren Stafford

I would be happy to turn development of  Zope scheduling capabilities
over to someone else, because I currently have no demand for scheduling
capabilities and am not actively working on Xron.

This could take any of the following forms:

1.  Transfering Xron to another developer. For historical reasons, Xron
uses GPL.

2. Starting a new product from scratch, without reference to the Xron
product. The new product could carry a different license. I would be
happy to give up the Xron name, in this case, if anyone wanted it for
the new product.

3. Building scheduling capabilities into Zope core.

Any takers?

-- Loren



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




[Zope-dev] symlink product?

2000-10-12 Thread Neil K

[EMAIL PROTECTED] wrote:
In order to make Shane's Symlink product (soft links to objects based on

Symlink product? Where can I find out more? I don't see anything in Shane's
member folder or by searching Zope.org.

I have written a Shortcut product myself. (It was fairly primitive so I
didn't have the heart to call it a symlink :)

--
Neil Kandalgaonkar  [EMAIL PROTECTED]
Web Application Developer, ActiveState


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




[Zope-dev] Re: Zope-Dev digest, Vol 1 #752 - 13 msgs

2000-10-12 Thread Itai Tavor

James Johnson wrote:

  2. I want to store a list of products, and give each one an
arbitrary
number of photos. I can use a Product ZClass, subclassed from
ObjectManager and store Image objects inside it.

Would using the new ZPatterns based EMarket-0.2.0a2 help as a base
system.  I would also look at the updated information on SkinScript
located here.
http://www.zope.org//Members/pje/Wikis/ZPatterns/SkinScriptSyntax
I hope this helps.

It's extremely helpful. I missed that SkinScript Wiki page, and I've 
been following the discussions about the ZPatterns-based EMarket but 
didn't realize it's been released. Thanks!
-- 
Itai Tavor"Je sautille, donc je suis."
C3Works[EMAIL PROTECTED]  - Kermit the Frog

"If you haven't got your health, you haven't got anything"


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




[Zope-dev] Re: [Zope] Thanks for the comments

2000-10-12 Thread Phil Harris

As another side note, I generally make it into an eBook ready for the
Microsoft Reader.

If anyone's interested let me know.

Phil
[EMAIL PROTECTED]
- Original Message -
From: "knight" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: "Michel Pelletier" [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, October 12, 2000 10:59 PM
Subject: Re: [Zope] Thanks for the comments


 On a side note, how about also including a PDF version (if possible) for
 us developers who are busy hacking away at source and don't have time to
 convert it ourselves... ;]

 Knight
 [EMAIL PROTECTED]

 On Thu, 12 Oct 2000 [EMAIL PROTECTED] wrote:

  Just out of curiosity, how often do you update the book (i.e., the
version on
  the web)?  Or, put another way, how long should we consider that
catching a typo
  or split infinitive will have already been brought to your attention but
hadn't
  yet made it to the web site?
 
  If you update on a continuous basis, then my question is moot.  However,
if you
  update on a periodic basis, could you drop me (or this list group) a
note to
  indicate that the next version is available for our hungry eyes?
 
  Just a suggestions...
 
  Ron
   ./.
 
   Just thought we'd mention that we have gotten lots of great comments
on
   the Zope book so far, especially in the last week or so.  You're all
   helping make it a better book and ensuring Zope's future.  if you've
   felt in the past that you may not be technically proficient enough to
   contribute to the technology of Zope, you can certainly contribute to
   the documentation by catching our mistakes and making good
observations
   and asking good questions. It is really, really helping.  Keep it up,
   cuz we're not done yet!
 
 
 
  ___
  Zope maillist  -  [EMAIL PROTECTED]
  http://lists.zope.org/mailman/listinfo/zope
  **   No cross posts or HTML encoding!  **
  (Related lists -
   http://lists.zope.org/mailman/listinfo/zope-announce
   http://lists.zope.org/mailman/listinfo/zope-dev )
 
 


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


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




Re: [Zope-dev] A couple of ZPatterns questions

2000-10-12 Thread Phillip J. Eby

At 06:15 PM 10/12/00 +1100, Itai Tavor wrote:
Hi,

1. I want to set some object attributes every time the object is 
changed (for example, to store the name of the user making the 
change). I looked at using a Generic Trigger or a SkinScript but I 
can't figure how to do it with either one.

With a Trigger, I guess I need to set "Set Sttrs" to all the object 
attributes except the ones I intend to set (otherwise, would setting 
an attribute in the Trigger cause the Trigger to be called again?) 
and then call a method to set the attributes - but how do I set the 
attributes? Do I have to call changeProperties for the object or can 
I make the change directly on the DataSkin?

You can only change the attributes directly by calling an External Method,
so changeProperties would be the more direct way.

You are correct that you must list the attributes *other* than the ones you
want to change, otherwise you will cause an infinite recursion.  In some
older versions of ZPatterns, you may get the recursion anyway.  :(


With SkinScript, I can't figure out the STORE and USING syntax... 
also, if I use WHEN OBJECT CHANGED to change the object, would I get 
infinite recursion? Can I evaluate REQUEST['AUTHENTICATED_USER'] in 
the SkinScript or do I need to call a method for that?

Yes, you can say REQUEST.AUTHENTICATED_USER.  No special methods needed.
To write SkinScript equivalent to a generic trigger, the form is:

WHEN OBJECT events STORE set attrs USING expression SAVING stufftosave

This performs the same as a generic trigger with the same parameters.



2. I want to store a list of products, and give each one an arbitrary 
number of photos. I can use a Product ZClass, subclassed from 
ObjectManager and store Image objects inside it. But what will happen 
to these objects if I use this ZClass in a Rack? And how would I 
handle storing the objects in SQL tables - I will need to somehow 
turn each Image object into a table entry, and the same Generic 
Attribute Provider will have to work with 2 SQL tables. Is there a 
nice way of doing this? Or should I store the photos in a separate 
ZClass and use it in another Rack in the Products Specialist?

I would not suggest trying to go the ObjectManager route.  ZPatterns does
not have a good way at present to map child objects into other databases.
Instead, a more custom approach would be appropriate, where you have say an
"images" attribute that is loaded/saved through SQL.  This has the
downside, however, of being either resource intensive or computationally
intensive.

However, it'd probably be best of all to have a Photos specialist, with a
getPhotosForProduct() method, addPhotoToProduct(), and so on.


Actually, I can't put an Image object on a DataSkin, right? So 
however I store it, it's going to have to be a my own custom Image 
object subclassed from DataSkin...

Not necessarily, it depends on your overall structure.  If you want to use
standard Zope Image objects you may indeed want to subclass from DataSkin.


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