[Zope-dev] Quixote PTL

2000-09-20 Thread Toby Dickenson

Is anyone using Quixote's PTL?

http://www.mems-exchange.org/exchange/software/python/quixote/

It looks like it might be useful in the niche that involves too much
logic for DTML, and too much joining-strings-together to make python
(or PythonMethods) cumbersome.


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] ZODB optimization

2000-09-20 Thread Jim Fulton

[EMAIL PROTECTED] wrote:
 
 I'm wondering, is the ZODB easily 'fragmented' or .. un-optimized ?
 If so, are there any tools/functions that will 'unfragment' / optimize
 it?

This really depends on the undelying storage used.  

 Does the 'pack database' in the Administration menu do this? 

Packing does two things:

  - It removed records for objects that are no longer referenced
(as of the pack time), or, IOW, it doesm garbage collection.

  - For storages that support undo (and time travel), it also
removes records that were not current as of the pack time.

Both of these, especially the latter are a little bit similar to 
defragmentation or optimization. In addition, the particular storage
implementation may have other issues/tools. For example, if the
Oracle storage is used, them whatever fragmentation or optimization
issues or adminstration tools provided by Oracle apply.

 If so,
 it could be a Good Thing (tm) to have separate optimize and packing
 (history deletion etc.) functions (buttons).

This doesn't really apply. 
 
 Is there any way to make an object not keep history on itself or on
 contained objects ?

Currently, the only way to do this is with a non-versioning storage, 
such as the Berkely DB storage.

Jim

--
Jim Fulton   mailto:[EMAIL PROTECTED]   Python Powered!
Technical Director   (888) 344-4332http://www.python.org  
Digital Creationshttp://www.digicool.com   http://www.zope.org

Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission.  Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.

___
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] Workflow, Python and Zope

2000-09-20 Thread administrator

Here I just repost a statement from Michael ([EMAIL PROTECTED]) concerning
his workflow product (http://www.vivtek.com/wftk.html, Open-source workflow toolkit).
Maybe it's useful for some further developments.
Best regards
   Arno Gross, [EMAIL PROTECTED]


 Re: Workflow, Python and Zope
 Posted By: Michael [EMAIL PROTECTED]
 Date: Tuesday, 19 September 2000, at 10:08 p.m.

 In Response To: Workflow, Python and Zope (Arno Gross)

  As Josh already mentioned there is Zope and Python. Currently there is a
  discussion thread in the Zope mailing list
  (http://lists.zope.org/pipermail/zope-dev) and in egroups:
  http://www.egroups.com/messagesearch/zope?query=Workflow, discussing
  Generic Workflow. I am convinced that it would be a great shift to build a
  Workflow product on Zope with Python. There is already a small basis of a
  workflow, but maybe we could pull together the resources.

  Arno Gross [EMAIL PROTECTED]

 Actually, I'm currently learning Python. As Python is typically extended with 
plain-vanilla C 
modules, and as the new and improved wftk (which hasn't hit stores yet) is 
reimplemented as a 
set of libraries, I think that it's going to be really simple to drop the engine into 
Python 
and Zope. That'll be my next trick.





Re: [Zope-dev] User objects on 2.2

2000-09-20 Thread Chris Withers

Lalo Martins wrote:
 (So, to allow Anonymous to call has_permission on itself you
 have to enable "Access content information" for Anonymous on
 /acl_users)

Hmmm, it might be safer to give Anonymous access to something liek a
DTML method which does the work and calls has_permission and give this
menthod a proxy role of manager or something. Giving Anonymous the
"Access content information" probably opens up more than you intended.

cheers,

Chris

___
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] ZPatterns.... more thoughts about implimentation of a concrete system...

2000-09-20 Thread Steve Spicklemire


Er Hmmm wow. I guess I never thought of attribute providers
supplying anything other than instance 'data'. I'll have to try that!
Thanks for the idea! This would mean that I could map methods onto my
objects from any source I like... hoping that the acqusition
machinery won't get confused! ... I can see it now... who did you say
self was again? ;-) 

thanks,
-steve

 "Itamar" == Itamar Shtull-Trauring [EMAIL PROTECTED] writes:

Itamar Steve Spicklemire wrote:

 (3) Has anyone found a better way to adorn 'plain' objects with
 methods?

Itamar An AttributeProvider?

Itamar -- Itamar S.T.  [EMAIL PROTECTED] Fingerprint = D365 7BE8
Itamar B81E 2B18 6534 025E D0E7 92DB E441 411C



___
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] HiperDOM xmlc

2000-09-20 Thread Jim Fulton

[EMAIL PROTECTED] wrote:
 
