[Zope-dev] LM 0.8.6 w/CurrentCVS failure

2000-06-02 Thread Bill Anderson

"Phillip J. Eby" wrote:

[...]

 LM 0.8.6 also works with Zope 2.2 as far as being able to be added,
 although I'm not sure it interoperates properly with the new security API.
 It will still be backward compatible with Zope 2.1.6 either way, though.

Hmmm ... just tried it on a fresh (Thursday) CVS dump, and get a no-go:

Error Type: KeyError
Error Value: _owner


Traceback (innermost last):
  File /home/web/ActiveBoise/Games/lib/python/ZPublisher/Publish.py,
line 224, in publish_module
  File /home/web/ActiveBoise/Games/lib/python/ZPublisher/Publish.py,
line 189, in publish
  File /home/web/ActiveBoise/Games/lib/python/Zope/__init__.py, line
221, in zpublisher_exception_hook
  File /home/web/ActiveBoise/Games/lib/python/ZPublisher/Publish.py,
line 175, in publish
  File /home/web/ActiveBoise/Games/lib/python/ZPublisher/mapply.py, line
160, in mapply
(Object: manage_addLoginManager)
  File /home/web/ActiveBoise/Games/lib/python/ZPublisher/Publish.py,
line 112, in call_object
(Object: manage_addLoginManager)
  File
/home/web/ActiveBoise/Gaming/lib/python/Products/LoginManager/LoginManager.py,
line 230, in manage_addLoginManager
  File /home/web/ActiveBoise/Games/lib/python/OFS/ObjectManager.py, line
249, in _setObject
(Object: ElementWithAttributes)
  File /home/web/ActiveBoise/Games/lib/python/AccessControl/Owned.py,
line 267, in manage_fixupOwnershipAfterAdd
(Object: SheetProviderContainer)
  File /home/web/ActiveBoise/Games/lib/python/AccessControl/Owned.py,
line 174, in changeOwnership
(Object: SheetProviderContainer)
KeyError: (see above)

--

___
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] Repeating a piece of HTML code

2000-06-02 Thread Alex Mendez

Hello, it's the first time I write here and I'm a
newbie at Zope, so maybe I'm asking a stupid
question...

Case is I retrieve from my movie database the value of
the movie from 1 to 5 stars. I would like to repeat
that n times the code img SRC="star.gif" height=15
width=15 so the number of stars would appear:

1 - *
2 - **
3 - ***
4 - 
5 - *

Is there any way to do so in Zope? Does the dtml-in
tag anything to do with it?

Thank you!

=
Saludos!!   
 _-/Txapulin\-_
[EMAIL PROTECTED]  O  \  /   ---\  /  O
http://www.geocities.com/txapulin   \/ |  \/
/  |XAP\
 ||
 ||

__
Do You Yahoo!?
Yahoo! Photos -- now, 100 FREE prints!
http://photos.yahoo.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 )




[Zope-dev] newbie / dtml-tree and external methods

2000-06-02 Thread Gilles Verley

Hi all, I'm newbie both in python and in zope (in English too!), and 
here is a problem I realy can't sort out.

I would to display the tree structure of a repository disk.
Therefore I wrote a recursive class MyFolder, with the following 
attributes (code is at the bottom of the message):
class MyFolder:
   fname : name of the base folder
   subfolders : a list of MyFolder objects, made after the subfolders 
of my folder
   MyFiles : a list of the files of my folder (actually a list of 
object whose only attribute is the name of the file)


I call this class with the following external method:

def ZMyWalk(self,dir): #=None):

""" returns ..."""
# MyRepTest is the default value
#if not dir : dir=MyRepTest
return MyFolder(dir)


And I try to publish it with the following DTML-method:

dtml-with "ZMyWalk('saigon\\d\\divers\\wlk')"
dtml-tree branches_expr=subfolders
  dtml-var FolderName
  dtml-in MyFiles
 dtml-var namebr
  /dtml-in 
/dtml-tree
/dtml-with


It displays the first level fine. But when I try to expand the tree
by 
clicking on the small + sign, it acts randomly (doesn't do anything, 
or expand another branch, sometimes it even does the right thing, ..).

