Re: [Zope-dev] mailing list 'noise'

2000-09-29 Thread Rik Hoekstra



Karl Anderson wrote:
 
 Ken Manheimer [EMAIL PROTECTED] writes:
 
I dont see this as a problem: You only create a new list when the
traffic for that proposal gets too great for zope-dev. Threading is
good enough before that point.
  
   Yes, but zope-dev has a relatively high traffic load... Why should you
   have to put up with all that 'noise' if you're only interested in posts
   for your comparatively small discussion?
 
  Yeah - maillists flow by, and not everyone can follow all the traffic all
  the time!! The cool thing about "content-based" mailling lists, where
  people can subscribe to notifications about changes in subthreads, is that
  you just subscribe to the part of the discussion that has your interests!!
 
 I haven't understood this gripe ever since I started reading mail with
 Gnus.  Before anyone groans, I'm not sure that Gnus is ready for
 general use by anyone who doesn't want to learn elisp - but surely
 there's anther reader with these features?


most have features a bit/lot/sufficiently like this. They (apparently)
do not work for everyone. Moreover,not everyone works the same way. 

 
 The point that I'm trying to make is that a mailing list has all the
 strucure needed to keep abreast of an important thread.  I don't think
 it's perfect when you can't afford to miss a single important article,
 but it works great for general lists.

as long as you can follow it. But for prolonged and diverging
discussions? Not quite IMO/Experience. Or for discussions that you fall
into in the middle? And what if you want to follow discussions at
different places, with different tools and you depend on a POP Server or
differential access (POP/IMAP/Web) to a mailserver? 

 I read the
 2-10 articles that I'm probably interested in, and miss the 95% which
 is almost always noise.

The question is why you'd want to receive all this if you don't have to
(as remarked above).
As I understood it, the discussion is less about tools and more about
modes of discussion.

Rik

___
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] StructuredText: Best possible :-S

2000-09-29 Thread Chris Withers

Ken Manheimer wrote:
 As i did in my example, by indentation.  (This is a primary component of
 the "structure" in StructuredText.  Maybe we're not being clear enough
 about that in our explanations of structured text - i would expect that
 not knowing about it could make it much much harder to understand what's
 going on, in general, with StructuredText!)

Yup :-)

This sort of thing is why I don't really like Structrued Text, but it's
probably as good as can be done without nice Wysiwig editing on the
browser side...

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] WikiDot

2000-09-29 Thread Chris Withers

Ken Manheimer wrote:
 (I wonder whether having a single quick ref page for structured text,
 linked to on every edit form, would go a long way to reducing those
 objections.  Particularly if the quick ref page is clear and concise.)

Not really... the fact that you even need one of those is why it's not
really good enough...

   and intrinsically determined and easily adjustable
   organization.
 
  'Easily adjustable' could be difficult...
 
 I was just referring to the ease of reparenting a page - if this isn't
 familiar to you, see the backlinks pages in any zope.org zwiki.

OK, the interface is easy, I was thinking of how I'd implement it.

...but now I think abotu that, it shouldn't be too hard either...

:-)

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] URL Traversability of non-page objects

2000-09-29 Thread Chris Withers

Dieter Maurer wrote:
 
 Chris Withers writes:
  A **page** is the result of applying presentation to data in the
  object system.  A page is a particular result of a URL when viewed
  under certain conditions.
  
   I'd like to add to this:
   components used to make up 'page's should not be URL-visible. Why should
   they be?
   (would this raise issues with XML-RPC?)
 Because, you want to access them for management purposes (e.g.
 change them).

Hmmm... tough problem... I wonder how hard it would be for stuff to
'hidden' until you're logged in?

...probably not that hard, at least for basic authentication...

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] Soft links again

2000-09-29 Thread Ibañez Palomar Juan David



Hi Shane,

and thanks for Symlink, it's a big step towards solve the problem,
but remains an issue...

It would be great if the symbolic link could have a different id than
the object referenced. But with the __of__ based solution "link.id" is
always "referenced_object.id".

How this could be done?


 
 Okay, I've posted a proof of concept.  Please keep in mind that this
 could be dangerous in terms of security, although I've done a couple of
 things to make it safer.  Also, there's currently a buglet in
 acquisition that makes it so that you can only perform the actions on
 the symlink which "anonymous" is allowed to do.
 
 http://www.zope.org/Members/hathawsh/Symlink/index_html
 
 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] Soft links again

2000-09-29 Thread Shane Hathaway

On Fri, 29 Sep 2000, Ibañez Palomar Juan David wrote:

 It would be great if the symbolic link could have a different id than
 the object referenced. But with the __of__ based solution "link.id" is
 always "referenced_object.id".
 
 How this could be done?

I think you'd need a special kind of wrapper.  It would have the
ability to act as if it were the object itself while transparently
overriding specific attributes.  I've pondered creating such
a wrapper before, but it crashed so much that I eventually moved on to
easier stuff. :-)

I think the ability is all there in ExtensionClass, but the details are
quite difficult.

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] Soft links again

2000-09-29 Thread Ibañez Palomar Juan David

 
 On Fri, 29 Sep 2000, Ibañez Palomar Juan David wrote:
 
  It would be great if the symbolic link could have a different id than
  the object referenced. But with the __of__ based solution "link.id" is
  always "referenced_object.id".
  
  How this could be done?
 
 I think you'd need a special kind of wrapper.  It would have the
 ability to act as if it were the object itself while transparently
 overriding specific attributes.  I've pondered creating such
 a wrapper before, but it crashed so much that I eventually moved on to
 easier stuff. :-)
 
 I think the ability is all there in ExtensionClass, but the details are
 quite difficult.
 
 Shane
 

If I've understanded it right it means I must go to C risking my mental
sanity (1), other possibility would be to redesign/reimplement my app (2).
Ummhh... I think I'll try 1, it seems more entertaining :), so wish me luck.

thanks,
david


___
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] Fix for Can't Change Image File Security Settings in Zope 2.2.x

2000-09-29 Thread Chris Withers

Hi,

You may, like me, have noticed that you can't change security settings
on Image and File objects in Zope 2.2.x.

This is because the __call__ method of these objects was removed by the
appropriate bit of __ac_permissions__ wasn't taken out. The patch in the
PS fixes this...

cheers,

Chris

PS:
===
RCS file: /cvs-repository/Zope2/lib/python/OFS/Image.py,v
retrieving revision 1.105.2.12
diff -r1.105.2.12 Image.py
169c169
   'getContentType', '__call__', '')),
---
   'getContentType', '')),
450c450
   'getContentType', '__call__', '')),
---
   'getContentType', '')),

___
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] Only using ZODB, not Zope Re: New Proposal: PersistentBlob

2000-09-29 Thread John D. Heintz

Hi Greg,

Thanks for the pointer.  I briefly looked at this Product and the
CVSMixin Product as well, but have one requirement that unfortunately I
_didn't_ explain clearly in my proposal.

I am not using Zope, only the ZODB so a Zope Product will not help me.

My first goal with the proposal was to get feedback on if my idea is
correct and what implementation problems could occur, i.e. transactions
and file locking.