(snip)
 If one is really interested in a separation of content and
 presentation (which I feel is good), then the "standard_html_*"
 were wrong in the first place. It forces the
 content author to prepare for presentation.

Here's a historical note on this decision. At the time that
standard_html_* were introducted, DTML was used soley for creating
templates to display content in Python objects. The expansion for
DTML is Document *Template* Markup Language. The mistake was 
not introducing components, but introducing the use of DTML
as content.

Jim

--
Jim Fulton   mailto:[EMAIL PROTECTED]   Python Powered!
Technical Director   (888) 344-4332http://www.python.org  
Digital Creationshttp://www.digicool.com   http://www.zope.org

Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission.  Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.

___
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] ZDebug Issues... Round II ;-)

2000-09-20 Thread Chris Withers

Hi Shane,

I dug up the mail :-)

Shane Hathaway wrote:
 
 Chris Withers wrote:
  Using your sample 'bad' DTML, I got the same but the 'Contains name?'
  column didn't show up :-(
 
  Any ideas? (yes, I was tracking down a security exception, and that
  column may have been really useful ;-)
 
 My guess is you're using Zope 2.1.6.  ZDebug doesn't have a way to
 figure out what DTML method is being called in Zope 2.1.6.  Strange but
 true.  So it shows what it can.  The 2.2.x security context stack is
 used to figure it out in 2.2.x.  (Which is still a hack. :-/ )

Sorry, but I was using either Zope 2.2.0 or 2.2.1 :-S
Has this been covered by other bugfixes?

 Oops!  Try this patch (I left out a "%s"):

snip patch

I guess that made it into the new version of ZDebug?

Right, next up, it would be really useful if the error page could show a
dump of the REQUEST object. So I tried this patch:

--- dtmlexc.dtmlThu Sep 14 15:28:18 2000
+++ dtmlexc.dtml.newThu Sep 14 15:26:59 2000
@@ -56,5 +56,9 @@
   expr="source_info[2]" html_quote/pre
 /td/tr/table
 /dtml-if
+pstrongREQUEST/strong/p
+table bgcolor="#cc"trtd
+dtml-var REQUEST
+/td/tr/table
 /body
 /html

Sadly, whenever this code gets called, Zope restarts! :-(
Any ideas? (this was all on Zope 2.2.0 and 2.2.1)

cheers,

Chris

___
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] acl_users

2000-09-20 Thread Bill Anderson


Potentially silly question:

Any reason why a 'user folder' object has to be named 'acl_users'.

--
E PLURIBUS LINUX

___
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] acl_users

2000-09-20 Thread Bill Anderson

"Phillip J. Eby" wrote:
 
 At 07:55 PM 9/20/00 -0600, Bill Anderson wrote:
 
 Potentially silly question:
 
 Any reason why a 'user folder' object has to be named 'acl_users'.
 
 
 Interesting.  A quick search of the Zope source turns up only 9 references
 to 'acl_users', found in only 4 source files.

dtml-snip brevity

 Personally, I think it's an intriguing idea, as I have had more than one
 application where I would rather have called a LoginManager by some name
 other than 'acl_users'.  But I'm not sure it would be worth the work.

One of the ideas I am kicking around is that of
CommunityMembershipSystem.
In Membership-CMS, a user folder owuld need to be made, to house the
user's objects. Now, there are a few ways of doing this...here are two:

1) Have the install method add a folder to do this with
2) Have the objects stored in the user object.

Both have their ups and downs.

For example, (2) would not deperate UID from URL's too cleanly; though
it would be easier to implement in short order. Meanwhile, (1) requires
the install method be given more information (where to put the folder?),
and could be trickier to debug.

In (2), the url to the member's folder would be "/Members/username"
instead of /acl_users/username", provided the userfolder could be named
something else. I don't see a reason off hand for a UserFolder to be
renamable.

Another reason I have considered it, is that it lends a _weak_ amount of
security-through-obscurity. For example, if you see the following in a
URL ".../acl_users/loginForm", you know that the site is running Zope,
and where the authorization takes place. I dunno if I like it being
_that_ obvious.

--
E PLURIBUS LINUX

___
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] Should I use ZODB or not ?

2000-09-20 Thread Jerome Alet

On Tue, 19 Sep 2000, Jason Cunliffe wrote:

 I am curious how do you all think LocalFS would perform for such a big
 multimedia application.?
 http://www.zope.org/Members/jfarr/Products/LocalFS
 
 Use Zope for managing meta-data, or mayeb even better Zope + a fast DB tool
 for the metadata part.
 Let Zope do its holy best for the 'virtual-object interfacing' jobs, let the
 others do their thing..