Any guess? I'm totally lost :-( . I'm not sure I does this the right 
way. The SomeFile class I 've made seem rather artificial.
I run Zope 2.1.6 with Python 1.5.2 under NT4.0 and I got the 
TreeTag.py pach.



PS : here are the classes I use.


class MyFolder:

"""fait une recursion dans un repertoire"""

def __init__(self,dir):
self.path=dir
self.FolderName=os.path.basename(dir)
self.subfolders=[]
self.MyFiles=[]
for f in os.listdir(dir):
pathname='%s\\%s' % (dir, f)
if os.path.isdir(pathname):
self.subfolders.append(MyFolder(pathname))
elif os.path.isfile(pathname):
self.MyFiles.append(SomeFile(f))
else:
pass


class SomeFile:

""" ... """
def __init__(self,name):
self.name=name

___
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] Repeating a piece of HTML code

2000-06-02 Thread Shane Hathaway

Alex Mendez wrote:
 
 Hello, it's the first time I write here and I'm a
 newbie at Zope, so maybe I'm asking a stupid
 question...
 
 Case is I retrieve from my movie database the value of
 the movie from 1 to 5 stars. I would like to repeat
 that n times the code img SRC="star.gif" height=15
 width=15 so the number of stars would appear:
 
 1 - *
 2 - **
 3 - ***
 4 - 
 5 - *
 
 Is there any way to do so in Zope? Does the dtml-in
 tag anything to do with it?

dtml-in expr="_.range(0, movie_rating)"
  img SRC="star.gif" height=15 width=15
/dtml-in

Replace movie_rating with the variable that represents the movie rating.

Shane

___
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] Repeating a piece of HTML code

2000-06-02 Thread Steve Alexander

Shane Hathaway wrote:
 
 Alex Mendez wrote:
 
  Hello, it's the first time I write here and I'm a
  newbie at Zope, so maybe I'm asking a stupid
  question...
 
  Case is I retrieve from my movie database the value of
  the movie from 1 to 5 stars. I would like to repeat
  that n times the code img SRC="star.gif" height=15
  width=15 so the number of stars would appear:
 
  1 - *
  2 - **
  3 - ***
  4 - 
  5 - *
 
  Is there any way to do so in Zope? Does the dtml-in
  tag anything to do with it?
 
 dtml-in expr="_.range(0, movie_rating)"
   img SRC="star.gif" height=15 width=15
 /dtml-in
 
 Replace movie_rating with the variable that represents the movie rating.

What about dtml-var "'*' * movie_rating" ?

--
Steve Alexander
Software Engineer
Cat-Box limited

___
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] Repeating a piece of HTML code

2000-06-02 Thread Steve Alexander

Steve Alexander wrote:
 
 Shane Hathaway wrote:
 
  dtml-in expr="_.range(0, movie_rating)"
img SRC="star.gif" height=15 width=15
  /dtml-in
 
  Replace movie_rating with the variable that represents the movie rating.
 
 What about dtml-var "'*' * movie_rating" ?

Or rather:

  dtml-var "'img SRC=star.gif height=15 width=15' * movie_rating"

--
Steve Alexander
Software Engineer
Cat-Box limited

___
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] Repeating a piece of HTML code

2000-06-02 Thread Jim Sanford

if  number_of_stars is 5 then

dtml-var " '*' * number_of_stars "

will give you *

(Multiplication works on strings in python and thus Zope!)

Jim Sanford

- Original Message - 
From: "Alex Mendez" [EMAIL PROTECTED]
To: "Lista Zope" [EMAIL PROTECTED]
Sent: Friday, June 02, 2000 5:28 AM
Subject: [Zope-dev] Repeating a piece of HTML code


Hello, it's the first time I write here and I'm a
newbie at Zope, so maybe I'm asking a stupid
question...

Case is I retrieve from my movie database the value of
the movie from 1 to 5 stars. I would like to repeat
that n times the code img SRC="star.gif" height=15
width=15 so the number of stars would appear:

1 - *
2 - **
3 - ***
4 - 
5 - *