My second goal is to inspire someone to implement it and merge it into
the official ZODB.  I think that the idea has enough merit and could be
useful for a large number of applications.

We might have the time and need to implement PersistentBlob ourselves,
but I can't say for sure now.

Thanks all,
John

Gregor Heine wrote:
 
  Hi all,
 
  Yesterday I put up a new proposal on the http://dev.zope.org site that
  documents my vision of PersistentBlob.  The main idea is the be able to
  mark blocks of strings (text or binary) content for storage in a file
  system as individual files.  (Or blobs in a relation table.)
 
  The two motivations for this are keeping a ZODB FileStorage small and
  exposing blocks of string content to external processes (i.e. full-text
  indexing).
 
  Thanks for taking a look.
  John
 
 Hi John!
 
 Have you had a look at the ExtFile Product
 (http://www.zope.org/Members/MacGregor/ExtFile)?
 It basically does all the things you want to achive with the PersistentBlob
 (i.e. storing files externally and making them accessible for external
 processes), except that it's not that deeply integrated into the Zope
 machinery and stores the files only in the file system and not in an RDBMS
 (which nevertheless could be implemented).
 
 Cheers, Gregor!

-- 
John D. Heintz
DataChannel, Inc.
Senior Engineer
512-633-1198
[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] mailing list 'noise'

2000-09-29 Thread Ken Manheimer

On Fri, 29 Sep 2000, Rik Hoekstra wrote:

 Karl Anderson wrote:
  I read the 2-10 articles that I'm probably interested in, and miss the
  95% which is almost always noise.
 
 The question is why you'd want to receive all this if you don't have to
 (as remarked above).
 As I understood it, the discussion is less about tools and more about
 modes of discussion.

That's my impression, too.  In fact, this would make a good case in point
- this is part of a rambling discussion originally about, as best as i can
tell, current wiki deficiencies for interactive discussions ("I feel your
Wiki Pain:-)").  Focus in this thread has moved to merits and deficiencies
of mailling lists for discussions - wiki is no longer the center in this
branch, the zope-dev list was for a bit, and use of gnus for effective
filtering of mailling lists is perfect fair game.  I'm glad, though, that
rik brings back in the issue that really concerns me - modes of
discussion.  I'm interested in what they serve.

In fact, i'm *really* interested in "turning answers into stories".  That
is, not just getting answers to questions, but preserving them in a way
that makes them easy to find when they're next needed - organizing them so
they collectively serve to describe the topic they're about, to make the
topic, as a whole, discoverable.  While i think there are many modes of
discussion that can serve this purpose, depending on the application and
collaborative context, i think mailling list discussion threads need more.  
They're a step towards that building-together, but fail to organize beyond
that - so the answers they provide are fragmentary glimpses into the topic
at hand.

One key way wiki documents help bind the fragments is by providing more
"fixed points" around which discussions can range.  The fixed points
are not immutable - they can evolve - but they're easy to point at, and
provide a definite manifestation of the topic at some stage of its life.

The dev.zope.org proposals site is one example where definite subjects are
at hand.  As someone behind the WikiNG proposal, who *wants* to be able to
reap the suggestions and details from a discussion, but knows i won't have
the time for a while to actually concentrate attention on it, i dread
having to collect all the messages, for later review for harvesting.  
Furthermore, messages on the mailling list tend to diverge more and
farther from the topic, than they do when placed within the wiki.

What i'd like the best, for now, is to have discussion happen on the
mailling list *when someone wants to feel something out*, *and then
they're responsible for summarizing in the wiki discussion page, if they
have anything to harvest*.

(Sorry if this message is a bit scattered - i think i saw an opportunity
to tie together a lot of thoughts i have on this subject, but not
sufficient time to do so cleanly, so i'm erring on the side of
just-throw-it-in...)

Ken
[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] why cant i rename an object from an external method

2000-09-29 Thread Andy McKay

Grrr That works fine. But it annoys me I cant use a standard function to
that. I like to use a standard function and use the checking that someone
else wrote.

   old_id = obj.id()
   new_id = ASPNTools.safetymunge(obj.id())

   self = obj.aq_parent
  ob = obj

   self._delObject(old_id)
 if hasattr(ob, 'aq_base'):
   ob=ob.aq_base
  ob._setId(new_id)
   self._setObject(new_id, ob, set_owner=0)

Thanks Shane... phew no Perl necessary.

- Original Message -
From: "Shane Hathaway" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 28, 2000 8:26 PM
Subject: Re: [Zope-dev] why cant i rename an object from an external method


 Andy McKay wrote:
 
  Heres a treat. I'm trying to write an external method to rename objects.
I
  have approx 10,000 to rename so a script would be nice. No problem I
  thought, imitate a forms manage_renameObject and CopySupport.py can do
the
  work.
 
  Rename works fine from the web form, but not from a script.
  (ASPNTools.getsomeobjectsfromstring returns a bunch of objects, Ive
tried
  replicating this with resolve_url and get different namespace error,
could
  this be a clue?).

 I would try using _delObject and _setObject instead.
 manage_renameObject() does some security checks that don't apply in your
 case.

 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 )



___
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] Skinscript tutorial. How's it going?

2000-09-29 Thread topcheese

Just wondering if there is a new time frame.


___
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] ZPL HowTo?

2000-09-29 Thread Lalo Martins

We wished to release the new development version of HiperDom
under the ZPL, but we figured it wouldn't be that simple, as
the license text is all littered with "Digital Creations".

Is it just a matter of s/Digital Creations/Hiperlógica/g? Is
this even legal?

(This message is mostly rethorical, because we already decided
to just release it under the MIT-X11 license anyway, but I feel
this question should be discussed if people want to release
stuff under the ZPL in the future.)

[]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 )




Re: [Zope-dev] How is 'retrieveItem intended to work with TTW Specialists?

2000-09-29 Thread Steve Spicklemire


Thanks so much for the response... 

It turns out, I tried the Python Method and it had the 
same basic problem as the DTML Method... however I've now
moved on, using deletageRetrieve to a new thorny issue. ;-)

When I get an object from of another specialist it appears
that it doies not inherit from my specialist, but from 
*its* specialist. (e.g., my framework specialist has methods
that I want the dataskins to acquire). I've currently got it
wrapped like so:

def retrieveItem(self, key):
""" get an item"""
return self.delegateRetrieve(self, None, key=key).__of__(self)

I've tried several different combinations of __of__ etc, but
none of them seems to allow the dataskin to acquire, for example,
standard_html_header from my specialist. Is there any way to 
enforce acquisition at this level?

thanks!
-steve


 "pje" == Phillip J Eby [EMAIL PROTECTED] writes:

pje At 08:00 AM 9/25/00 -0500, Steve Spicklemire wrote:
  So my retrieve item gets called. *unfortunately* it gets
 called without any namespace parameter... so my retrieveItem
 DTML method has no way to acquire a namespace so that it can
 delagate to something else!
 
 So... here is what I did... I defined a method in my Python
 subclass of Specialist..
 
 class MarketItemManager(ZPatterns.Specialists.Specialist): """A
 Market Item Manager"""
 
 # Specify a name for the item type:
 meta_type='MarketItemManager'
 
 def retrieveItem(self, key): """ get an item"""  return
 self.__of__(self).delegateRetrieve(self, None, key=key)
 
 Then I made a DTML method called 'delegateRetrieve' like so:
 
 dtml-return "myGreatSite.ThingManager.getItem(key)"
 
 this way, my integrator can edit 'delegateRetrieve' to point to
 whatever Specialist he wants to... and I have a Python
 implementation of retrieveItem.
 
 Does this sound OK? Am I working way too hard here?  (I feel
 like I am! ;- )
 

pje Remember in the code where I have "# XXX DTML check?"  That's
pje because I was anticipating your problem, but since I didn't
pje personally need to do what you're doing yet, I didn't
pje implement it.  For one thing, I was waiting to see if Zope
pje core method binding would get fixed.  Unfortunately, I'm not
pje sure that Zope method binding is going to be available for
pje anything but PythonMethods in 2.3.  As of right now, however,
pje you should be able to use a PythonMethod for retrieveItem,
pje rather than a DTML Method, and it should work.

pje In short, even now, delegateRetrieve should not be necessary.
pje You should be able to implement retrieveItem using a
pje PythonMethod or a DTML Document rather than a DTML Method.
pje (I say *should* because I have not tried it personally.)


___
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] Namespace trouble

2000-09-29 Thread Dieter Maurer

Martin =?ISO-8859-1?Q?Gr=F6nemeyer?= writes:
  if've had little namespace problems with this code-snipped (dtml-method):
  
  dtml-with REQUEST
   dtml-in "[1,2,3,4,5,6,7,8]"
dtml-call "REQUEST.set('row_index',_['sequence-index'])"
dtml-var "REQUEST.get('row_index')"
dtml-var row_index
   /dtml-in
  /dtml-with
  
  This produces an output like this: 0,0,0,0,0,0,... 
When I execute your code (Zope 2.2.2), I get the expected
result.

For me, it seems, that you have a variable named "row_index"
in "REQUEST.environ" with value "0".
According to source documentation (ZPublisher.HTTPRequest),
"environ" has precedence over "other" (where ".set" places
it definition).

Try a different name with a very low change of being already
used: e.g. "row_index" -- "xyz123456".


Dieter

___
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] Skinscript tutorial. How's it going?

2000-09-29 Thread Phillip J. Eby

At 06:33 PM 9/29/00 GMT, [EMAIL PROTECTED] wrote:
Just wondering if there is a new time frame.


FWIW, I have begun writing a SkinScript reference document on the ZPatterns
Wiki.  Lots of sections are just outlines at the moment, but it's already
much better than any other available information on SkinScript (like my
meanderings on the list and in chats).


___
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] How is 'retrieveItem intended to work with TTW Specialists?

2000-09-29 Thread Phillip J. Eby

At 03:14 PM 9/29/00 -0500, Steve Spicklemire wrote:

Thanks so much for the response... 

It turns out, I tried the Python Method and it had the 
same basic problem as the DTML Method... however I've now
moved on, using deletageRetrieve to a new thorny issue. ;-)

When I get an object from of another specialist it appears
that it doies not inherit from my specialist, but from 
*its* specialist. (e.g., my framework specialist has methods
that I want the dataskins to acquire). I've currently got it
wrapped like so:

def retrieveItem(self, key):
""" get an item"""
return self.delegateRetrieve(self, None, key=key).__of__(self)

I've tried several different combinations of __of__ etc, but
none of them seems to allow the dataskin to acquire, for example,
standard_html_header from my specialist. Is there any way to 
enforce acquisition at this level?

You can use aq_base before the __of__, but I wouldn't recommend it, because
you'll be forcibly ripping off security-related data.  Probably aq_explicit
would work better, since it would prevent default acquisition but leave
security acquisitions relatively intact.

I still suspect, though, that your design is not optimal.  If you actually
need a "bridge" specialist that lets you change the behaviors of the thing
you're accessing, then you should really just build a bridge specialist and
not simply do directly delegated retrieval.  What you want is to set up a
rack in the specialist that creates a virtual object which gets all its
attributes (the ones you care about, anyway) from an object retrieved from
the other specialist.  SkinScript example:

WITH otherSpecialist.getItem(self.id)
COMPUTE theRealThing = (RESULT is None) and NOT_FOUND or RESULT

WITH self.theRealThing COMPUTE
myAttr1 = RESULT.theirAttr1, 
myAttr2 = theirAttr2, # equivalent to myAttr2 = RESULT.theirAttr2
SomeAttr, # equivalent to SomeAttr = RESULT.SomeAttr
myAttr5 = theirAttr1 * theirAttr6

# Shorthand way of copying attributes with the same names
WITH self.theRealThing COMPUTE foo,bar,baz

You would put this in a script inside a rack in your "bridge" specialist.
You would set up the rack to be "non-persistent" and use "theRealThing" as
the existence attribute.  Now, when you access the rack, it will create a
dummy object and try to look at its "theRealThing" attribute.  This will
cause the SkinScript to call the other Specialist and attempt retrieval.
If it succeeds, theRealThing will equal the object and the Rack will
consider the object to exist in the bridge specialist.  If it fails,
theRealThing will be a non-existent attribute and the Rack's getItem will
return None.

Let's say it has succeeded.  You now have an object with no attributes
loaded other than 'id' and 'theRealThing'.  You attempt to access attribute
SomeAttr.  The second SkinScript declaration fires, and computes the values
of myAttr1, myAttr2, SomeAttr, and myAttr5, caching them in the DataSkin.
Voila.  You now have a completely transformed object, in the context of
*your* specialist, with *your* attribute names.  It has no leftover
acquisition context, but of course you had to have permission to access all
those attributes on the object and to the specialist you retrieved it from.
 But here's the real kicker...  You determine in *your* rack the precise
ZClass it will be implemented as.  In effect, you have rewrapped an
object's data into another class.

Okay, so that works for reads.  What about writes?  That's a little more
complex, as you'll need to write something like:

STORE foo,bar
USING self.theRealThing.manage_changeProperties(foo=self.foo,bar=self.bar)

For whatever combinations of properties are applicable.  If the properties
are on a sheet, the USING expression gets more complicated.  Note, too,
that we could have done transformations on the 'id' to look something up,
and that we could also have multiple racks, each doing transformations from
different Specialists.

Now, you may be asking yourself, "This all looks incredibly flexible, but
is it efficient?"  Hell no, of course not.  You are much better off, if you
have the option, of specifying to your framework's user the requirements
you have for objects in that part of your system.  Then, when they are
designing their system, they can get the names and features right, and you
call *their* specialist for what you need.  If they didn't do it the easy
way, then it's again *their* responsibility to re-cast your whitebox as a
bridge.

(Note, by the way, that if the end-user's raw data is coming from something
like an SQL database in the first place, then all they have to do is map
from SkinScript to SQL, and this is *much* more efficient than mapping
Specialist-Rack-Specialist-Rack-SQL, which involves many more layers of
object creation, method calls, and security checks.)