This may very well be the best solution, as far as I understand what
LocalFS is (I've not used it for now, however), because this may allow us
to set per-domain (Medicine, Maths, etc...) permissions under Zope, and do
all the presentation in Zope, while not being attached to Zope if we want
to easily dump our datas somewhere else.

Thanks to all.

Now all I have to do is just kill these PHP guys there ;-))

bye,

Jerome Alet


___
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] FSF about Zope and GPL'ed components

2000-09-20 Thread Nils Kassube

== Forwarded Message ==
Date: 19.09.2000 16:57 Uhr
Received: 19.09.2000 22:58 Uhr
From: [EMAIL PROTECTED] (Free Software Foundation)
To: [EMAIL PROTECTED] (Nils Kassube)

Nils Kassube wrote:

 If I use a GPL'ed component in a complex object oriented environment
 like Zope, does this mean that the whole work is now subject to the GPL? 
 
 work = Zope-based web site/web application
 use = e.g. subclassing it or method calls, etc.

It sounds like you are building software that combines Zope and GPL'ed
software to form a single, larger program.  In this case, the whole larger
program falls under the terms of the GPL.

This is a real problem, since the license of Zope is incompatible with the
GNU GPL.  This means you can't legally distribute the system.

 
 If the GPL applies to the entire work, the resulting question is: How do I
 separate my work inside a Zope-based application from GPL'ed pieces to
 prevent this from happening?  Or do I have to rewrite the GPL part?

You cannot legally combined GPL'ed software with Zope.  You'll need to
rewrite the Zope part and release the software under a license compatible
with the Zope license, or you'll need to convince the developers of Zope to
make their license compatible with the GPL.

(In the latter case, the whole system would be covered by the GPL, so you'd
still be bound by the terms of the GPL---the only difference would be that
it'd be legally to distribute the system, since Zope wouldn't be
GPL-incompatible anymore.)
 
 Everything would be easy, if we would only be talking about programs like
 Emacs but Zope products/modules/components/whatever look more like
 libraries to me...

Regardless of whether or not a program is a library, when you combine it
with GPL'ed software to form a larger program, all of the code in the system
falls under the terms of the GPL.

-- 
Bradley M. Kuhn
Free Software Foundation |  Phone: +1-617-542-5942
59 Temple Place, Suite 330   |  Fax:   +1-617-542-2652
Boston, MA 02111-1307  USA   |  Web:   http://www.gnu.org
== End Forwarded Message ==



___
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] SQL

2000-09-20 Thread Tom Deprez

Hi,

Somebody experience with a parent code table and how to implement it in
Zope (with dtml-tree)?
Or is a PArent-Code table not SQL-like and is there a better solution?

eg : 

Parent Code Description
  0 0   MasterNode
  0 1   Child1 of MasterNode
  0 2   Child2 of MasterNode
  1 3   Child of Child1



Thanks in advance,

Tom.



___
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 )




Re: [Zope] Folderish DTML Document

2000-09-20 Thread Toby Dickenson

On Tue, 19 Sep 2000 17:19:01 -0700, "Andy McKay"
[EMAIL PROTECTED] wrote:

Whats wrong with a folder that contains an index_html DTMLMethod?

Am I totally off my head or is it possible to make a Folderish DTML
Document. I had a thread on zope-dev got no response. I know Chris Withers
thinks every object is a folderish one, but Im talking about using
PropertyManager, ObjectManager and DTMLMethod all on one object. The main
problem being absolute_url on the object seems to be broken.


Toby Dickenson
[EMAIL PROTECTED]

___
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] Newbie Question: File upload in from my own Product

2000-09-20 Thread Dicken, Peer

Hi,

I´m new to Zope ;) I´m currently composing a set of products for my website
and have a little problem now:
I need to make a Product that makes it possible to upload a file, well,
basically a tuned "FILE" object.
I need to add a description. Is it right to add the FILE object in my
ZClass, or what should I do?

 
 
MfG / best regards, 
 
Peer Dicken
 
IMD GmbH 
Softwareentwicklung  Unternehmensberatung
Edisonstr. 1
59199 Bönen
 
Tel.: +49 23 83 - 9191-0
Fax.: +49 23 83 - 919191

___
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] PTK, INTSANCE_HOME

2000-09-20 Thread Chris Withers

Richard Moon wrote:
 Agree completely. I was very disappointed when saw the latest release of
 the PTK needs a compilation of a C program. That's a real backward step.

That's not or shouldn't be the case. By 'C program', I presume you mean
the dynpersist module requried my LoginManager:

1. LoginManager, AFAIK, is now optional for the PTK.

2. ZPatterns, and hence LoginManager, will no longer need this in the
near future. It was only actually needed for Zope 2.1.x compatability,
IIUC.