Is there any way to do so in Zope? Does the dtml-in
tag anything to do with it?

Thank you!

=
Saludos!!   
 _-/Txapulin\-_
[EMAIL PROTECTED]  O  \  /   ---\  /  O
http://www.geocities.com/txapulin   \/ |  \/
/  |XAP\
 ||
 ||

__
Do You Yahoo!?
Yahoo! Photos -- now, 100 FREE prints!
http://photos.yahoo.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 )




___
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] Repeating a piece of HTML code

2000-06-02 Thread Duncan Booth

  dtml-in expr="_.range(0, movie_rating)"
img SRC="star.gif" height=15 width=15
  /dtml-in
  
  Replace movie_rating with the variable that represents the movie rating.
 
 What about dtml-var "'*' * movie_rating" ?
 

Fine, except that he wants the img tag repeated the appropriate 
number of times. Try putting the tag into the dtml-var statement 
and you get something along the lines of (untested):

  dtml-var "('img src=%sstart.gif%s height=15 width=15' % 
(_.chr(34), _.chr(34))) * movie_rating"

at which point the dtml-in starts to look more appealing.

Of course if you rename star.gif as star_gif you could try:
 dtml-var "start_gif.tag() * movie_rating"
which has a certain neatness.


-- 
Duncan Booth [EMAIL PROTECTED]
int month(char *p){return(124864/((p[0]+p[1]-p[2]0x1f)+1)%12)["\5\x8\3"
"\6\7\xb\1\x9\xa\2\0\4"];} // Who said my code was obscure?
http://dales.rmplc.co.uk/Duncan

___
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] Using string idiom in dtml

2000-06-02 Thread Steve Alexander

Another slightly different idiom is:

  dtml-var """'img src="foo.gif"' * 12"""  

It isn't very SGML-like though.


Jim Sanford wrote:
 
 You've got my vote. Being able to use """ would solve alot of my dtml coding
 headaches.
 
 Jim Sanford
 - Original Message -
 From: "Steve Alexander" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, June 02, 2000 8:06 AM
 Subject: [Zope-dev] Using """string""" idiom in dtml
 
 How easy would it be to allow """python strings""" inside DTML tag
 attributes?
 
 I'm thinking particularly of situations like:
 
   dtml-var "'''img src="foo.gif"''' * 12"
 
 Currently, you need to mess about with _.chr(34) and string
 concatenation.
 
 The triple-quote idiom looks clearer to my eyes.
 
--
Steve Alexander
Software Engineer
Cat-Box limited

___
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] The future of Zope with XML

2000-06-02 Thread Kevin Dangoor

Hello,

Thanks for getting this document going. It's good to see where XML is
going in Zope.

I do have a question, though. For me, the main value in XML has been in
its usefulness as a flexible interchange format. Right now, I can store data
as objects (either straight Python or ZClasses) in Zope and transform those
into XML if I need to share it with the outside world (eg RSS). Similarly,
though I haven't done this, I believe I can take XML from the outside world,
parse it and store it in objects in the database. Are there advantages to
storing the data in Zope as XML vs. storing my data as objects?

Thanks,
Kevin

- Original Message -
From: Glenn Gasmen
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, June 01, 2000 11:05 PM
Subject: [Zope-dev] The future of Zope with XML


http://www.zope.org/Wikis/zope-xml/Unified%20Vision



___
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: ZPatterns complexity?

2000-06-02 Thread Phillip J. Eby

At 01:40 PM 6/2/00 +0800, Mike wrote:

As I'm reading ZPatterns source code more and more I'm finding there are
good things just hidden in unclean or bad defined interfaces. Just a
suggestion: define interfaces as abstract classes first, then implement
them (as AbstractRack, DefaultRack and GenericRack for example). 

I might back interfaces out later.  But while the whole thing is still a
prototype it doesn't make a lot of sense to keep two going.  Originally,
Rack itself was a base class, but the way things are shaping up it will
only need subclassing if you want a custom way of mapping from a
mountable's "id" to the persistent data stored by the Rack.


told 'mess' I meant I spent a lot of time to realize the Rack do not
store RackMountables but just manages them.