To put it another way: design your whitebox specialist how you want it.
Make it complete, but of course some parts will have to be changed if
someone wants to 

[Zope-dev] two-phase-commit question

2000-09-29 Thread Kapil Thangavelu

ZOPE_HOME/lib/python/Shared/DC/ZRDB/TM.py

Glancing over the Transaction TM mixin class... i noticed a line
commit=tpc_abort=tpc_begin

i can understand tpc_begin=commit, but the abort seems strange. 
if an abort happens in the two phase commit the equality doesn't 
make sense to me.

whats going on here? Is this meant to be overidden?

TIA

Kapil

___
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] Deleting data using ZSQL

2000-09-29 Thread Kees de Brabander


- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, September 29, 2000 5:17 AM
Subject: [Zope] Deleting data using ZSQL


 Hi,
 
 I am writing a dtml method that deletes data from a database, and I found
 myself unable to do this.  It seems that ZSQL is used to insert, update
 and query a database. but can not use
 "delete from table where var=dtml-var foo"
 

delete from table where var= dtml-sqlvar foo type=string

in your Z SQL method will do the trick, at least it does for me

cb



___
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] Deleting data using ZSQL

2000-09-29 Thread Chris Withers

[EMAIL PROTECTED] wrote:
 "delete from table where var=dtml-var foo"
 
 I am surprised at this behaviour.  Am I doing somehting worng? or this is
 how it works?  Is there any information on how to do this somewhere???

This should work :-)

What error messaegs are you getting?
What DB and DA are you using?
What version of Zope?

...any other info you can think of might be useful...

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] dtml-with equivalent in external methods?

2000-09-29 Thread Phil Harris

Hi all,

I know I've seen the answer to this somewhere, but I'm buggered if I can
find it.

Anyone know offhand how to do an equivalent to dtml-with in an external
method?

tia

Phil
[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] Property problem - still the same...

2000-09-29 Thread Lars Heber

Hello again,

I recently set a question about nested properties.

Unfortunately, we didn't come to a proper solution.

I was told to use ZClasses, and I read a lot of documentation about it.
But I found out that this isn't the thing I was searching for.

So, now I'll try it again, very concrete this time:

In my root folder, I have a property enterpriseName (string) =
"myEnterprise".

Furthermore I have an arbitrary DTML document, and I want to include my
global property enterpriseName in the title property of this document so
that the title of the document is "myEnterprise" at the end.

The sense of that is that when I change the value of enterpriseName
automatically all titles are updated.

It is not possible to include this enterpriseName into
standard_html_header or similar, because there will be many documents,
and only some of them need the enterpriseName in their titles, others
want to add an own text to the enterpriseName resulting in e. g. "This
is the Homepage of XYZ, who is working at myEnterprise".

I generally just want to insert one property into another...

Please, please help me, I'm despairing in the meantime...

Lars


___
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] Property problem - still the same...

2000-09-29 Thread Peter Sabaini


hi

afaik its not possible to nest properties.

what about dtml method mytitle in the root folder consisting of

  dtml-var enterprisename - dtml-var title

or something like this? this will acquire title from the current
document and enterprisename from the rootfolder provided theres not
another enterprisename in the acquisition path.

hth peter.

On Fri, 29 Sep 2000, Lars Heber wrote:

:Hello again,
:
:I recently set a question about nested properties.
:
:Unfortunately, we didn't come to a proper solution.
:
:I was told to use ZClasses, and I read a lot of documentation about it.
:But I found out that this isn't the thing I was searching for.
:
:So, now I'll try it again, very concrete this time:
:
:In my root folder, I have a property enterpriseName (string) =
:"myEnterprise".
:
:Furthermore I have an arbitrary DTML document, and I want to include my
:global property enterpriseName in the title property of this document so
:that the title of the document is "myEnterprise" at the end.
:
:The sense of that is that when I change the value of enterpriseName
:automatically all titles are updated.
:
:It is not possible to include this enterpriseName into
:standard_html_header or similar, because there will be many documents,
:and only some of them need the enterpriseName in their titles, others
:want to add an own text to the enterpriseName resulting in e. g. "This
:is the Homepage of XYZ, who is working at myEnterprise".
:
:I generally just want to insert one property into another...
:
:Please, please help me, I'm despairing in the meantime...
:
:Lars
:
:
:___
: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 )
:

-- 

_
peter sabaini, mailto: [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] zope needs webdav global access *ON/OFF* feature

2000-09-29 Thread Júlio Dinis Silva

Hi all,

I think zope MUST have a way to disable webdav access.
Running a webdav client on some zope sites I found in almost all
of them things like test_html index_html_old and some other
forgiven methods that programmers leave on their applications.
Depending on what test programmers were doing in this methods
one could find a way to do some DOS on does sites, just to begin.

I mean, even if the user dont have permissions to edit/save methods,
just the fact that he is browsing my structure and viewing my methods is bad 
for security.

I looked at source and the webdav implementation is class specific
implemented, i.e, only objects of classes that import webdav stuff and
implement it are Published by zope to a webdav client.

I tryed to find a *central* switch to disable it on ZServer or ZPublisher, 
but no luck. I also tryed to find something like
domain restriction which could be another way to disable webdav.
The solution of disable Access Contents Information to anonymous isnt
pratical on a complex site already in production.

I'll try to find a way to disable/restrict the webdav access.

Any suggestion?

Best Regards,
Júlio Dinis Silva


_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.


___
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] Uploading images my way

2000-09-29 Thread Danny William Adair

Hi all!

How can I upload/change an image in my zodb using custom forms. A call to
"manage_upload" seems to always take me to a feedback form saying "Your
changes have been saved.". How can I upload using customized forms _only_?

tia Danny


___
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] Suggestion: Zope.org, products and testing...

2000-09-29 Thread J. Atwood

At 12:29 PM +0900 9/29/2000, Alexander Schonfeld wrote:
?On the zope.org site, how about adding a property for products: "tested
versions of Zope".

That way we could know, without doing all the testing ourselves, whether
or not a product was useable.

I second that. It should also be by release version and be able to 
handle multiple entries. (2.1.6, 2.1.4, 2.2.1, 2.2.2).

J

___
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] private Yihaw folders and yihaw_latest method.

2000-09-29 Thread Didier Georgieff

Hello,

i have a security/viewing concern.

I have some Yihaw folders who are not public. I removed the "view" permission 
on the folder, and trying to get in call the authentication windows. Fine.

On my main page, i have the whatsnew, latest and toplevel methods with the 
skip_unauthorized option within the toplevel dtml-in.

If i only have the "view" permission off, the yihaw folder and subfolders are still 
listed on the toplevel method.
If i remove also the "access content" on the yihaw folder , no more listing on 
toplevel. Fine.

But, when i do that, the "latest" method raise the authentication window, and 
even a manager role fails, it's an autorisation problem on the Catalog.

Any idea for solving that ?
Thanks in advance.


* TRACEBACK *
Unauthorized
You are not authorized to access approved. 
[... SKIP ...]

  File /zope/2-1-6-