That said, Zope could do with a decent product installation management
system. There's a proposal for this on dev.zope.org, though :-)

 There's also differences in tarballs creeping in - there's one product (is
 it SQL Session) which you have to put in the /Products directory under Zope
 while others you unpack at the top level Zope directory.

This is the 'new' way of doing things that works with INSTANCE_HOME
installations. SiteAccess 2 and Squishdot 0.7.2+ are also packaged like
this.

cheers,

Chris

___
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] ZDebug is disturbing ;-)

2000-09-20 Thread Chris Withers

Dieter Maurer wrote:
 Although I am very curious how ZDebug is able to disturb
 "sendmail".

ZDebug also disturbs the PTK ;-)

cheers,

Chris

___
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] How do I connect to a db from a PythonMethod?

2000-09-20 Thread Bill Welch

I have this in an ExternalMethod and it works fine:

  import MySQLdb
  conn = MySQLdb.Connection(user='', passwd='y', db='zzz')

In a PythonMethod, it fails because of the import restriction. What's the
easiest way to get around this. I'm not getting anything out of the
documentation in PythonMethods/ModuleSecurityInfo because it never says
where the code snippets should actually go.


___
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 )




Re: [Zope] ZDebug is disturbing ;-)

2000-09-20 Thread Shane Hathaway

Chris Withers wrote:
 
 Dieter Maurer wrote:
  Although I am very curious how ZDebug is able to disturb
  "sendmail".
 
 ZDebug also disturbs the PTK ;-)

Hey, what do you expect? :-)  It's another of my experimental "gorilla
patches".

However, I have found and squashed a few bugs.  Make sure you've updated
to 0.1.2.

Shane

___
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 )




Re: [Zope] ZDebug is disturbing ;-)

2000-09-20 Thread Shane Hathaway

On Wed, 20 Sep 2000, Chris Withers wrote:
 Does that work with the PTK from CVS? I found the one I had broke all
 the wizards. Also, there was that bit of non-functionality I mentioned
 on zope-dev... hmmm... lemme go find that post...

The problem was with dtml-return.  ZDebug broke it.

ZDebug still has a problem with dtml-raise, but I'm thinking of a
solution for it.  Normally it won't be a problem, but if you depend on the
exception text being preserved, ZDebug will break your DTML.  Note that
the exception *type* is preserved, however, so dtml-try/except does
work.

 PS: What's the digicool.zope.zope newsgroup?

I set up a news server on my personal machine and used procmail as a
gateway.  I can even post.  However, I've been told that mailman already
has the same capability, so if you'd like to access the zope lists via
NNTP also, lobby MattB.

Shane


___
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] A strange difference between DTMLDocument versus DTMLMethod Zope 2.2.2

2000-09-20 Thread cuiod-tec Jens Gelhaar

The following few lines have a different result, when I execute it within an
DTMLDocument or DTMLMethod.

dtml-var standard_html_header
dtml-in "objectItems('Folder')"
  dtml-var title_or_id
/dtml-in
dtml-var standard_html_footer

The DTMLMethod result looks like it should be, but within a DTMLDocument the
result is empty. When I modify the dtml-in tag slightly, then it works to

dtml-in "PARENTS[-1].objectItems('Folder')"

I does not seem to me consistent. Is it a new feature or bug. Beside, when I
call the DTMLMethod from another Document, the result is empty to.


Thanks Jens


___
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 )




Re: [Zope] SQL

2000-09-20 Thread Stephan Richter

At 02:14 PM 9/20/00 +0200, Tom Deprez wrote:
Hi,

Somebody experience with a parent code table and how to implement it in
Zope (with dtml-tree)?
Or is a PArent-Code table not SQL-like and is there a better solution?

No, it is a good solution. I used it many times for threaded message 
boards. But I do not know how to handle it with the tree tag. If you write 
your own Zope Product, it should be possible.

Regards,
Stephan
--
Stephan Richter
CBU - Physics and Chemistry Student
Web2k - Web Design/Development  Technical Project Management


___
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 )




Re: [Zope] FSF about Zope and GPL'ed components

2000-09-20 Thread Erik Enge

[Nils Kassube]

| From: [EMAIL PROTECTED] (Free Software Foundation) [Bradley M. Kuhn]
| 
| It sounds like you are building software that combines Zope and
| GPL'ed software to form a single, larger program.  In this case, the
| whole larger program falls under the terms of the GPL.

I don't exactly understand.  Does this mean that I can't use any
GPL-ed Products combined with Zope and distribute them?  For example,
I couldn't the use the GPL-ed CookieLess Session Management Product
with my application and legally distribute it with Zope?