That was the whole point of Rack; this has been mostly addressed on the
mailing list, in my talk/slides at the Python conference, and in the
ZPatterns wiki.


The second thing confusing me is property sheets. They come from problem
domain isn't it? I guess attribute providers are sufficient to do all
the work. What that sheets needed for?

Two things.  1) WebDAV support requires the ability to add arbitrary
property sheets containing arbitrary data.  2) Propertysheets (especially
when used with XML namespace URL's) give a way of standardizing an
interface to common properties, without polluting an object's "main"
namespace.  This way, one can take an object that wasn't designed for a
certain purpose, and attach a propertysheet that serves as an adapter to
give it a different interface to its data.

Consider the scenario of a scheduling application that creates calendars,
or manages resource contention.  But you would like to use it with say, a
"room" object that was not written as part of the scheduling application.
If the scheduling application can just add a scheduling propertysheet to
the room object, or you can configure the room objects' datamanager or rack
to add a propertysheet that makes it usable with the scheduling
application, then you get to benefit from two unrelated frameworks (room
management and scheduling).  This is a core intent of ZPatterns: making it
easy to blend frameworks that cover different behavioral aspects and
problem domains.  Because real world objects have a funny way of being part
of more than one "problem domain" from a software development point of
view.  :)


And one more thing I would to say. I agree the RackMountable should not
be acquisition-aware because Attribute providers have full
responsibility on its (acquired) attributes. But I do not like default
Specialist.__bobo_traverse__ behavior. It is trying to make __of__ on
thing which is not an Acquisition.Implicit by definition!

Good point.  __of__, however, is not limited only to acquisition.  In any
case, I have moved the __of__ call to the Specialist.getItem() method in
0.4.0.   In 0.4.0 DataSkins (the replacement for RackMountables) include an
__of__ method in their base class, as this is where they figure out their
controlling DataManager (when retrieved from something other than a Rack).
Thus, with 0.4.0 it is not necessary to include Acquisition.Implicit in a
RackMountable's base classes.


___
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] The future of Zope with XML( what does ZDOM do for us? )

2000-06-02 Thread Josh Zeidner


Hi Kevin,

  What FourThought/DC are currently doing with Zope will allow for fast 
transformations to memory-resident structured data( ZDOM or whatever ) to 
exportable XML documents( which are simply strings of characters ).  This 
introduces( to the Zope world ) cutting edge metaphors in web-application 
design.  All data to be served to a client is some form of XML: including 
HTML ( a better term: structured data ).  The internal structure, or 
representation( or "deep structure" if you are into Chomsky ),  is the 
data/knowledge as the web site managers see it- and most likely the most 
accurate and flexible when dealing with the particular information-domain( 
this is what theyre paid for :) ).  Each user has custom needs- and wants to 
see this information the way they( or the applications working on thier 
behalf ) are accustomed to.  So, architectually speaking, we need a way to 
easily and quickly construct XML documents from some meta-type( our internal 
structure ).  This is what ZDOM is accomplishing for us.

  Parsing is a expensive endeavor.  It is not practical to parse character 
streams every time we want to get at our data.  So the solution is to 
represent the data as something more computationally digestible.  Again : 
this is what ZDOM is accomplishing for us.

  Does this answer your question?

  have a good weekend,

  Josh Zeidner



-"zippa-dee-doo-da" , uncle remus

Hello,

 Thanks for getting this document going. It's good to see where XML is
going in Zope.

 I do have a question, though. For me, the main value in XML has been 
in
its usefulness as a flexible interchange format. Right now, I can store 
data
as objects (either straight Python or ZClasses) in Zope and transform those
into XML if I need to share it with the outside world (eg RSS). Similarly,
though I haven't done this, I believe I can take XML from the outside 
world,
parse it and store it in objects in the database. Are there advantages to
storing the data in Zope as XML vs. storing my data as objects?

Thanks,
Kevin

- Original Message -
From: Glenn Gasmen
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, June 01, 2000 11:05 PM
Subject: [Zope-dev] The future of Zope with XML