clean/lib/python/DocumentTemplate/DT_In.py, line 611, in 
renderwb
(Object: 
Catalog(bobobase_modification_time=ZopeTime()-14,
  bobobase_modification_time_usage='range:min',
  sort_on='bobobase_modification_time',
  sort_order='reverse'))
  File /zope/2-1-6-
clean/lib/python/DocumentTemplate/DT_With.py, line 148, 
in render
(Object: Catalog.getobject(data_record_id_))
  File /zope/2-1-6-
clean/lib/python/DocumentTemplate/DT_Util.py, line 329, 
in eval
(Object: _.has_key('approved') and approved or not 
_.has_key('approved'))
(Info: approved)
Unauthorized: (see above)


--
Didier Georgieff
DDAF du Bas-Rhin - Cellule SIG 
2, rue des Mineurs 67070 Strasbourg Cedex
tél : 03.88.25.20.33 - fax : 03.88.25.20.01
email : [EMAIL PROTECTED]
SIT du Bas-Rhin : http://www.bas-rhin.sit.gouv.fr
GéoWeb http://sertit10.u-strasbg.fr

___
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: private Yihaw folders and yihaw_latest method.

2000-09-29 Thread Didier Georgieff

Soren,
Works like a charm. Thanks.
Never used dtml-try before, but it looks like a great feature. I'll look 
deeper
Didier.

Le 29 Sep 00, à 15:08, Søren Roug a écrit :

 Yes, put a dtml-try dtml-except /dtml-try around the problem. Look in
 yihaw_whatsnew for an example.
 
 || -Original Message-
 || From: Didier Georgieff [mailto:[EMAIL PROTECTED]]
 || Subject: "private" Yihaw folders and yihaw_latest method.

 || If i remove also the "access content" on the yihaw folder , 
 || no more listing on toplevel. Fine.
 || 
 || But, when i do that, the "latest" method raise the 
 || authentication window, and 
 || even a manager role fails, it's an autorisation problem on 
 || the Catalog.


___
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] logout from basic authentication ... almost

2000-09-29 Thread Didier Georgieff

Hello,

On the archive i got the way to logout from the basic authentication.

i have DTML method called "logout"
with only :

dtml-raise Unauthorized
   H1Logout requested. OK/H1
/dtml-raise

Calling the logout method calls the authenticated window. And i 
can give a new id/pass. So login as a new user works fine.

But if i only want to became Anonymous again, when i click on the 
CANCEL button, i have theH1Logout requested. OK/H1 
message at the end of the regular traceback with the Unauthorized 
error..

I tried to modify my standard_error_message to catch it but with no 
luck (i still catch other errors within my standard_error_message 
for generate a clean page).

Anyone succeeded in generating a clean "you've been logout" page 
with this method ?

Didier.

___
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] Zope sites DOS

2000-09-29 Thread Júlio Dinis Silva

Hi all,

all you that have sites running zope, its better  to optimize your
applications deleting methods you do not use anymore and
check for you External/Python Methods anonymous permissions.

I've just tested some DOS on sites running zope and ppl take care
with your methods permissions because finding them by webdav or
www.yoursite.com/objectIds its just a step to do bad things to your sites.

Take care ;-)

Best Regards,
Júlio Dinis Silva
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.


___
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] is www.zope.org down??

2000-09-29 Thread Gilles Lavaux







Re: [Zope] Deleting data using ZSQL

2000-09-29 Thread Phil Harris

Steve,

Your user for the dataase does have permission to delete does it?

Phil
- Original Message -
From: "Steve Drees" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, September 29, 2000 3:00 PM
Subject: RE: [Zope] Deleting data using ZSQL




  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
  [EMAIL PROTECTED]
  Sent: Thursday, September 28, 2000 10:17 PM
  To: [EMAIL PROTECTED]
  Subject: [Zope] Deleting data using ZSQL
 
 
  Hi,
 
  I am writing a dtml method that deletes data from a database, and I
found
  myself unable to do this.  It seems that ZSQL is used to insert, update
  and query a database. but can not use
  "delete from table where var=dtml-var foo"


 delete from this_table where var=dtml-sqlvar foo type=string
 is what I use (Changing type accordingly of course).

 

 ___
 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] manage tabs within my standard_html_header

2000-09-29 Thread Didier Georgieff

Hello,

I want to use some standard manage tabs within my site design.

1 - If i call url/manage_main it brings the tabs *without* my header 
and footer.

2 - if i put a method manage_mylook with 

dtml-var standard_html_header
 dtml-var manage_main
dtml-var standard_html_footer

it works fine for *this* tab, but fails if i call the other tabs from this 
screen.

3 - i was thinking about having all manage_xxx methods (calling 
the proper manage_xxx) in my root, but infinite loop.

Is there a way to have *all* the allowed tabs working within my 
header/footer framework ? or do i have to rewrite the management 
screen calling the right functions each time ;- ?

Thanks in advance.
Didier.

___
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] Deleting data using ZSQL

2000-09-29 Thread jpenny

On Thu, Sep 28, 2000 at 11:17:03PM -0400, [EMAIL PROTECTED] wrote:
 Hi,
 
 I am writing a dtml method that deletes data from a database, and I found
 myself unable to do this.  It seems that ZSQL is used to insert, update
 and query a database. but can not use
 "delete from table where var=dtml-var foo"
 
 Two things, both previusly said, but both worth expanding on:

1)  What you are doing is not type-safe and not data-safe.  
If var is a string, for example,
that contains "this; delete from table;" You would probably not like
the result.  (Most SQLs would delete everything in the table!).