Does this also mean that I can't make a complete application, released
under the GPL, and distribute it legally with Zope to my clients?  If
so, is there a way that this can be done legally, without relicensing
any of the "programs"?
 
| This is a real problem, since the license of Zope is incompatible
| with the GNU GPL.  This means you can't legally distribute the
| system.

But what is defined as distribution?  Can I install Zope on-site, then
install the GPL-ed application and it would be legal? 
  
| You cannot legally combined GPL'ed software with Zope.

Not at all?

| You'll need to rewrite the Zope part [...]

Sure, that's easy...  Wouldn't take me more than a century ;)

___
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] MetaPublisher now works with Zope 2.2.x

2000-09-20 Thread Mark Pratt

hi,

just wanted to announce that we have a new version of
MetaPublisher out (1.0.2) which works with Zope 2.2.x.

regards,

mark

--
mark pratt  (managing director) [EMAIL PROTECTED]
beehive elektronische medien GmbH   http://www.beehive.de
phone: +49 30 847-82 0  fax: +49 30 847-82 299


___
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 )




Re: [Zope] FSF about Zope and GPL'ed components

2000-09-20 Thread jpenny

Let me ask a more precise question.

Zope is not released under GPL.

Joe repleases a component which can be used with Zope under GPL license.
Zope.org makes it available for download, but in no way incorporates
it into their base system.  (I.e., it is available for integration
by an end user).

Joan uses Zope with Joe's component (Product in Zope parlance).
She writes something that depends on Joe's product being present,
but makes no modification to Joe's product.  She does not wish
to GPL her work.

Can she give directions on how to acquire Joe's product and install
it preliminary to installing her own work?

Can she distribute Zope, Joe's product, and her own product, as long
as they are packaged separately?

Can she write an installer that fetches Joe's Product and installs
it before installing her own work?


___
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 )




Re: [Zope] Folderish DTML Document

2000-09-20 Thread Andy McKay

 Andy McKay wrote:
  Well here's my proclamation. It cant be done...

 See Toby's comment ;-)

 If you want to be able to do dtml-var myFolderishThing then you need
 to subclass Folder and give it a __str__ or __call__ method. I'd love to
 know what the difference is between these and which one you should
 implement in a situation like this...

 Any ideas anyone?

I've given it a __call__ method, but not a __str__. Ive most problems
resolve around the objects name, absolute_url, __name__, so perhaps fiddling
with __str__ might be an answer.

  Squishdot, it seems the postings are all just stuck in one folder

 Actually, it's a big IOBtree stored in the data attribute of Squishdot
 Site objects.
  and you rewrite whole bunches of bits.

 Each posting (and the site itself) has an intSet attribute called ids.
 This says which postings are the object's children, even though they're
 all stored in the same BTree..

Oh I think I see. I'll go and have another look. I can see a product coming
out of this called the DMTLFolder :)
Thanks! I have to say Squishdot is one of those products whose code I keep
looking at to figure out how they heck things can be done

Cheers.


___
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] Re: How best to restart Zope?

2000-09-20 Thread Nathalie Bernier

Hi,

 I've read all answers about the problem and I'd like to know if there's a
 big difference between :
 this solution :
 "Edit your "start" shell script and add -Z to z2.py command line."

 and this one :" Put this in your 'start' script : -Z
 /home/local/zope/var/Z2.pid " ?

 Is the path very important?Why?

 Thanks


Nathalie Bernier
*
Développeur web 03.82.24.00.41

multiThématiques
Centre Jean Monnet
Longlaville
54400 LONGWY

http://www.mth.tv
Chaînes thématiques sur câble et satellite
*


___
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 )




RE: [Zope] A strange difference between DTMLDocument versus DTMLMethod Zope 2.2.2

2000-09-20 Thread Ron Bickers


The is a good example for illustrating the difference in a DTML Method and a
DTML Document.

With the below code, when "objectItems('Folder')" is called in a DTML
Method, the list returned is a list of Folders in the DTML Method's
*container* object (often a Folder).  In this case, you'll get a list of the
Folders that are in the Folder where the DTML Method is.

When "objectItems('Folder')" is called in a DTML Document, the DTML Document
itself is the object where Folder items are being searched for.  Since there
cannot be Folder items in a DTML Document, you get an empty list.

When you call "PARENTS[-1].objectItems('Folder')", you're asking for the
Folder items in the root object (PARENTS[-1]), so you get a list of Folders
in the root Folder.

The only time you'll get a non-empty result is when you call
objectItems('Folder') from an object that can contain other Folders.  A
Folder object, of course, is the most common object that can contain
Folders.

In short, the behavior you are experiencing is correct and by design.

___