http://www.zope.org/Wikis/zope-xml/Unified%20Vision



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



Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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] LM 0.8.6 w/CurrentCVS failure

2000-06-02 Thread Phillip J. Eby

At 01:51 AM 6/2/00 -0600, Bill Anderson wrote:
"Phillip J. Eby" wrote:

[...]

 LM 0.8.6 also works with Zope 2.2 as far as being able to be added,
 although I'm not sure it interoperates properly with the new security API.
 It will still be backward compatible with Zope 2.1.6 either way, though.

Hmmm ... just tried it on a fresh (Thursday) CVS dump, and get a no-go:

Error Type: KeyError
Error Value: _owner

Thanks for the heads-up, but it worked with the current CVS as of the
release of 0.8.6.  It's going to be a little while before we can take a
whack at it again.  2.1.6 is our primary development platform for both
ZPatterns and LoginManager.  When we do releases, we check them against the
latest CVS of Zope for compatibility, but it's something of a pain as we
have to do a certain amount of conditional coding to deal with the presence
or absence of 2.2 API's.  This is more a problem with LoginManager,
although ZPatterns is about to have some conditional code added to work
with Jim's new __get/set/delattr__ support (which, if it works, would mean
the DynPersist module would not be required for 2.2).


___
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] Adding files to a request feature

2000-06-02 Thread Carlos de la Guardia

Hi,

I have created a very simple Search and Replace tab and added it to my
Zope´s management interface. I would like to contribute this to the Zope
distribution if possible. What process do I need to follow for you guys
to check it out. I found the collector and I imagine I could add a
request for a feature. But is there a way to include new files with
that?

Thanks for your help.

Carlos de la Guardia


___
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] The future of Zope with XML( what does ZDOM do for us? )

2000-06-02 Thread Kevin Dangoor

Hi, Josh

Thanks for the insight! I also just noticed that there is a whole lot of
good information already up there in the Wiki. This does look like great
stuff. I see how it complements Zope's current data storage capabilities. It
provides good ways to move XML data in and out of the ZODB via XSLT and to
store and manipulate XML data efficiently using XML Documents. These are
excellent capabilities indeed.

Have a great weekend!

Kevin

- Original Message -
From: "Josh Zeidner" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, June 02, 2000 10:54 AM
Subject: Re: [Zope-dev] The future of Zope with XML( what does ZDOM do for
us? )



 Hi Kevin,

   What FourThought/DC are currently doing with Zope will allow for fast
 transformations to memory-resident structured data( ZDOM or whatever ) to
 exportable XML documents( which are simply strings of characters ).  This
 introduces( to the Zope world ) cutting edge metaphors in web-application
 design.  All data to be served to a client is some form of XML: including
 HTML ( a better term: structured data ).  The internal structure, or
 representation( or "deep structure" if you are into Chomsky ),  is the
 data/knowledge as the web site managers see it- and most likely the most
 accurate and flexible when dealing with the particular
ormation-domain( 
 this is what theyre paid for :) ).  Each user has custom needs- and wants to 
 see this information the way they( or the applications working on thier 
 behalf ) are accustomed to.  So, architectually speaking, we need a way to 
 easily and quickly construct XML documents from some meta-type( our internal 
 structure ).  This is what ZDOM is accomplishing for us.
 
   Parsing is a expensive endeavor.  It is not practical to parse character 
 streams every time we want to get at our data.  So the solution is to 
 represent the data as something more computationally digestible.  Again : 
 this is 
what ZDOM is accomplishing for us.

   Does this answer your question?

   have a good weekend,

   Josh Zeidner



 -"zippa-dee-doo-da" , uncle remus

 Hello,
 
  Thanks for getting this document going. It's good to see where XML
is
 going in Zope.
 
  I do have a question, though. For me, the main value in XML has been
 in
 its usefulness as a flexible interchange format. Right now, I can store
 data
 as objects (either straight Python or ZClasses) in Zope and transform
those
 into XML if I need to share it with the outside world (eg RSS).