At least, you have to do
"delete from table where var='dtml-var foo'"`  (if var is string).

This is still not data-safe.   A string like 
"this'; delete from table; update table where var=NAME set var='"
is just as nasty as the previous one, although it is a bit harder
for a drooling idiot to think of.

delete from table where var=dtml-sqlvar foo type=string is perfectly
data-safe.  Dtml-sqlvar does two things for you:  It embeds the item
in the type of quotes appropriate for the TYPE= construct, AND it 
quotes (escapes) any characters passed to it.  This makes sure that
any strings are strings, and cannot contain hidden live commands.

(It would make the second example expand to something like

delete from table where 
var='this\'; delete from table; update table where var=NAME set var=\''

And this is a perfectly legal SQL statement that probably does no
deletion, but does no harm either!

2)  You may be seeing a DB-admin problem, rather than a ZSQL problem,
make sure your Zope DB-user account has delete permission.

Jim Penny

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

2000-09-29 Thread Erno Kuusela

Hello,

i'm obviously missing something obvious, but how does one
execute arbitrary sql statements from an external method?

   -- erno


 PGP signature


[Zope] remind me something: ZODB1 - ZODB2 ??

2000-09-29 Thread Gilles Lavaux




Hello

How to comvert a ZOPE 1 exported file into a 
ZOPE 2 ??
I have done it several time, but a long time 
ago. And the information is very difficult to find, at least for 
me.


Gilles


Re: [Zope] Uploading images my way

2000-09-29 Thread Peter Bengtsson

 How can I upload/change an image in my zodb using custom forms. A call to
 "manage_upload" seems to always take me to a feedback form saying "Your
 changes have been saved.". How can I upload using customized forms _only_?
 

dtml-call "_.getitem(myID).manage_upload(myFile)"

For the myID in the form you type in the ID of the object. Always remember to 
"_.getitem" this, since it's an object.

together with 

form action=dtml-var URL method=post enctype="multipart/form-data"
input type=file name=myFile
input name=myID
input type=submit value="Good Luck!"
/form

NOTE.
If you want to do the 

 tia Danny



___
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] Class variables

2000-09-29 Thread seb

Hi all

I keep finding references everywhere to class variables (e.g. that
belong to a class rather than an instance) in ZClasses.  I even found
some discussions about it in the Zope archive.  But although the
consensus seems to be that you can do it, no-one seems to know how.

Does anyone know how / where you can define them?

Seb.

___
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] How to change Unauthorized error message?

2000-09-29 Thread Chris Withers

Andy McKay wrote:
 Sure I suppose. How of course to implement this is another issue, as errors
 get thrown up to /lib/python/ZPublisher/HTTPResponse.py and it would be get
 to trap them before then.

Well, that's what Tres Seaver thought:

http://classic.zope.org:8080/Collector/1049/view

(he makes some good points about string exceptions too...)

However, Jim Fulton though it would be possible:

http://classic.zope.org:8080/Collector/1298/view

Sadly, no progress seems to have been made :-(

  I don't like the way Zope does this for _all_ standard_html_error's,
  especially as it tacks the error on the end of the HTML in production
  mode, thus generating technically incorrect HTML (I think? ;-)
 
 Absolutely, not just that its incorrect HTML, but also that it can expose
 implementation issues such as oh that site GUF, I know a hole there...

...nice...

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 )




Re: [Zope] dtml-in sorting problem

2000-09-29 Thread Michael Bernstein

Tim Cook wrote:
 
 Michael Bernstein wrote:
 
  Here's my problem: I want to sort a list of objects on a property that
  not all items have. So I'm doing this:
 
  dtml-in sort=someProperty,someOtherProperty
 
  The problem is that those items that have a blank someProperty are
  listed first, when I want them at the bottom of the list. I don't want
  to reverse the entire sort order, I just want blank values treated as
  being larger than any other value.
 
 Insert a chr(255) as the first character by default. It'll need
 to be trimmed off if the property becomes populated.

Sounds good, how do I do that?

Michael Bernstein.

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

2000-09-29 Thread jpenny

On Fri, Sep 29, 2000 at 06:19:35PM +0300, Erno Kuusela wrote:
 Hello,
 
 i'm obviously missing something obvious, but how does one
 execute arbitrary sql statements from an external method?

Look at 
http://www.zope.org/Members/jpenny/Accessing_a_ZSQL_Method_from_an_External_Method

Now think about a SQL method with parameter body and template like:
dtml-var body

You can now do anything by supplying body as an argument.


Note.  This is  really BAD idea.  By doing this, you will construct
a web accessible method which permits anyone with access rights to 
the external method to do anything at all your database.  Not good.

Even though it is irritating from a programmer's point of view, 
it is much better to define a series of restricted ZSQL methods
that do as little as possible.  This permits far more damage control.



 
-- erno
 



___
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] LocalForum_wAdm import error

2000-09-29 Thread Mario Olimpio de Menezes


Hi,

I'm trying to import LocalForum_wAdm and I'm getting the
following error:

Zope Error

   Zope has encountered an error while publishing this
resource. 

   Error Type: ImportError
   Error Value: No module named ZnolkSQLWizard.Wizard


I have LocalFS installed (0.9.5). What else I'm missing?
Thanks,
BTW, I'm looking for some product to serve files for an
intranet. It should be used more or less in the following way:

1. anonymous user can browse the tree and select files for download 

2. registered users can upload, delete, rename and copy files, as well
as download.

Does somebody know some product that do this or can serve as
basis for its development?
Thanks again


Mario O.de Menezes"Many are the plans in a man's heart, but
IPEN-CNEN/SP is the Lord's purpose that prevails"
http://curiango.ipen.br/~mario Prov. 19.21
   http://www.revistalinux.com.br


___
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] ZMySQLDA instal Import Error problem

2000-09-29 Thread Richard Moon

Installing MySQLDA-0.1.2 and running

python build.py

I get the error

Import Error: ./_mysqlmodule.so: undefined symbol: uncompress

Any clues ? I've just installed the latest (3.23.25) MySQL rpms on Linux 
6.1, including the client and development libraries, this seems to have put 
stuff in usr/lib and usr/lib/mysql so I made sure that these paths were in 
/etc/ld.so.conf and re-ran /sbin/ldconfig.

Here's the full output - thanks in advance.


rm -f *.o *~
rm -f *.a tags TAGS config.c Makefile.pre python sedscript
rm -f *.so *.sl so_locations
VERSION=`python -c "import sys; print sys.version[:3]"`; \
installdir=`python -c "import sys; print sys.prefix"`; \
exec_installdir=`python -c "import sys; print sys.exec_prefix"`; \
make -f ./Makefile.pre.in VPATH=. srcdir=. \
 VERSION=$VERSION \
 installdir=$installdir \
 exec_installdir=$exec_installdir \
 Makefile
make[1]: Entering directory `/opt/Zope-2.2.1/lib/python/Products/MySQLdb-0.1.2'
sed -n \
  -e '1s/.*/1i\\/p' \
  -e '2s%.*%# Generated automatically from Makefile.pre.in by sedscript.%p' \
  -e '/^VERSION=/s/^VERSION=[]*\(.*\)/s%@VERSION[@]%\1%/p' \
  -e '/^CC=/s/^CC=[  ]*\(.*\)/s%@CC[@]%\1%/p' \
  -e '/^CCC=/s/^CCC=[]*\(.*\)/s%#@SET_CCC[@]%CCC=\1%/p' \
  -e '/^LINKCC=/s/^LINKCC=[  ]*\(.*\)/s%@LINKCC[@]%\1%/p' \
  -e '/^OPT=/s/^OPT=[]*\(.*\)/s%@OPT[@]%\1%/p' \
  -e '/^LDFLAGS=/s/^LDFLAGS=[]*\(.*\)/s%@LDFLAGS[@]%\1%/p' \
  -e '/^LDLAST=/s/^LDLAST=[  ]*\(.*\)/s%@LDLAST[@]%\1%/p' \
  -e '/^DEFS=/s/^DEFS=[  ]*\(.*\)/s%@DEFS[@]%\1%/p' \
  -e '/^LIBS=/s/^LIBS=[  ]*\(.*\)/s%@LIBS[@]%\1%/p' \
  -e '/^LIBM=/s/^LIBM=[  ]*\(.*\)/s%@LIBM[@]%\1%/p' \
  -e '/^LIBC=/s/^LIBC=[  ]*\(.*\)/s%@LIBC[@]%\1%/p' \
  -e '/^RANLIB=/s/^RANLIB=[  ]*\(.*\)/s%@RANLIB[@]%\1%/p' \
  -e '/^MACHDEP=/s/^MACHDEP=[]*\(.*\)/s%@MACHDEP[@]%\1%/p' \
  -e '/^SO=/s/^SO=[  ]*\(.*\)/s%@SO[@]%\1%/p' \
  -e '/^LDSHARED=/s/^LDSHARED=[  ]*\(.*\)/s%@LDSHARED[@]%\1%/p' \
  -e '/^CCSHARED=/s/^CCSHARED=[  ]*\(.*\)/s%@CCSHARED[@]%\1%/p' \
  -e '/^SGI_ABI=/s/^SGI_ABI=[]*\(.*\)/s%@SGI_ABI[@]%\1%/p' \
  -e 