Ron Bickers
Logic Etc, Inc.
[EMAIL PROTECTED]


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
 cuiod-tec Jens Gelhaar
 Sent: Wednesday, September 20, 2000 11:40 AM
 To: [EMAIL PROTECTED]
 Subject: [Zope] A strange difference between DTMLDocument versus
 DTMLMethod Zope 2.2.2


 The following few lines have a different result, when I execute
 it within an
 DTMLDocument or DTMLMethod.

 dtml-var standard_html_header
 dtml-in "objectItems('Folder')"
   dtml-var title_or_id
 /dtml-in
 dtml-var standard_html_footer

 The DTMLMethod result looks like it should be, but within a
 DTMLDocument the
 result is empty. When I modify the dtml-in tag slightly, then
 it works to

 dtml-in "PARENTS[-1].objectItems('Folder')"

 I does not seem to me consistent. Is it a new feature or bug.
 Beside, when I
 call the DTMLMethod from another Document, the result is empty to.


___
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] Member authentication

2000-09-20 Thread Austin Mayberry

What are suggestions for site member authentication in zope?

Austin
[EMAIL PROTECTED]

___
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 )




Re: [Zope] zope crashing unexplicably, also not releasing ports

2000-09-20 Thread Dieter Maurer

David McCuskey writes:
  i've been using zope for about 6 months now and have had this re-
  occurring problem with it randomly crashing.  *worse part about it is
  that the port isn't released when it crashes*. this means we can't use
  the same startup script to get zope back up, can't make any cron jobs to
  check for availability , and must do it manually.
The TCP spec mandates this behaviour:

  When a TCP socket is open when the serving process goes down,
  the port must not be reused until the TCP packet lifetime
  expires.
  Motivation: if this would not be the case, then a new
serving process could receive messages that have been
sent to its predecessor. It would really been confused.

  If you know, what you are doing, you can disable this
  feature. There are socket options for this.
  I think, they are named "SO_REUSEADDR" and "SO_NOLINGER".
  See the socketoption documentation for details.



Dieter

___
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 )




Re: [Zope] flat file db, favorite links, and zope

2000-09-20 Thread Dieter Maurer

[EMAIL PROTECTED] writes:
  I have a comma delimited file ...
  ...  If so, does one of them allow me to use 
  my existing db file (at least import it)?
There will be no problem to import your file.

The following external method imports the file
and returns the list of its elements.
This list can then be processed with "dtml-in":

import string

def importCommaSeparatedFile(filename):
  """returns list of items in comma separated file with name *filename*."""
  return string.split(open(filename).read(),',')


To do the whole work, you have to learn something about
Zope, external methods, "dtml-in" and maybe Z SQL methods
(if your links go into a relational database).

You will have to do some homework.


Dieter

___
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 )




Re: [Zope] A strange difference between DTMLDocument versus DTMLMethod Zope 2.2.2

2000-09-20 Thread Dieter Maurer

cuiod-tec Jens Gelhaar writes:
  The following few lines have a different result, when I execute it within an
  DTMLDocument or DTMLMethod.
  
  dtml-var standard_html_header
  dtml-in "objectItems('Folder')"
dtml-var title_or_id
  /dtml-in
  dtml-var standard_html_footer
  
  The DTMLMethod result looks like it should be, but within a DTMLDocument the
  result is empty. When I modify the dtml-in tag slightly, then it works to
That is (almost) as it is supposed to be.

  In both cases, "objectItems" is looked up in the so called
  DTML namespace.

  If your object is a DTML document, then the (relevant) top level
  element is the document itself. If it is a DTML method,
  the method itself is not placed on the namespace, only
  its "client", i.e. the object for with the method has been
  called (usually, but not necessary a folder).

The only maybe a bit surprising thing is that a DTML document
seems to have an "objectItems" method which, of cause,
returns the empty sequence.

If you use "PARENTS[0]", then you get a similar result
to that, you would have with a DTML method.


Dieter

___
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 )




Re: [Zope] Newbie Question: File upload in from my own Product

2000-09-20 Thread Dieter Maurer

Dicken, Peer writes:
  I´m new to Zope ;) I´m currently composing a set of products for my website
  and have a little problem now:
  I need to make a Product that makes it possible to upload a file, well,
  basically a tuned "FILE" object.
  I need to add a description. Is it right to add the FILE object in my
  ZClass, or what should I do?
That is one option.

However, images have properties of their own.
You can just define a new property "description" and give it
a value.

Look at the "PropertyManager" interface (- object reference
(- zdp.zope.org) or interface Wiki (- dev.zope.org)
or the source.



Dieter

___
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 )




Re: [Zope] Last modified - including contents?

2000-09-20 Thread Dieter Maurer