Similarly,
 though I haven't done this, I believe I can take XML from the outside
 world,
 parse it and store it in objects in the database. Are there advantages to
 storing the data in Zope as XML vs. storing my data as objects?
 
 Thanks,
 Kevin
 
 - Original Message -
 From: Glenn Gasmen
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Thursday, June 01, 2000 11:05 PM
 Subject: [Zope-dev] The future of Zope with XML
 
 
 http://www.zope.org/Wikis/zope-xml/Unified%20Vision



___
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] The future of Zope with XML( XSLT revisited )

2000-06-02 Thread Josh Zeidner


Hi,

  It is great stuff! ( similar idea to Apache Cocoon )... now all we need is 
someone to put in an XSLT( 4XSLT ) processor into the core Zope code-  are 
there any immediate plans for this?  note: i realize this has been discussed 
before :) .

  -thanks, Josh Z



Hi, Josh

 Thanks for the insight! I also just noticed that there is a whole lot 
of
good information already up there in the Wiki. This does look like great
stuff. I see how it complements Zope's current data storage capabilities. 
It
provides good ways to move XML data in and out of the ZODB via XSLT and to
store and manipulate XML data efficiently using XML Documents. These are
excellent capabilities indeed.

 Have a great weekend!

Kevin

- Original Message -
From: "Josh Zeidner" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, June 02, 2000 10:54 AM
Subject: Re: [Zope-dev] The future of Zope with XML( what does ZDOM do for
us? )


 
  Hi Kevin,
 
What FourThought/DC are currently doing with Zope will allow for fast
  transformations to memory-resident structured data( ZDOM or whatever ) 
to
  exportable XML documents( which are simply strings of characters ).  
This
  introduces( to the Zope world ) cutting edge metaphors in 
web-application
  design.  All data to be served to a client is some form of XML: 
including
  HTML ( a better term: structured data ).  The internal structure, or
  representation( or "deep structure" if you are into Chomsky ),  is the
  data/knowledge as the web site managers see it- and most likely the most
  accurate and flexible when dealing with the particular
ormation-domain(
  this is what theyre paid for :) ).  Each user has custom needs- and 
wants to
  see this information the way they( or the applications working on thier
  behalf ) are accustomed to.  So, architectually speaking, we need a way 
to
  easily and quickly construct XML documents from some meta-type( our 
internal
  structure ).  This is what ZDOM is accomplishing for us.
 
Parsing is a expensive endeavor.  It is not practical to parse 
character
  streams every time we want to get at our data.  So the solution is to
  represent the data as something more computationally digestible.  Again 
:
  this is
what ZDOM is accomplishing for us.
 
Does this answer your question?
 
have a good weekend,
 
Josh Zeidner
 
 
 
  -"zippa-dee-doo-da" , uncle remus
 
  Hello,
  
   Thanks for getting this document going. It's good to see where XML
is
  going in Zope.
  
   I do have a question, though. For me, the main value in XML has 
been
  in
  its usefulness as a flexible interchange format. Right now, I can store
  data
  as objects (either straight Python or ZClasses) in Zope and transform
those
  into XML if I need to share it with the outside world (eg RSS).
Similarly,
  though I haven't done this, I believe I can take XML from the outside
  world,
  parse it and store it in objects in the database. Are there advantages 
to
  storing the data in Zope as XML vs. storing my data as objects?
  
  Thanks,
  Kevin
  
  - Original Message -
  From: Glenn Gasmen
  To: [EMAIL PROTECTED]
  Cc: [EMAIL PROTECTED]
  Sent: Thursday, June 01, 2000 11:05 PM
  Subject: [Zope-dev] The future of Zope with XML
  
  
  http://www.zope.org/Wikis/zope-xml/Unified%20Vision



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



Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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 )




[Zope-dev] XPath and Aquisition Incompatible?

2000-06-02 Thread Josh Zeidner


hi,

  I was just looking over the Wiki on Zope XML, and came across the current 
notes on XPath.  I tend to think that XPath( which is a relative 
discripition of a tree traversal ), and Aquisition( which implies quite a 
bit based on where it gets executed )- may not be exactly compatible.  Has 
there been any discussion on this?

-Josh Z


Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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] XPath and Aquisition Incompatible?