'/^LINKFORSHARED=/s/^LINKFORSHARED=[]*\(.*\)/s%@LINKFORSHARED[@]%\1%
/p' \
  -e '/^prefix=/s/^prefix=\(.*\)/s%^prefix=.*%prefix=\1%/p' \
  -e 
'/^exec_prefix=/s/^exec_prefix=\(.*\)/s%^exec_prefix=.*%exec_prefix=\1%/p' \

  /usr/lib/python1.5/config/Makefile sedscript
echo "/^#@SET_CCC@/d" sedscript
echo "/^installdir=/s%=.*%= /usr%" sedscript
echo "/^exec_installdir=/s%=.*%=/usr%" sedscript
echo "/^srcdir=/s%=.*%= .%" sedscript
echo "/^VPATH=/s%=.*%=  .%" sedscript
echo "/^LINKPATH=/s%=.*%=   %" sedscript
echo "/^BASELIB=/s%=.*%=%" sedscript
echo "/^BASESETUP=/s%=.*%=  %" sedscript
sed -f sedscript ./Makefile.pre.in Makefile.pre
/usr/lib/python1.5/config/makesetup \
  -m Makefile.pre -c /usr/lib/python1.5/config/config.c.in Setup 
-n  /usr
/lib/python1.5/config/Setup.thread /usr/lib/python1.5/config/Setup.local 
/usr/li
b/python1.5/config/Setup
make -f Makefile do-it-again
make[2]: Entering directory `/opt/Zope-2.2.1/lib/python/Products/MySQLdb-0.1.2'
/usr/lib/python1.5/config/makesetup \
  -m Makefile.pre -c /usr/lib/python1.5/config/config.c.in Setup 
-n  /usr
/lib/python1.5/config/Setup.thread /usr/lib/python1.5/config/Setup.local 
/usr/li
b/python1.5/config/Setup
make[2]: Leaving directory `/opt/Zope-2.2.1/lib/python/Products/MySQLdb-0.1.2'
make[1]: Leaving directory `/opt/Zope-2.2.1/lib/python/Products/MySQLdb-0.1.2'
gcc -fPIC  -I/usr/include/mysql -g -O2 -I/usr/include/python1.5 
-I/usr/include/p
ython1.5 -DHAVE_CONFIG_H -c ./_mysqlmodule.c
./_mysqlmodule.c: In function `_mysql_ConnectionObject_num_fields':
./_mysqlmodule.c:909: warning: passing arg 1 of `mysql_num_fields' from 
incompat
ible pointer type
gcc -shared  _mysqlmodule.o  -L/usr/lib/mysql -lmysqlclient -o _mysqlmodule.so
Traceback (innermost last):
   File "build.py", line 14, in ?
 import MySQLdb
   File "MySQLdb.py", line 19, in ?
 from _mysql import *
ImportError: ./_mysqlmodule.so: undefined symbol: uncompress

Thanks

Richard

Richard Moon
[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] Two inquiries

2000-09-29 Thread Rudd-O

Hey there people,

First, the customary thanks for such a great product.  
Second - I have two problems.  First one is that I got 
zope compiled for linux then installed Login Manager 
then installed ZPatterns, but when trying to compile 
DynPersist.c it can't find ExtensionClass.h.  It 
honestly isn't in my system tho I have python and 
python-devel installed.

Second, I was gonna use LoginManager for this project:  
I'm building an automated proxy, mail router, security 
manager, based on users, so that the administrator can 
restrict its users access to chat, web proxy, 
filesharing via samba, etcetera.  BUT I can't seem to 
find the right object to select and associate 
properties for my users (user X can use computer Y) 
neither can I find a product that will contribute those 
users to /etc/passwd and /etc/smbpasswd.  Any ideas?

Thanks in advance.  Please reply either in private mail 
or with CC to mine.

Manuel

--
   Universidad Federico Santa Maria - Campus Guayaquil

___
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] python methods

2000-09-29 Thread Rudd-O

Oh, another thingy:

An object called Python method is supposed to appear on 
the Add list? or am I supposed to emulate it with some 
kind of external method and files?  If that's the case, 
well, sad kludge.  Please let me know.

--
   Universidad Federico Santa Maria - Campus Guayaquil

___
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] sequence-item is a String? (was: Calling objects with arguments in asequence)sequence)

2000-09-29 Thread Dieter Maurer

seb writes:
  If you do:
  
  dtml-in "objectValues('Foo Thing')"
   dtml-let thing=sequence-item
   dtml-var "thing.id()"
   /dtml-let
  /dtml-in
"sequence-item" is not a string.

However, dtml-let ... xxx=name ...
calls "name" (if callable) like any name argument to a
"dtml" tag.

Use "dtml-let thing="_.getitem('sequence-item')".


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] LocalForum_wAdm import error

2000-09-29 Thread Dieter Maurer

Mario Olimpio de Menezes writes:
   I'm trying to import LocalForum_wAdm and I'm getting the
  following error:
  
  Zope Error
  
 Zope has encountered an error while publishing this
  resource. 
  
 Error Type: ImportError
 Error Value: No module named ZnolkSQLWizard.Wizard
The error message is quite suggestive.

Apparently, your package "ZnolkSQLWizard" does not contain
a "Wizard" module. Maybe, you have to upgrade (or install) the
"ZnolkSQLWizard" product.



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] Calling objects with arguments in a sequence

2000-09-29 Thread Dieter Maurer

Tres Seaver writes:
  You were very close -- the trick here is that 'objectValues' returns
  real objects, not IDs.  Try this (untested)::
  
dtml-in "objectValues( [ 'Photo' ] )"
 dtml-let photo=sequence-item !-- alias so we can use in expr! --
  dtml-var "photo( display='thumbnail' )"
 /dtml-let
/dtml-in
This, probably, will not work, as *ALL* name arguments (as e.g.
in dtml-let  xxx=name ...)
call the object, if it is callable.

You can use "_.getitem('sequence_item')" to get an object itself
and not the result of calling the object.


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] Getting properties of objects

2000-09-29 Thread Dieter Maurer

Daniel Rusch writes:
  I am trying to build a property seach engine that will search an entire
  Zope site for a names property 
Have a look at "ZopeFind" and the property API.

"ZopeFind" is the magic behind Zope's "find" support.
It can search a complete subtree and return the list
of objects satisfying several criteria.

The property API allows you to test for a property.
I think, you can ask for the list of properties, too.


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] dtml-with equivalent in external methods?

2000-09-29 Thread Dieter Maurer

Phil Harris writes:
  Anyone know offhand how to do an equivalent to dtml-with in an external
  method?
Do you have a namespace (i.e. a DocumentTemplate.DT_Util.TemplateDict)?

If so, you use its push method.

If the thing, you would like to "with" is an object
(rather than a mapping), you would wrap it into
a "DocumentTemplate.DT_Util.InstanceDict" before it is
being pushed.



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] iterating through ids and getting their properties

2000-09-29 Thread Dieter Maurer

Aaron Payne writes:
  I have a list of ids which correspond to instances in a folder.  I want to 
  iterate through the list and display their properties.
  I get an attribute error when rendering the page.
  
  dtml-in pendlist
  dtml-call "REQUEST.set('theContainer', _.getattr(transactionInstances, 
  _['sequence-item']))"
  
  Error Type: AttributeError
  Error Value:

Your "pendlist" contains an element that is *NOT* an id in
"transactionInstances". It is the empty string (or consists only
of spaces). That is why your "Error Value" does not show
anything.


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] Reading/Parsing HTML Files from another server

2000-09-29 Thread Dieter Maurer

seb writes:
  You could write a simple external method that uses httplib, e.g.
"urllib.urlopen", probably, would even be easier.



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] copy users

2000-09-29 Thread Dieter Maurer

Cornelis J. de Brabander writes:
  I have a folder containing subfolders for different departments
  I would like to have all user objects in one folder.
You probably would need an external method, as sensitive information
(such as passwords) is shielded from DTML access.

Have a look at "AccessControl.User" to find out what methods
user folders and users have to get at the information
and to create a new user automatically in a user folder.


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

2000-09-29 Thread Dieter Maurer

Andy McKay writes:
  Using ZODBC Database Adapter to connect to an MSSQL and I can call the sql
  method in dtml eg:
  
  dtml-try
dtml-call "SQL_add_user(REQUEST)"
  dtml-except sql.error
  Error!
  /dtml-try
  
  But does anyone know a way of trapping the specific error eg: database down,
  key violation etc...? Or do I have to hack ZODBC to return different errors?
You know the "error_value" variable defined inside the "dtml-except"?

Maybe, it can give you additional information about the kind
of error.
If it is the wrong one, reraise the exception.


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] python methods

2000-09-29 Thread Phil Harris

Python methods are not yet part of the standard distribution, you can
however get the product install tarball from Zope.org

- Original Message -
From: "Manuel Amador (Rudd-O) Gerente de desarrollo Alpha Omega Creative
Solutions http: //www.alomega.com/" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, September 29, 2000 10:56 PM
Subject: [Zope] python methods


 Oh, another thingy:

 An object called Python method is supposed to appear on
 the Add list? or am I supposed to emulate it with some
 kind of external method and files?  If that's the case,
 well, sad kludge.  Please let me know.

 --
Universidad Federico Santa Maria - Campus Guayaquil

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




Re: [Zope] dtml-with equivalent in external methods?

2000-09-29 Thread Phil Harris

Dieter,

Thanks for replying but I was being a bit confused, by science so to speak.

It was a lot simpler than I thought.

Thanks anyway.


Phil
- Original Message -
From: "Dieter Maurer" [EMAIL PROTECTED]
To: "Phil Harris" [EMAIL PROTECTED]
Cc: "Zope@Zope. Org" [EMAIL PROTECTED]
Sent: Friday, September 29, 2000 10:59 PM
Subject: Re: [Zope] dtml-with equivalent in external methods?


 Phil Harris writes:
   Anyone know offhand how to do an equivalent to dtml-with in an external
   method?
 Do you have a namespace (i.e. a DocumentTemplate.DT_Util.TemplateDict)?

 If so, you use its push method.

 If the thing, you would like to "with" is an object
 (rather than a mapping), you would wrap it into
 a "DocumentTemplate.DT_Util.InstanceDict" before it is
 being pushed.



 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 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] PIL and Win32 (Imaging.dll)

2000-09-29 Thread Peter Bengtsson

I've followed all README's and searched the mailing archive.
Been to pythonware.com, downloaded Imaging1.1, installed the Photo product, but still 
can't get it working.

I think I now need the Imaging.dll file, which is not provided on pythonware.com.

Does anyone have whatever it takes to get Photo working in Zope.

This is the Photo traceback I get.

Traceback (innermost last):
  File "C:\Program\ZopeSite\lib\python\OFS\Application.py", line 397, in 
import_products
product=__import__(pname, global_dict, global_dict, silly)
  File "C:\Program\ZopeSite\lib\python\Products\Photo\__init__.py", line 42, in ?
import Photo
  File "C:\Program\ZopeSite\lib\python\Products\Photo\Photo.py", line 87, in ?
from PIL.Imageimport BICUBIC, BILINEAR, NEAREST
  File "C:\Program\Python\Lib\PIL\__init__.py", line 5, in ?
import Image, ImageFile, ImageEnhance, ImageDraw,  _imaging, GifImagePlugin, 
JpegImagePlugin, PngImagePlugin, BmpImagePlugin
ImportError: No module named _imaging


So, it looks like Image, ImageFile, ... up until _imaging is imported successfully.
Other PIL hints? 



___
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] PIL and Win32 (Imaging.dll)

2000-09-29 Thread Damien Morton

Theres no pre-compiled binary of PIL1.1

I stuck to version 1.0, for which _imaging.dll is supplied.
I created a directory at zope/lib/python/PIL and put everything in there
I also found i needed tcl80.dll and tk80.dll in there, as well as
_tkinter.pyd

runs fine now



 -Original Message-
 From: Peter Bengtsson [mailto:[EMAIL PROTECTED]]
 Sent: Friday, September 29, 2000 8:42 PM
 To: [EMAIL PROTECTED]
 Subject: [Zope] PIL and Win32 (Imaging.dll)
 
 
 I've followed all README's and searched the mailing archive.
 Been to pythonware.com, downloaded Imaging1.1, installed the 
 Photo product, but still can't get it working.
 
 I think I now need the Imaging.dll file, which is not 
 provided on pythonware.com.
 
 Does anyone have whatever it takes to get Photo working in Zope.
 
 This is the Photo traceback I get.
 
 Traceback (innermost last):
   File "C:\Program\ZopeSite\lib\python\OFS\Application.py", 
 line 397, in import_products
 product=__import__(pname, global_dict, global_dict, silly)
   File 
 "C:\Program\ZopeSite\lib\python\Products\Photo\__init__.py", 
 line 42, in ?
 import Photo
   File 
 "C:\Program\ZopeSite\lib\python\Products\Photo\Photo.py", 
 line 87, in ?
 from PIL.Imageimport BICUBIC, BILINEAR, NEAREST
   File "C:\Program\Python\Lib\PIL\__init__.py", line 5, in ?
 import Image, ImageFile, ImageEnhance, ImageDraw,  
 _imaging, GifImagePlugin, JpegImagePlugin, PngImagePlugin, 
 BmpImagePlugin
 ImportError: No module named _imaging
 
 
 So, it looks like Image, ImageFile, ... up until _imaging is 
 imported successfully.
 Other PIL hints? 
 
 
 
 ___
 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 )