Marcin Kasperski writes:
  Two questions related to presenting 'last modified at ...' message on
  HTML page. 
  
  1) I have some pages (for instance my website news page or some indexes)
  which are dynamically build from another pages (usually via dtml-in -
  reading elements of some type from some folder). Does there exist any
  easy way to present the _newest_ bobobase_modification_time for all used
  elements? Currently on my news page I show 'last modified at 2000/08/14'
  although in fact this page has been modified at '2000/09/16'...
"bobobase_modification_time" is a "DateTime.DateTime" object.

You can compare such objects and compute the maximal value
as you process the page components, something like:

dtml-call "REQUEST.set('maxdate',this().bobobase_modification_time)"
!-- ATTENTION: will work only for DTML documents, not 
for methods --
dtml-in ...
  dtml-if "maxdate  bobobase_modification_time"
dtml-call "REQUEST.set('maxdate',bobobase_modification_time)"
  /dtml-if
  .
/dtml-in

dtml-var maxdate !-- the maximal date --


  2) Similar question related to marking website parts as 'New' or
  'Recently changed' in different indexes. What is the easiest way to
  calculate date of the newest change in the whole folder hierarchy
  starting from the given folder? 
You first enumerate all objects with "ZopeFind" (documented, e.g.,
in the Zope object reference -- zdp.zope.org) and then compute
the maximum as shown above.



Dieter

___
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] Restricting URL access to objects that are not complete web pages

2000-09-20 Thread Stephen Simmons

After reading the Zope lists for a couple of months to struggle up the Zope
learning curve, it's time for my first question.

I want to serve web pages build up from a database of document components.
Zope's object-based subsystems should be completely hidden so that the only
objects accessible over the web interface are complete, well-formed HTML web
pages.

For the sake of simplicity, suppose we have three types of components, web
pages, articles and sections. These components obey the following 4 rules:
1. Web pages operate just like a DTML document, where the articles and
sections from which it is built are specified via dtml-var. The page
definition starts with standard_html_header and _footer (or similar) to
create nice HTML output.
2.  Articles are primarily meant for inclusion within a web page so that
they are displayed in a browser by specifying the URL of their containing
web page. However if an article's URL is specified, the article
automatically gets wrapped in an HTML template.
3.  Sections are only used as building blocks for other documents so it must
not be possible to retrieve a section via a URL.
4.  Similarly, standard_html_header and other methods/objects not meant to
be a standalone web page should not be accessible via a URL.

My thoughts were to use an html_header that tracks how deeply components are
nested so that inner components turn off the page wrapper. This achieves 1
and 2. This also achieves 3 if sections raise an exception if their page
wrapper is not turned off.

But 4 was where I got stuck. I want to use the full magic of acquisition
when assembling web pages from components within a page, but prevent
acquisition from returning other objects via URLs.
So mypage in http://myserver:8080/myarea/mypage is able to find
standard_html_header by acquisition but
http://myserver:8080/myarea/mypage/standard_html_header gives a not-found
error.

Any suggestions? Something involving permissions/roles? Hacking
before_bobo_traverse()? Something simpler?

Thanks for any assistance!

Stephen

___
Stephen Simmons
HealthArena B.V.
phone +31 20 486 0555
[EMAIL PROTECTED]


___
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] SV: [Zope] Imagemaps

2000-09-20 Thread peter be

 How can I get to make image maps in zope??
 

If you have already made an imagemap, you then use it like this:

dtml-var "myimage_jpg.tag(border=0,usemap=#myimagemapname)"

There are so far no imagemap tag creation in Zope but there are plenty of free 
software for that.
The expensive but good Dreamweaver makes it very easy.


___
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 )




Re: [Zope] Should I use ZODB or not ?

2000-09-20 Thread Jason Cunliffe

Dieter

Thanks for your answer and advice..

   I am curious how do you all think LocalFS would perform for such a big
   multimedia application.?
   http://www.zope.org/Members/jfarr/Products/LocalFS
 In my view, LocalFS is an excellent product. I like it very much.

 However, I would not upload and not serve objects with a size
 of several hundred megabytes through ZServer (and thereby through
 Zope).
 As I said in an earlier response, ZServer is at least on
 order of magnitude slower with static content than
 Apache. This matters, if you transfer big objects!

OK, sorry to be so dense about this, but when you say "through ZServer"
..please clarify for me on thing:

Does LocalFS actually go "through ZServer" ?
I thought that all it does, is to make a virtual link, storing a pointer in
the ZODB to the real physical file system.
Upload thus via FTP would be as fast as could be, and download could be
defined if you prefer FTP or HTTP.
Does'nt the link in LocalFS work the same in both directions, merely storing
the linkn in XODB adn pass the location to the protocol?

 Recently, there has been some simple benchmarks for
 Zope versus Apache performance in this list.
 Search the archive (there is a searchable one at NIP)
 to get a feeling about the bandwidth.

 You may well use LocalFS to view the metadata (id, size, modification
time,
 ...) from Zope, but you should not go through ZServer for upload
 and HTTP requests to really large objects.