2000-06-02 Thread Chimezie Thomas-Ogbuji

Josh Zeidner wrote:
 
 hi,
 
   I was just looking over the Wiki on Zope XML, and came across the current
 notes on XPath.  I tend to think that XPath( which is a relative
 discripition of a tree traversal ), and Aquisition( which implies quite a
 bit based on where it gets executed )- may not be exactly compatible.  Has
 there been any discussion on this?
 

No, but there should be and I'll put it as a section under Martin's
DevelopmentStrategy page



 -Josh Z
 
 
 Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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 )

-- 
Chimezie Thomas-Ogbuji
Consultant
Fourthought Inc.
(303) 583 9900 ext 104
[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] The future of Zope with XML

2000-06-02 Thread Martijn Faassen

Kevin Dangoor wrote:
 Thanks for getting this document going. It's good to see where XML is
 going in Zope.

[note that the zope-xml list may be a better list to discuss these things;
I've cc-ed to there but we might want to move the thread there 
completely]

 I do have a question, though. For me, the main value in XML has been in
 its usefulness as a flexible interchange format. Right now, I can store data
 as objects (either straight Python or ZClasses) in Zope and transform those
 into XML if I need to share it with the outside world (eg RSS).

Right, this is definitely an advantage of XML.

 Similarly,
 though I haven't done this, I believe I can take XML from the outside world,
 parse it and store it in objects in the database.

Right -- XMLDocument does this. It parses the XML into a DOM-like tree,
storing the XML nodes as objects in the database. You still get an XML
view on it, but it's actually all objects.

 Are there advantages to
 storing the data in Zope as XML vs. storing my data as objects?

It can be the same thing. :)

You can use XML to seperate content from layout in a clean fashion,
by storing document contents in an XML format, and providing a translator
of this format into HTML. Pull in the other layout components with
ordinary DTML and you have a web page. I've done this with the original
XMLDocument version. You can write the translator using DTML, using
XMLWidgets. The new XMLDocument will support DTML (and I'll work on
XMLWidgets support), and also XSLT which is a standard to transform
one XML document into another (and into HTML).

If you already decided to use XML for whatever reason, the advantages of
the ZODB come into play. Huge XML documents don't need to be loaded into
memory all at once. You can also edit smaller parts of an XML document 
without disrupting the rest, making for faster editing. *and* you can
manipulate the XML document using DOM and XSLT. Since there are many XML
formats already with new ones being developed all the time, this can
potentially be a very powerful use of the ZODB.

So, if you are already using XML, Zope can be a source of power. If you're
not using XML, you might want to consider using it to store document-style
contents so you can seperate it from layout, and so that you can leverage
DOM, XPath and XSLT. It may be less useful to use XML to store other kinds
of data; that will vary on a case by case basis.

Then there are a number of vague possible future payoffs like being able to
use various XML standard to query the ZODB, provide unique
paths into it, provide pointers and linking facilities, etc.

Regards,

Martijn


___
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] XML in Zope

2000-06-02 Thread Sin Hang Kin

Kevin,

I agree with you, the performance will be better and more powerful.

The thing missing in zope (dtml) now is that we can not store multiple
instance of the same name which is allow with xml:
authorabc/authorauthorcde/author. I hope the xml implementation will
have this.


Rgs,

Kent Sin
-
kentsin.weblogs.com
kentsin.imeme.net


___
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] ZPHP [was Re: [Zope] CHAT]

2000-06-02 Thread Stuart 'Zen' Bishop

On Thu, 1 Jun 2000, [iso-8859-1] Gonçalo Gomes wrote:

 Silver_Surfer: how do you see the future of Zope fighting against PHP space on the 
web?
 Jim: I don't know much (enough) about PHP, but from what I vaguely know, PHP methods 
seem like a logical step.

Hmm... I'm having to setup a PHP web environment for the students next 
semester, and have elected to run it as a CGI application (tie into
existing suid security arcitecture). I'm told there won't be any functionality
loss except, just a bit of performance (?).

If we didn't care about persistance of the PHP engine, it would
be a trivial task to create a PHP method object - just a small
python stub using the CGI libraries to call PHP.

Or even more trivial - I could hack my existing Logger product to
create a dtml-php tag, so you would be able to preprocess your
PHP code with DTML tags or embed PHP output in DTML for standard_html_header
etc. (Is that my foot bleeding?). The standard response to a dtml-python 
tag is that it would make it too PHP like, so dtml-php seems very 
appropriate :-)

And then the next step is to import IMP and other PHP apps into Zope
land...

-- 
Stuart Bishop  Work: [EMAIL PROTECTED]
Senior Systems Alchemist   Play: [EMAIL PROTECTED]
Computer Science, RMIT University



___
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] ZPHP [was Re: [Zope] CHAT]

2000-06-02 Thread Phil Harris

You do lose some functionality using PHP as CGI rather than module:

Persistent DB Connections, :(


- Original Message -
From: "Stuart 'Zen' Bishop" [EMAIL PROTECTED]
To: "Gonçalo Gomes" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: 03 June 2000 00:24
Subject: [Zope-dev] ZPHP [was Re: [Zope] CHAT]


 On Thu, 1 Jun 2000, [iso-8859-1] Gonçalo Gomes wrote:

  Silver_Surfer: how do you see the future of Zope fighting against PHP
space on the web?
  Jim: I don't know much (enough) about PHP, but from what I vaguely know,
PHP methods seem like a logical step.

 Hmm... I'm having to setup a PHP web environment for the students next
 semester, and have elected to run it as a CGI application (tie into
 existing suid security arcitecture). I'm told there won't be any
functionality
 loss except, just a bit of performance (?).

 If we didn't care about persistance of the PHP engine, it would
 be a trivial task to create a PHP method object - just a small
 python stub using the CGI libraries to call PHP.

 Or even more trivial - I could hack my existing Logger product to
 create a dtml-php tag, so you would be able to preprocess your
 PHP code with DTML tags or embed PHP output in DTML for
standard_html_header
 etc. (Is that my foot bleeding?). The standard response to a dtml-python
 tag is that it would make it too PHP like, so dtml-php seems very
 appropriate :-)

 And then the next step is to import IMP and other PHP apps into Zope
 land...

 --
 Stuart Bishop  Work: [EMAIL PROTECTED]
 Senior Systems Alchemist   Play: [EMAIL PROTECTED]
 Computer Science, RMIT University



 ___
 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 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] Basic LoginManager HowTo

2000-06-02 Thread Bill Anderson

Has anyone out there actually sarted _using_ LoginManager with ZODB
storage? IOW, one that is not dependant on LDAP/SQL/etc., but that is
functioning in place of a non-PTK acl_users folder? 

I am starting to play with it (so many toys, so little time...), and
would like to see (if it exists) a basic walkthrough of how to go from:
Folder with no userfolder, LM installed 
  -to-
Folder with LM-acl_users folder, and ZODB member storage.

So, what about it? Anyone got one, or at least could write down the
steps/requirements?

Much Appreciated, 
Bill

___
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] Basic LoginManager HowTo

2000-06-02 Thread Lalo Martins

On Fri, Jun 02, 2000 at 07:29:18PM -0600, Bill Anderson wrote:
 Has anyone out there actually sarted _using_ LoginManager with ZODB
 storage? IOW, one that is not dependant on LDAP/SQL/etc., but that is
 functioning in place of a non-PTK acl_users folder? 

I tried. It's quite easy, except that you have to store the
user's password in a property, and access control is somewhat
broken WRT passwords, so anyone can read anyone's passwords if
they can write DTML.

Now I don't plan to just let anyone write DTML, but I don't
want to leave this hole open because I know I will forget it
sooner or later and open up an exploit.

[]s,
   |alo
   +
--
  Hack and Roll  ( http://www.hackandroll.org )
News for, uh, whatever it is that we are.


http://zope.gf.com.br/lalo   mailto:[EMAIL PROTECTED]
 pgp key: http://zope.gf.com.br/lalo/pessoal/pgp

Brazil of Darkness (RPG)--- http://zope.gf.com.br/BroDar

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