Again I dont understand.
With LocalFS, isn't the "really large object" outside of Zope.
Surely it does not care how big the file is?
All it cares about is its location, and any extra metadata IF you choose to
store it in Zope.
yes / no?

thanks
- Jason



___
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 )




Re: [Zope] flat file db, favorite links, and zope

2000-09-20 Thread sean

Dieter,
Thanks for the information.  I created a test db file and followed the 
zope external methods how-to, but when I went to create the 
external method I received a syntax error.  Is there something 
wrong with your syntax, or how I am doing it?  (Also, if my db file 
was a semi-colon delimited file it looks like I would replace the ',' 
portion with ':' right?  I really must pick up a python book!)
Here is the code (.py file) and the test db file:

py file:
import string

def importCommaSeparatedFile(testdb.db):
  """returns list of items in comma separated 
file with name *filename*."""
  return 
string.split(open(testdb.db).read(),',')

testdb.db file:

run,sean,dogs
walk,joe,cats
sprint,ted,camel


On 21 Sep 2000, at 0:33, Dieter Maurer wrote:

 [EMAIL PROTECTED] writes:
   I have a comma delimited file ...
   ...  If so, does one of them allow me to use 
   my existing db file (at least import it)?
 There will be no problem to import your file.
 
 The following external method imports the file
 and returns the list of its elements.
 This list can then be processed with "dtml-in":
 
   import string
 
   def importCommaSeparatedFile(filename):
 """returns list of items in comma separated file with name *filename*."""
 return string.split(open(filename).read(),',')
 
 
 To do the whole work, you have to learn something about
 Zope, external methods, "dtml-in" and maybe Z SQL methods
 (if your links go into a relational database).
 
 You will have to do some homework.
 
 
 Dieter
 



___
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 )




Re: [Zope] Member authentication

2000-09-20 Thread Bill Anderson

Austin Mayberry wrote:
 
 What are suggestions for site member authentication in zope?

o Define your requirements
o Define your environment (What OS/Zope version, etc)
o Post a more thorough question, based on the above. :)

Bill

--
E PLURIBUS LINUX

___
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 )




Re: [Zope] FSF about Zope and GPL'ed components

2000-09-20 Thread Andrew Kenneth Milton

+---[ [EMAIL PROTECTED] ]--
| Let me ask a more precise question.
| 
| Zope is not released under GPL.
| 
| Joe repleases a component which can be used with Zope under GPL license.
| Zope.org makes it available for download, but in no way incorporates
| it into their base system.  (I.e., it is available for integration
| by an end user).

No with an if, yes with a but..


This General Public License does not permit incorporating your program into
proprietary programs.  If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library.  If this is what you want to do, use the GNU Library General
Public License instead of this License.


If Zope is considered proprietary, the answer is no.

The GPL is supposed to stop Zope/DC from taking your product and distributing
it with Zope. It is also designed to force people who write applications
to release under GPL. The fundamental flaw with this clause is that it 
assumes that the GPLd code existed first.

It does not take into consideration that you might want to extend a 
proprietary program using GPL code.

This also holds for things like GPL drivers for Solaris e.g.

Sun have recently found a weakness in the GPL and are exploiting it,
so perhaps all is not lost for GPL stuff for Zope.

http://www.linuxgram.com/newsitem.phtml?sid=108aid=10785


There is another option..

That is to treat Zope like an operating system, and to treat products as
applications under that Operating System. (whether FSF will see it that 
way is another thing).

However, all subsequent products, that call your product must be GPL.
You write a tag, and its GPL, anyone that uses your tag has to release
as GPL.

You can not infinitely abstract the metaphor.

If you want other people to be able to use your code, but still want to
retain your GPL, then use LGPL, which protects your code and derivations,
but, does not infringe on other people's license choice.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

___
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] logging on problem

2000-09-20 Thread Willem Oudyk

Hi,

I have installed ZOPE and tried to logon to localhost:8080/manage but I 
have forgotten the userid/pw.

The file (called 'access') shows my name and then something encrypted but I 
dont know how to use it for logging on.

Can anyone help?

-
Willem Oudyk
14 Fortescue Grove
Vermont Sth. Victoria 3133
Australia Ph/Fax: +61 (3) 9887 9121
mailto:[EMAIL PROTECTED]
Web:www.pangaea.nu
-


___
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 )