[Zope-dev] Adding functions to _

2000-09-18 Thread Itamar Shtull-Trauring

I'm using CVS Zope, and I want to add a function of mine to _, so I have the
following code in a Product's __init__.py:

from log2vis import log2vis
from DocumentTemplate.DT_Util import d
d["log2vis"] = log2vis

However, when I call the function, I get an error about DocumentTemplate,
from which I discovered that when I call _.logvis('a_string'), instead of
the string being passed as the first parameter, _ is passed as the first
parameter to my function, forcing me to truncate it when calling log2vis:

from log2vis import log2vis
from DocumentTemplate.DT_Util import d

def log2vis_wrapper(*args, **kwargs):
return apply(log2vis, args[1:], kwargs)

d["log2vis"] = log2vis_wrapper


Any idea what could cause this strange behaviour?  it doesn't happen for
other functions inserted into _ in DT_Util.py.

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

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




Re: [Zope-dev] I feel your Wiki Pain ;-)

2000-09-18 Thread Simon Michael

Chris Withers [EMAIL PROTECTED] writes:
 I wonder what Simon Michael is up to nowdays?

I have been visiting family.. I'll be back in the US next week.

Great thread here. I also feel this pain, grovelling around between
wiki, mailing list, newsgroup, message board, etc. 

I wonder if we should expose all messages, edits and annotations in
some RSS/RDF-like format, for easier syncing/monitoring/indexing of
the different forums and to faciliate alternate UIs.

-Simon

___
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] I feel your Wiki Pain ;-)

2000-09-18 Thread Toby Dickenson

On Fri, 15 Sep 2000 11:27:33 -0400 (EDT), Ken Manheimer
[EMAIL PROTECTED] wrote:


(Not sure that will scale, but creating new lists for each proposal
definitely won't scale.

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.

You cant do that with todays Wikis, which need to capture the whole
discussion right from the beginning (IMO)

Note that there's been a *number* of places in this recent WikiNG
discussion where' i've cited existing passages that directly address
people's points.  I don't mean to complain - i think that's one cost
increased by disconnecting the discussion and the document.

I think you (inadvertantly) provide evidence for my objection that
Todays Wikis fragment discussion. Speaking as the person who started
this thread, I didnt realise my comments would affect WikiNG until you
suggested the issue.

The inclusive nature of a mailing list is what makes it a useful
community resource.



Toby Dickenson
[EMAIL PROTECTED]

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




Re: [Zope-dev] I feel your Wiki Pain ;-)

2000-09-18 Thread Toby Dickenson

On Fri, 15 Sep 2000 11:40:09 -0400 (EDT), Ken Manheimer
[EMAIL PROTECTED] wrote:

Do you feel that weblogs are bad models for debates?

I find the wiki and weblog tools available today to be inferior to
mailman for debates, and it will take alot of work to develop WikiNG
into a serious contender. I suspect the sticky points will be:

1. The ability to read without continuous network connection.

2. A user interface that is not encumbered with transatlantic
   http round-trips for each user interaction.


I think they're [weblogs]
pretty good least-common-denominators.

i see them [weblogs and wikis] as better than just
email...

(Ive snipped those two comments out of context, and I hope it doesnt
misrepresent Ken)

I agree email alone is inadequate Please dont misunderstand me: I
am *not* advocating that.

Wikis work well for consolidating documents once a rough concensus has
been reached. My preference is that the discussion leading up to that
concensus takes place on zope-dev.


Toby Dickenson
[EMAIL PROTECTED]

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




[Zope-dev] Calendar tag 0.9.22 released

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


Hi all,

There's a new version of the calendar tag, I need feedback about
it, specially from those who use the "setCalendar('url_', ...)"
hook or the "linkDate(...)" function.


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 )




Re: [Zope-dev] HiperDOM xmlc

2000-09-18 Thread Evan Simpson

From: Phillip J. Eby [EMAIL PROTECTED]
[snip description]
 The effective external behavior of these two attributes, would be to let a
 web designer load and save any page or template they wished in the site,
 freely making changes to the header, footer, or various embedded elements
 thereof, and then save that *one* page, and have those style changes
 propagated throughout the relevant areas of the site.

Exactly.  You've just described the "components" aspect of this idea, which was left 
out of the
Paul's original post.  A component is just a tag marked with a special attribute that 
names it (and
its path, if it has been saved).  It can contain other components, and can have 
"slots" -- subtags
whose contents are not part of the component.  There is also the concept of "modes", 
which allows
you to have different versions of a template for different system states (shopping 
cart empty vs.
non-empty) that radically affect presentation.

 This could potentially be a "killer feature" for web designers.

Yep :-)

Cheers,

Evan @ digicool  4-am


___
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] Adding functions to _

2000-09-18 Thread Evan Simpson

From: Itamar Shtull-Trauring [EMAIL PROTECTED]
 However, when I call the function, I get an error about DocumentTemplate,
 from which I discovered that when I call _.logvis('a_string'), instead of
 the string being passed as the first parameter, _ is passed as the first
 parameter to my function, forcing me to truncate it when calling log2vis:

 Any idea what could cause this strange behaviour?  it doesn't happen for
 other functions inserted into _ in DT_Util.py.

When you stuff a function into "d", you're adding it to the class dictionary of 
DocumentTemplate, so
it effectively becomes a method of that class.  The first argument gets treated as 
"self", just like
in any other class method.

All of the functions in DT_Util are either builtins (which never get turned into bound 
methods) or
functions with a leading "self" parameter.

Cheers,

Evan @ digicool  4-am


___
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] soap and zope

2000-09-18 Thread Magnus Heino (Rivermen)


Has anyone done anything with soap and zope?

/Magnus Heino

___
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] Membership and Local Roles

2000-09-18 Thread Michael Bernstein

I posted this to the PTK list on Friday, but didn't get any responses
over the weekend, so I'm reposting here.

I feel that a barrier to Loginmanager and Membership becoming more
generally usable for site builders is it's current lack of support for
local roles. Specifically, members do not show up in the local roles
screen (manage_listLocalRoles) user list.

Through the magic of grep and find, I think I've identified the relevant
sections of code in Zope that need to be duplicated in Membership (or
maybe in LoginManager).

First I tracked down what seems to be the relevant section in
/lib/python/AccessControl/Role.py, in the section labeled 'Local roles
support':


def get_valid_userids(self):
item=self
dict={}
while 1:
if hasattr(aq_base(item), 'acl_users') and \
   hasattr(item.acl_users, 'user_names'):
for name in item.acl_users.user_names():
dict[name]=1
if not hasattr(item, 'aq_parent'):
break
item=item.aq_parent
keys=dict.keys()
keys.sort()
return keys


Then I tracked down the user_names attribute to
/lib/python/AccessControl/User.py, in the section labeled 'Private
UserFolder
object interface':


def user_names(self):
return self.getUserNames()


Well, that wasn't very helpful. searching a bit more and I find:


def getUserNames(self):
"""Return a list of usernames"""
names=self.data.keys()
names.sort()
return names


Experimenting a bit, I find that a normal user folder object responds to
an /acl_users/user_names URL with an error, but does respond to an
/acl_users/getUserNames URL with a list of user names.

And now I'm stuck. I *think* that LoginManager needs a getUserNames
method that cycles through the available User Sources and grabs a list
of
names from each, concatenating them into one big list to return. I'll
settle for some code that has the User Source name hard-wired in,
though.

However, IANAC (I Am Not A Coder), and I don't know how to do this. If
anyone can offer a cut-and-paste set of instructions to add this into
LoginManager or Membership, it would be greatly appreciated.

If I've missed something obvious or misunderstood the problem, please
tell me that too.

Thanks,

Michael Bernstein.

___
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] Can ZPatterns Plugins be used separately?

2000-09-18 Thread Kevin Howe

Hi, I'm wondering if it is possible to use ZPattern Plugins in a
non-ZPatterns Product? Allowance for Plugins would be a very useful feature
in many applications.

kh


___
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] Can ZPatterns Plugins be used separately?

2000-09-18 Thread Steve Alexander

Kevin Howe wrote:

 Hi, I'm wondering if it is possible to use ZPattern Plugins in a
 non-ZPatterns Product? Allowance for Plugins would be a very useful feature
 in many applications.

You can use PlugIns without using the rest of ZPatterns, such as 
DataSkins and Racks. You still have to have the ZPatterns product 
installed, obviously. I can see this becoming even more useful when 
ZClasses work with PlugIns. This may be a while off, though.

I'm still in favour of splitting ZPatterns into separate DataSkins and 
PlugIns packages in the next feature release.

--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.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 )




Re: [Zope-dev] Membership and Local Roles

2000-09-18 Thread Steve Alexander

Michael Bernstein wrote:

 I posted this to the PTK list on Friday, but didn't get any responses
 over the weekend, so I'm reposting here.
 
 I feel that a barrier to Loginmanager and Membership becoming more
 generally usable for site builders is it's current lack of support for
 local roles. Specifically, members do not show up in the local roles
 screen (manage_listLocalRoles) user list.
 
 Through the magic of grep and find, I think I've identified the relevant
 sections of code in Zope that need to be duplicated in Membership (or
 maybe in LoginManager).

I think you've found out why local roles don't work. Congratulations on 
a successful code hunting mission :-)

I don't know for sure, but I think the API for returning a list of users 
has been omitted intentionally. A LoginManager instance might "contain" 
(or rather, provide authentication to) thousands of users. Listing all 
of these would arguably break the management interface.

Perhaps what LoginManager (or Membership) needs is a way of stating, for 
each user, whether they should appear in the local-roles list. This 
could be a checkbox for each user, or it could be a method that gets 
called to specify the users that appear, for example, using a regular 
expression, or perhaps based on some quality of the user object.

You should still be able to use local roles, even now, by using an 
external method to add local roles where you need them, and explicitly 
give the user id. You just can't select from the management interface.

--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.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 )




Re: [Zope-dev] Can ZPatterns Plugins be used separately?

2000-09-18 Thread Kevin Howe

Splitting into DataSkins and Plugins sounds like a really sensible idea, I
defintely put my vote in for that.

- Original Message -
From: "Steve Alexander" [EMAIL PROTECTED]
To: "Kevin Howe" [EMAIL PROTECTED]
Cc: "ZOPE-Dev Mailing List" [EMAIL PROTECTED]
Sent: Monday, September 18, 2000 2:28 PM
Subject: Re: [Zope-dev] Can ZPatterns Plugins be used separately?


 Kevin Howe wrote:

  Hi, I'm wondering if it is possible to use ZPattern Plugins in a
  non-ZPatterns Product? Allowance for Plugins would be a very useful
feature
  in many applications.

 You can use PlugIns without using the rest of ZPatterns, such as
 DataSkins and Racks. You still have to have the ZPatterns product
 installed, obviously. I can see this becoming even more useful when
 ZClasses work with PlugIns. This may be a while off, though.

 I'm still in favour of splitting ZPatterns into separate DataSkins and
 PlugIns packages in the next feature release.

 --
 Steve Alexander
 Software Engineer
 Cat-Box limited
 http://www.cat-box.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 )




Re: [Zope-dev] HiperDOM xmlc

2000-09-18 Thread Shane Hathaway

[EMAIL PROTECTED] wrote:
  So the standard_page_template default wrapping is an attempt at a
  compromise.
 
 It's wrong.

Please elaborate your position. :-)

Why is it wrong?

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] FYI: preliminary Zope 2.3 plan online...

2000-09-18 Thread Brian Lloyd

Hi all - 

For those interested, I've finally gotten the current plan for 
the next planned Zope feature release online on dev.zope.org:

http://dev.zope.org/Resources/zope_230_plan.html


Note that there is no planned date at this point. If there is 
something that you think should be on there (AND you are 
willing to volunteer to lead it!), please let me know.

Thanks!


Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909  
Digital Creations  http://www.digicool.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] __del__

2000-09-18 Thread Andy McKay

Is there an method that I can use as a hook when an object is destroyed? (Im
trying to save some _v_ data prior to destruction. Ive tried __del__ but
this doesnt seem to get called.

Thanks.

--
  Andy McKay, Developer.
  ActiveState.


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




Re: [Zope-dev] Custom dtml tag

2000-09-18 Thread Andy McKay

Finally woke up on this problem.

Got this working by simply calling resolve_url upon the request object. But
what I want is a result that changes depending upon the object. Let's face
it, this can be acheived a whole lot easier by creating a method for the
objects and calling that.

So thats what Ive done and stayed away from using a dtml-tag.

Thanks for your help.

- Original Message -
From: "Brett Carter" [EMAIL PROTECTED]
To: "Andy McKay" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, September 13, 2000 9:51 AM
Subject: Re: [Zope-dev] Custom dtml tag


 Andy - looking up 'this' in a dtml method or document won't work
 unless you expose it in your python product/tag definition.  I'm
 talking about getting 'this' inside a dtml tag that I have defined
 myself (i.e. dtml-foobar/dtml-foobar).  If you want 'this'
 available in dtml, write an external method and just return 'self'
 def this(self): return self
 -Brett

  "Andy" == Andy McKay [EMAIL PROTECTED] writes:

 Andy Really? Ive looked up this and get nothing (an attribute error
actually) and
 Andy its not in globals. If that would work that would be great - but
a it
 Andy certainly doesnt seem to on a standard DTMLDocument / Method.

 Andy - Original Message -
 Andy From: "Brett Carter" [EMAIL PROTECTED]
 Andy To: "Andy McKay" [EMAIL PROTECTED]
 Andy Cc: [EMAIL PROTECTED]
 Andy Sent: Tuesday, September 12, 2000 4:17 PM
 Andy Subject: Re: [Zope-dev] Custom dtml tag


  Andy: here's what I've gleaned - in a dtml tag's render() method,
you
  get passed in self and a template dict, in my example let's call it
  'md'.  md is essentially a stack/dictionaryish object of the
*current*
  namespace - and one of the handy things that's always around in the
  namespace is the 'this' function, which returns the object on the
top
  of the stack.
 
  Just lookup 'this', run it, and there you have a reference to the
  calling object!  Ex:
 
  def render(self, md)
  this = md.getitem('this')
  callingObj = this()
  return "Calling object was %s" % (callingObj.id())
 
  Note I haven't tested this code.  Good luck!
  -Brett
 

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

2000-09-18 Thread Chris McDonough

If it's an object in an objectmanager, you can define a
manage_beforeDelete() method on it (see ObjectManager.py).

How are you destroying it?

[EMAIL PROTECTED] wrote:
 
 Is there an method that I can use as a hook when an object is destroyed? (Im
 trying to save some _v_ data prior to destruction. Ive tried __del__ but
 this doesnt seem to get called.
 
 Thanks.
 
 --
   Andy McKay, Developer.
   ActiveState.
 
 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )

-- 
Chris McDonough
Digital Creations, Publishers of Zope
http://www.zope.org

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

2000-09-18 Thread Andy McKay

I was hoping to have this method fired Zope is shut down, restarted etc and
not call it implicitly. The theory being if this object is cached it will
have to be unloaded at some point?

Ive used manage_beforeDelete() elsewhere and it works fine when Im
destroying an object whilst ZODB is still running.

Thanks.

- Original Message -
From: "Chris McDonough" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, September 18, 2000 2:32 PM
Subject: Re: [Zope-dev] __del__


 If it's an object in an objectmanager, you can define a
 manage_beforeDelete() method on it (see ObjectManager.py).

 How are you destroying it?

 [EMAIL PROTECTED] wrote:
 
  Is there an method that I can use as a hook when an object is destroyed?
(Im
  trying to save some _v_ data prior to destruction. Ive tried __del__ but
  this doesnt seem to get called.
 
  Thanks.
 
  --
Andy McKay, Developer.
ActiveState.
 
  ___
  Zope-Dev maillist  -  [EMAIL PROTECTED]
  http://lists.zope.org/mailman/listinfo/zope-dev
  **  No cross posts or HTML encoding!  **
  (Related lists -
   http://lists.zope.org/mailman/listinfo/zope-announce
   http://lists.zope.org/mailman/listinfo/zope )

 --
 Chris McDonough
 Digital Creations, Publishers of Zope
 http://www.zope.org

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

2000-09-18 Thread Andy McKay

Wow thanks. I'll see what I can do. I can think of a whole bunch of uses for
that.

- Original Message -
From: "Chris McDonough" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, September 18, 2000 3:10 PM
Subject: Re: [Zope-dev] __del__


 Oh I see... objects don't get __del__ or manage_beforeDelete called on
 them when the ZODB is shut down, this only happens when they're
 explicitly deleted.  This is the wonder of transparent persistence :-)

 If you want things to happen only at Zope start and shutdown, I've had
 some success using an __init__.py that does things in an otherwise blank
 product in combination with the setting of a Python sys.exitfunc.  The
 following __init__.py in an otherwise blank Product directory sends an
 email when Zope is stopped or started:

 import os, sys, popen2, socket

 prefix = "StartStopNotifier:"

 def stop_hook():
 mailout(user, prefix, host, "Zope dev portal stop")
 if callable(existing_exitfunc):
 existing_exitfunc()

 def start_hook():
 mailout(user, prefix, host, "Zope dev portal start")

 def mailout(user, prefix, host, subject):
 cmd="/bin/mail %s -s '%s %s %s'  /dev/null" %
 (user,prefix,host,subject)
 popen2.popen2(cmd)

 user = os.environ.get('STARTSTOPNOTIFY', None)
 if user is not None:
 host = socket.gethostname()
 existing_exitfunc = getattr(sys, 'exitfunc', None)
 sys.exitfunc = stop_hook
 start_hook()


 [EMAIL PROTECTED] wrote:
 
  I was hoping to have this method fired Zope is shut down, restarted etc
and
  not call it implicitly. The theory being if this object is cached it
will
  have to be unloaded at some point?
 
  Ive used manage_beforeDelete() elsewhere and it works fine when Im
  destroying an object whilst ZODB is still running.
 
  Thanks.
 --
 Chris McDonough
 Digital Creations, Publishers of Zope
 http://www.zope.org



___
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] User objects on 2.2

2000-09-18 Thread Lalo Martins

On Sun, Sep 17, 2000 at 11:22:49PM -0300, Lalo Martins wrote:
 Why doesn't Anonymous have permission to call has_permission on
 itself? This is counter-intuitive to say the least...

Ooops... they have, kind of. The Anonymous user object inherits
the permissions from the top-level User Folder (/acl_users).
This is kind of weird and should be documented, but is usable.

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

[]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] Membership and Local Roles

2000-09-18 Thread Michael Bernstein

Steve Alexander wrote:
 
 Michael Bernstein wrote:
 
  I posted this to the PTK list on Friday, but didn't get any responses
  over the weekend, so I'm reposting here.
 
  I feel that a barrier to Loginmanager and Membership becoming more
  generally usable for site builders is it's current lack of support for
  local roles. Specifically, members do not show up in the local roles
  screen (manage_listLocalRoles) user list.
 
  Through the magic of grep and find, I think I've identified the relevant
  sections of code in Zope that need to be duplicated in Membership (or
  maybe in LoginManager).
 
 I think you've found out why local roles don't work. Congratulations on
 a successful code hunting mission :-)

I *think* I've created a getUserNames python method that returns the
appropriate results:


Parameter list:
self

Body:

 user_ids=self.UserSource.getPersistentItemIDs()

 names=[]
 for i in user_ids:
 names.append(self.getItem(i))
 return names


I basically copied the Membership getMembers python method for this.

Guess what? It still doesn't work.

I don't understand the differences between the code I pasted above and
the code on the original getUserNames method (from :

def getUserNames(self):
"""Return a list of usernames"""
names=self.data.keys()
names.sort()
return names

Can anyone tell me what I need to fix?

Michael Bernstein.

___
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] Membership and Local Roles

2000-09-18 Thread Bill Anderson

Michael Bernstein wrote:
 
 Steve Alexander wrote:
 
  Michael Bernstein wrote:
 
   I posted this to the PTK list on Friday, but didn't get any responses
   over the weekend, so I'm reposting here.
  
   I feel that a barrier to Loginmanager and Membership becoming more
   generally usable for site builders is it's current lack of support for
   local roles. Specifically, members do not show up in the local roles
   screen (manage_listLocalRoles) user list.
  
   Through the magic of grep and find, I think I've identified the relevant
   sections of code in Zope that need to be duplicated in Membership (or
   maybe in LoginManager).
 
  I think you've found out why local roles don't work. Congratulations on
  a successful code hunting mission :-)
 
 I *think* I've created a getUserNames python method that returns the
 appropriate results:
 
 Parameter list:
 self
 
 Body:
 
  user_ids=self.UserSource.getPersistentItemIDs()
 
  names=[]
  for i in user_ids:
  names.append(self.getItem(i))
  return names

Returns a list of objects.

 I basically copied the Membership getMembers python method for this.
 
 Guess what? It still doesn't work.
 
 I don't understand the differences between the code I pasted above and
 the code on the original getUserNames method (from :
 
 def getUserNames(self):
 """Return a list of usernames"""
 names=self.data.keys()
 names.sort()
 return names

Returns a list of usernames.
 
 Can anyone tell me what I need to fix?

Unfortunately, I cannot yet.

--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

___
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] Membership and Local Roles

2000-09-18 Thread Michael Bernstein

Michael Bernstein wrote:
 
 Steve Alexander wrote:
 
  Michael Bernstein wrote:
 
   I posted this to the PTK list on Friday, but didn't get any responses
   over the weekend, so I'm reposting here.
  
   I feel that a barrier to Loginmanager and Membership becoming more
   generally usable for site builders is it's current lack of support for
   local roles. Specifically, members do not show up in the local roles
   screen (manage_listLocalRoles) user list.
  
   Through the magic of grep and find, I think I've identified the relevant
   sections of code in Zope that need to be duplicated in Membership (or
   maybe in LoginManager).
 
  I think you've found out why local roles don't work. Congratulations on
  a successful code hunting mission :-)
 
 I *think* I've created a getUserNames python method that returns the
 appropriate results:

I have made some more progress (of a sort).

I added another Python Method to the LoginManager called user_names :


Parameter list:

self

Body:

return self.getUserNames()


As far as i can see, this should be functionally equivalent to the
user_names method in User.py:

def user_names(self):
return self.getUserNames()


But it doesn't work. On the bright side, I've managed to break the
manage_listLocalRoles local roles screen. This is the first time that
I've had any interaction with the local roles screen, so I guess now I
now I'm messing with the right stuff.

The error message I get is:

Error Type: AttributeError
Error Value: __hash__

Here is the traceback:

Traceback (innermost last):
  File /usr/local/zope/2-2-0/lib/python/ZPublisher/Publish.py, line 222,
in publish_module
  File /usr/local/zope/2-2-0/lib/python/ZPublisher/Publish.py, line 187,
in publish
  File /usr/local/zope/2-2-0/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
(Object: ElementWithAttributes)
  File /usr/local/zope/2-2-0/lib/python/ZPublisher/Publish.py, line 171,
in publish
  File /usr/local/zope/2-2-0/lib/python/ZPublisher/mapply.py, line 160,
in mapply
(Object: manage_listLocalRoles)
  File /usr/local/zope/2-2-0/lib/python/ZPublisher/Publish.py, line 112,
in call_object
(Object: manage_listLocalRoles)
  File /usr/local/zope/2-2-0/lib/python/App/special_dtml.py, line 121,
in __call__
(Object: manage_listLocalRoles)
  File /usr/local/zope/2-2-0/lib/python/DocumentTemplate/DT_String.py,
line 502, in __call__
(Object: manage_listLocalRoles)
  File /usr/local/zope/2-2-0/lib/python/DocumentTemplate/DT_In.py, line
630, in renderwob
(Object: get_valid_userids)
  File /usr/local/zope/2-2-0/lib/python/AccessControl/Role.py, line 360,
in get_valid_userids
(Object: ElementWithAttributes)
AttributeError: (see above)

Any ideas?

Michael Bernstein.

___
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] Returning a list of names from a Python Method

2000-09-18 Thread Michael Bernstein

Michael Bernstein wrote:
 
 Does anyone on the list know how to change the getUserNames
 Python method to return a list of names instead of a list of
 objects?
 
 The code in question is this:
 
   user_ids=self.UserSource.getPersistentItemIDs()
 
   names=[]
   for i in user_ids:
   names.append(self.getItem(i))
   return names

Ok, I solved this little problem (and of course it looks
obvious once I've done it):

   names=[]
   for i in user_ids:
   names.append(i)
   return names

Michael Bernstein.

___
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] Membership and Local Roles

2000-09-18 Thread Michael Bernstein

I figured out how to get this to work (finally).

In the acl_users LM, add the following two Python methods:

- getUserNames -

Parameter List:

self


Body:

 user_ids=self.UserSource.getPersistentItemIDs()

 names=[]
 for i in user_ids:
 names.append(i)
 return names




- user_names ---

Parameter List:

self


Body:

 return self.getUserNames()



And whatever users or members you've got that are stored
persistently within the User Source will appear in the local
roles screen (manage_listLocalRole).

Preliminary tests show that local roles defined for
LoginManager/Membership users work just as expected.

Thanks to Bill Anderson for pointing out the difference
between returning a list of objects and a list of names,
which was the critical bug in the getUserNames method.

Michael Bernstein.

___
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] ZWiki and Table

2000-09-18 Thread Uwe Hentzschel

I want to use zwiki-sites in a table:

 +---+---+
 | some  |   ZWiki-Sites |
 | stuff |   |
 +---+---+

The ZWiki-Sites ok, but editform and backlinks won't work.
I'm a DTML-novice.

Thank's 

-- 
Uwe Hentzschel   
Edelstahl Gröditz GmbH
Riesaer Str.  
01609 Gröditz  

Tel: +49-35263-62551
Fax: +49-35263-62543   

___
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] Sending attachments

2000-09-18 Thread Enric Cervera

Hi,

I've written a form whose contents are emailed with dtml-sendmail.
It works great, but I want to include a field in the form to select a
file
which should be included as an attachment in the email.

I've used dtml-mime and dtml-boundary as explained in the
manual but it does not work. The resulting email has the *name of the
file*
as the attachment instead of the file itself!

Anyone can help?

Thanks

Enric



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




Re: [Zope] ZOPE - Size reduction ???

2000-09-18 Thread JTC Murphy


 This is funny. HDs are so cheap today, 

Er, this is fine if you're building a new box (and if you're using
simple IDE drives) but rather less so if you've exceeded the capacity on
an existing system and/or you're using SCSI drives.

Yes capacity is cheap, but /adding/ capacity is rather less so - if
there's space you can drop in another drive (which may in turn give you
heat problems) but you've still got to manage allocation of storage to
the new drive. If there isn't space then you're talking about adding in
another box (rather less cheap) or transferring the data from old to new
- slow and the accountants won't be happy about writing off the old
one.

In addition you have to worry about the cost of the time taken to
perform any of the above.

Not as funny as it might seem )-:

Murph



___
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] standard_error_message confusion

2000-09-18 Thread Danny William Adair

Hi all!

I'm using LoginManager to provide for a non-HTTP authentication. A role
"Member" has access to a folder "Restricted", the
role "Anonymous" doesn't have any rights at all in this folder. All objects
in this folder acquire these security settings.
So far, so good.

The login form from the LoginManager product raises "LoginRequired" and
shows the login screen when necessary. Mysteriously, I don't get to see my
(customized) standard_error_message, but *the* standard error message when I
try to access the folder unauthenticated. Now if I give Anonymous the right
to "View" in the "Restricted" folder (and therefore view all contained
objects - which I naturally don't want to do) and explicitly take that right
away for index_html, any unauthenticated client trying to access the folder
(-index_html) will see *my* standard_error_message (containing the login
screen).

What is this all about?
I'm baffled. I want my standard_error_message *everywhere*, *any way*.

tia and cia, (cheers in advance)
Danny



P.S.: I've customized LoginManager to get the users from a ZGadfly
connection (at last!). Maybe there's something wrong here? Does Anonymous
need rights to use the database or what?


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




Re: [Zope] ZOPE - Size reduction ???

2000-09-18 Thread Nils Kassube

Guten Abend.

 Er, this is fine if you're building a new box (and if you're using
 simple IDE drives) but rather less so if you've exceeded the capacity on
 an existing system and/or you're using SCSI drives.

I use Ultra Wide SCSI on my main workstation. Compared to what I had to
pay for a 20 MB HD for my Amiga ten years ago, it is really cheap :-)

Of course, storage is rather expensive if you're held hostage by a
proprietary workstation company with ridiculous pricing for HDs like
e.g. HP.  

 heat problems) but you've still got to manage allocation of storage to
 the new drive. If there isn't space then you're talking about adding in
 another box (rather less cheap) or transferring the data from old to new
 - slow and the accountants won't be happy about writing off the old
 one.

I don't know the situation in the Wintel world, but I did this with
Macintosh and Unix systems. I've also always been able to reuse the old
box for different purposes.

To stay on topic with Zope: You don't have to retire the old system,
instead you could use ZEO... =:-

 In addition you have to worry about the cost of the time taken to
 perform any of the above.

Yes, but you also have to consider the opportunity cost. It's not
exactly a productive use of the time of your highly paid developers to
think about things like adhering to disk quotas.

Cheers,
Nils
--
[EMAIL PROTECTED]
[EMAIL PROTECTED] (preferred)
[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] ZMYSQLDA

2000-09-18 Thread Dicken, Peer

Hi,

I installed ZmySQLDA and that mysqldb extension. A test with python "import
_mysql" works, but in the control panel the ZMYSQLDA is broken:

ZMySQLDA Import Traceback
Traceback (innermost last):
  File "/usr/local/zope/lib/python/OFS/Application.py", line 396, in
import_products
product=__import__(pname, global_dict, global_dict, silly)
  File "/usr/local/zope/lib/python/Products/ZMySQLDA/__init__.py", line 91,
in ?
import DA
  File "/usr/local/zope/lib/python/Products/ZMySQLDA/DA.py", line 91, in ?
from db import DB
  File "/usr/local/zope/lib/python/Products/ZMySQLDA/db.py", line 89, in ?
import _mysql
ImportError: No module named _mysql

What´s that? How can I solve this?

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

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




[Zope] 1

2000-09-18 Thread Jørn Helge B. Dahl

Hi all.

I'm sorry if this is discussed before, but my search thru the archive
did not yield any results.

Basically, this is what I want:

1. I have a file that I want to upload. That I know how to do.

2. Then I want to use the properties of the file I uploaded (id, size,
   name and so forth) to make an entry in an external database (MySQL it
   is, but that is not relevant).

3. Update another entry in the external database, using the
   beforementioned properties.

So, what I do not know, is how I "extract" the information from the file
upload, and make it available to my sqlMethod.

Does anyone know what I'm talking about? Could anyone point me in the
right direction, or, preferably, show me what do do?

Thanks in advance,
-- 
Jørn Helge B. Dahl
System administrator
http://falch.net


___
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] file upload and MySQL

2000-09-18 Thread Jørn Helge B. Dahl

Sorry for the malformed subject header on the last post, corrected now.

Previous post:

Hi all.

I'm sorry if this is discussed before, but my search thru the archive
did not yield any results.

Basically, this is what I want:

1. I have a file that I want to upload. That I know how to do.

2. Then I want to use the properties of the file I uploaded (id, size,
   name and so forth) to make an entry in an external database (MySQL it
   is, but that is not relevant).

3. Update another entry in the external database, using the
   beforementioned properties.

So, what I do not know, is how I "extract" the information from the file
upload, and make it available to my sqlMethod.

Does anyone know what I'm talking about? Could anyone point me in the
right direction, or, preferably, show me what do do?

Thanks in advance,
-- 
Jørn Helge B. Dahl
System administrator
http://falch.net


___
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] WG: [Zope] ZMYSQLDA

2000-09-18 Thread Dicken, Peer

Hi,

I´ve got it running. ZMYSQLDA could not find the libraries from mysqldb.
Yes, you´re right, it was a FAQ.
BTW: Is there any product that acts as acl_users which allows to collect
more information from my users, like company name, adress ... ?

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

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




[Zope] Yihaw translation

2000-09-18 Thread Didier Georgieff

Hello,

I'm going to adapt Yihaw 1.0 in French (for the visible part for our 
users).
I'll use VaryTag (and not ZBabel to avoid SQL dependency).

In order to avoid duplicate work, is there anybody already involved 
in adapting Yihaw to multi-languages ?
Regards. 
--
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] Zope not starting after VaryTag install

2000-09-18 Thread Didier Georgieff

Hello,

Just after installing VaryTag, Zope (2-1-6)  restart fine, but when i 
try to connect to my zope adress, i got an error (traceback further).

So i stopped Zope, removed the VaryTag product, and the error is 
still here.
So, i don't have access to my manage screen to remove the 
VaryTag traces or anything slse.

Any quick tip would help me a lot, an avoid killing myself for 
loosing access to my site ;-))

Thanks in advance



 Zope Error

 Zope has encountered an error while publishing this 
resource. 

 ImportError

 Sorry, a Zope error occurred.

 Traceback (innermost last):
   File /zope/2-1-6s/lib/python/ZPublisher/Publish.py, line 
214, in publish_module
   File /zope/2-1-6s/lib/python/ZPublisher/Publish.py, line 
179, in publish
   File /zope/2-1-6s/lib/python/Zope/__init__.py, line 202, in 
zpublisher_exception_hook
 (Object: ApplicationDefaultPermissions)
   File /zope/2-1-6s/lib/python/ZPublisher/Publish.py, line 
165, in publish
   File /zope/2-1-6s/lib/python/ZPublisher/mapply.py, line 
160, in mapply
 (Object: index_html)
   File /zope/2-1-6s/lib/python/ZPublisher/Publish.py, line 
102, in call_object
 (Object: index_html)
   File /zope/2-1-6s/lib/python/OFS/DTMLMethod.py, line 
150, in __call__
 (Object: index_html)
   File /zope/2-1-
6s/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__
 (Object: index_html)
   File /zope/2-1-6s/lib/python/OFS/DTMLDocument.py, 
line 162, in __call__
 (Object: zope_powered)
   File /zope/2-1-
6s/lib/python/DocumentTemplate/DT_String.py, line 443, in __call__
 (Object: zope_powered)
   File /zope/2-1-
6s/lib/python/DocumentTemplate/DT_String.py, line 381, in cook
 (Object: zope_powered)
   File /zope/2-1-
6s/lib/python/DocumentTemplate/DT_String.py, line 231, in parse
 (Object: zope_powered)
   File /zope/2-1-
6s/lib/python/DocumentTemplate/DT_Var.py, line 248, in __init__
   File /zope/2-1-
6s/lib/python/DocumentTemplate/DT_Util.py, line 357, in 
name_param
 (Info: ({'': '"zope_logo.tag(BORDER=\'0\')"'}, 'var', 1, 
'name'))
   File /zope/2-1-
6s/lib/python/DocumentTemplate/VSEval.py, line 157, in __init__
 ImportError: No module named gparse

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




Re: [Zope] Zope not starting after VaryTag install

2000-09-18 Thread Tino Wildenhain

Hi Didier,

so it looks like the vary Tag may be not compliant
to older ( 2.2.x) releases of Zope?
I have to check this. You should probably check if
you really need an ancient version of Zope ;-)

I'm really wondering how the tag can cause such a 
behavior. Its almost an extract of the mime-tag
implementation which ships with zope.

Certanly you have a copy of your Data.fs before installation?

Good luck
Tino

Didier Georgieff wrote:
 
 Hello,
 
 Just after installing VaryTag, Zope (2-1-6)  restart fine, but when i
 try to connect to my zope adress, i got an error (traceback further).
 
 So i stopped Zope, removed the VaryTag product, and the error is
 still here.
 So, i don't have access to my manage screen to remove the
 VaryTag traces or anything slse.
 
 Any quick tip would help me a lot, an avoid killing myself for
 loosing access to my site ;-))
 
 Thanks in advance
 
 
  Zope Error
 
  Zope has encountered an error while publishing this
 resource.
 
  ImportError
 
  Sorry, a Zope error occurred.
 
  Traceback (innermost last):
File /zope/2-1-6s/lib/python/ZPublisher/Publish.py, line
 214, in publish_module
File /zope/2-1-6s/lib/python/ZPublisher/Publish.py, line
 179, in publish
File /zope/2-1-6s/lib/python/Zope/__init__.py, line 202, in
 zpublisher_exception_hook
  (Object: ApplicationDefaultPermissions)
File /zope/2-1-6s/lib/python/ZPublisher/Publish.py, line
 165, in publish
File /zope/2-1-6s/lib/python/ZPublisher/mapply.py, line
 160, in mapply
  (Object: index_html)
File /zope/2-1-6s/lib/python/ZPublisher/Publish.py, line
 102, in call_object
  (Object: index_html)
File /zope/2-1-6s/lib/python/OFS/DTMLMethod.py, line
 150, in __call__
  (Object: index_html)
File /zope/2-1-
 6s/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__
  (Object: index_html)
File /zope/2-1-6s/lib/python/OFS/DTMLDocument.py,
 line 162, in __call__
  (Object: zope_powered)
File /zope/2-1-
 6s/lib/python/DocumentTemplate/DT_String.py, line 443, in __call__
  (Object: zope_powered)
File /zope/2-1-
 6s/lib/python/DocumentTemplate/DT_String.py, line 381, in cook
  (Object: zope_powered)
File /zope/2-1-
 6s/lib/python/DocumentTemplate/DT_String.py, line 231, in parse
  (Object: zope_powered)
File /zope/2-1-
 6s/lib/python/DocumentTemplate/DT_Var.py, line 248, in __init__
File /zope/2-1-
 6s/lib/python/DocumentTemplate/DT_Util.py, line 357, in
 name_param
  (Info: ({'': '"zope_logo.tag(BORDER=\'0\')"'}, 'var', 1,
 'name'))
File /zope/2-1-
 6s/lib/python/DocumentTemplate/VSEval.py, line 157, in __init__
  ImportError: No module named gparse
 
 ___
 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] Re(2): [Zope] Zope not starting after VaryTag install

2000-09-18 Thread Tino Wildenhain

Re again,

I just checked with 2.1.6 (winNT) and it worked without problems.
Can anybody else confirm this?

Regards
Tino


Didier Georgieff wrote:
 
 Hello,
 
 Just after installing VaryTag, Zope (2-1-6)  restart fine, but when i
 try to connect to my zope adress, i got an error (traceback further).
 
 So i stopped Zope, removed the VaryTag product, and the error is
 still here.
 So, i don't have access to my manage screen to remove the
 VaryTag traces or anything slse.
 
 Any quick tip would help me a lot, an avoid killing myself for
 loosing access to my site ;-))
 
 Thanks in advance
 
 
  Zope Error
 
  Zope has encountered an error while publishing this
 resource.
 
  ImportError
 
  Sorry, a Zope error occurred.
 
  Traceback (innermost last):
File /zope/2-1-6s/lib/python/ZPublisher/Publish.py, line
 214, in publish_module
File /zope/2-1-6s/lib/python/ZPublisher/Publish.py, line
 179, in publish
File /zope/2-1-6s/lib/python/Zope/__init__.py, line 202, in
 zpublisher_exception_hook
  (Object: ApplicationDefaultPermissions)
File /zope/2-1-6s/lib/python/ZPublisher/Publish.py, line
 165, in publish
File /zope/2-1-6s/lib/python/ZPublisher/mapply.py, line
 160, in mapply
  (Object: index_html)
File /zope/2-1-6s/lib/python/ZPublisher/Publish.py, line
 102, in call_object
  (Object: index_html)
File /zope/2-1-6s/lib/python/OFS/DTMLMethod.py, line
 150, in __call__
  (Object: index_html)
File /zope/2-1-
 6s/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__
  (Object: index_html)
File /zope/2-1-6s/lib/python/OFS/DTMLDocument.py,
 line 162, in __call__
  (Object: zope_powered)
File /zope/2-1-
 6s/lib/python/DocumentTemplate/DT_String.py, line 443, in __call__
  (Object: zope_powered)
File /zope/2-1-
 6s/lib/python/DocumentTemplate/DT_String.py, line 381, in cook
  (Object: zope_powered)
File /zope/2-1-
 6s/lib/python/DocumentTemplate/DT_String.py, line 231, in parse
  (Object: zope_powered)
File /zope/2-1-
 6s/lib/python/DocumentTemplate/DT_Var.py, line 248, in __init__
File /zope/2-1-
 6s/lib/python/DocumentTemplate/DT_Util.py, line 357, in
 name_param
  (Info: ({'': '"zope_logo.tag(BORDER=\'0\')"'}, 'var', 1,
 'name'))
File /zope/2-1-
 6s/lib/python/DocumentTemplate/VSEval.py, line 157, in __init__
  ImportError: No module named gparse
 
 ___
 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] Desperate Zope is crashing ....

2000-09-18 Thread Daniel Rusch

Hey all,

I have a major problem! Our Zope site is crashing every few hours. I've
grep'ed the python processes and they are still running but I can't
access any pages. It's very strange because it just started happening
last thursday. Prior to that we had no problems. No changes were made to
the site. I know that software just doesn't start to have problems that
something must have changed but I can't identify anything. One thought
is that the user community is hitting an area of the site that they
haven't in the past, but how do i find it???

Details:
Zope version: Zope 2.0.1 (source release, python 1.5.1, linux2) 
Python version: 1.5.2 (#6, Sep 22 1999, 10:32:58) [GCC 2.8.1] 
System Platform: sunos5 

We have bounced the box, but still it dies???


I don't even know how to start debugging this ? I've crawled through
the Z2.log file to no avail.

DR

___
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] Ann: ZGDChart 0.4.2.b

2000-09-18 Thread Wolfgang Strobl

On 16 Sep 2000, 16:17  Chui Tey wrote:

 ZGDChart with more chart styles, data from non-SQL sources, plus Linux
 binaries.

After installing ZGDChart, I noticed a handfull of new permissions 
with strange one-letter names, including a blank one, but no "Add 
ZGDCharts" permission.

Changing 

permissions = 'Add ZGDCharts',

to
permission = 'Add ZGDCharts',

in __init__.py and restarting Zope fixes the problem.


--
  o  ( [EMAIL PROTECTED] (+49 2241) 14-2394
 /\*   GMD mbH   #include 
   _`\ `_===  Schloss Birlinghoven, std.disclaimer
__(_)/_(_)___.-._  53754 Sankt Augustin, Germany 

___
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] Urgent: acquisition and permissions question.

2000-09-18 Thread Gilles Lavaux

Hello everybody

Maybe the answer is easy, but I can not find the solution:(and maybe I was
completly wrong about permissions)


I have a folder containing SQLs and methods:
/project
and a subfolder who has his access and view security setting disable for
anonymous:
/project/protected

When anonymous access /project/index_html  he see the page : that's good.
1)When anonymous access /project/protected/index_html he also see the page.
 Is it normal?? ( the index_html is of course only inside the /project )

2)If anonymous access /project/protected/some_method_with_sql and the result
is empty, he see the result page!That's strange.
   But if the result is not empty, he get the authentication box : that's
good.

It's zope2.2.1


So can someone explain me the rules when an unprotected object is acquired
from a protected folder??

Thanks,

Gilles


___
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] Fwd: Re: [Zope] Urgent: acquisition and permissions question.

2000-09-18 Thread Diego Rodrigo Neufert

Just put an index_html under protected folder
the user will get access denied...

On Mon, 18 Sep 2000, you wrote:
 Hello everybody
 
 Maybe the answer is easy, but I can not find the solution:(and maybe I was
 completly wrong about permissions)
 
 
 I have a folder containing SQLs and methods:
 /project
 and a subfolder who has his access and view security setting disable for
 anonymous:
 /project/protected
 
 When anonymous access /project/index_html  he see the page : that's good.
 1)When anonymous access /project/protected/index_html he also see the page.
  Is it normal?? ( the index_html is of course only inside the /project )
 
 2)If anonymous access /project/protected/some_method_with_sql and the result
 is empty, he see the result page!That's strange.
But if the result is not empty, he get the authentication box : that's
 good.
 
 It's zope2.2.1
 
 
 So can someone explain me the rules when an unprotected object is acquired
 from a protected folder??
 
 Thanks,
 
 Gilles
 
 
 ___
 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 )

-- 
---
Diego Rodrigo Neufert
-webmaster
---
(Magic Web Design)
(email) ([EMAIL PROTECTED])
(curitiba) (pr)

___
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] Acl_user and user informations on MySQL (was ZMYSQLDA)

2000-09-18 Thread Didier Georgieff

I ´ve got it running. ZMYSQLDA could not find the libraries from
 mysqldb. Yes, you´re right, it was a FAQ. BTW: Is there any product
 that acts as acl_users which allows to collect more information from
 my users, like company name, adress ... ?

Hello Peer,

We've got the other "half-empty bottle" for that pb.
We have built a product (ZAnnu) with people's informations for 
differents organizations hosted within a MySQL base, and we are 
on the proccess to use GUF (waiting for a stable LoginManager) as 
an acl-user replacement (end of this week or next week).
Should be cool to share our experiences on that, and i can improve 
ZAnnu if some functions are missing.

http://www.zope.org/Members/dgeorgieff/ZAnnu.

Didier Georgieff

___
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] Fwd: Re: [Zope] Urgent: acquisition and permissions question.

2000-09-18 Thread Gilles Lavaux

Yes, I know, but I want to avoid duplicating methods. And I would like to
understand why it's not working as expected.

Gilles

-Original Message-
From: Diego Rodrigo Neufert [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Monday, September 18, 2000 5:36 PM
Subject: [Zope] Fwd: Re: [Zope] Urgent: acquisition and permissions
question.


Just put an index_html under protected folder
the user will get access denied...

On Mon, 18 Sep 2000, you wrote:
 Hello everybody

 Maybe the answer is easy, but I can not find the solution:(and maybe I
was
 completly wrong about permissions)


 I have a folder containing SQLs and methods:
 /project
 and a subfolder who has his access and view security setting disable for
 anonymous:
 /project/protected

 When anonymous access /project/index_html  he see the page : that's good.
 1)When anonymous access /project/protected/index_html he also see the
page.
  Is it normal?? ( the index_html is of course only inside the /project )

 2)If anonymous access /project/protected/some_method_with_sql and the
result
 is empty, he see the result page!That's strange.
But if the result is not empty, he get the authentication box : that's
 good.

 It's zope2.2.1


 So can someone explain me the rules when an unprotected object is
acquired
 from a protected folder??

 Thanks,

 Gilles


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

--
---
Diego Rodrigo Neufert
-webmaster
---
(Magic Web Design)
(email) ([EMAIL PROTECTED])
(curitiba) (pr)

___
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] SiteAccess Installation failure

2000-09-18 Thread marwin98

Hello list,

I just tried to install SiteAccess, because I need virtual hosting with 
Apache and Zope which works great - instead of the "rootfolder"-thing that 
SiteAccess is for.
Without SiteAccess everything works fine:
http://my.server.dom:8080/manage and http://vhost.server.dom/ (using 
Apache on port 80 as proxy)

As soon as I stop the Zope Server, put the files for SiteAccess into 
/var/zope/lib/python/Products and starting the server again, I constantly 
get this error (although there are no alert messages in Z2.log, just the 
normal access-entries):

Error Type: TypeError
Error Value: unexpected keyword argument: validated_hook
[...]
Traceback (innermost last):
   File /var/zope/lib/python/ZPublisher/Publish.py, line 222, in publish_module
   File /var/zope/lib/python/ZPublisher/Publish.py, line 187, in publish
   File /var/zope/lib/python/Zope/__init__.py, line 221, in 
zpublisher_exception_hook
 (Object: ApplicationDefaultPermissions)
   File /var/zope/lib/python/ZPublisher/Publish.py, line 162, in publish
TypeError: (see above)

When I remove the directory /var/zope/lib/python/Products/SiteAccess and 
restart the server again, everything works as before - except the siteroot 
functionality of course :-(

Does someone have info how I can get SiteAccess to run correctly on my 
machine (Linux, newest Zope source distribution)?
Any help would be appreciated!

Martin


___
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] Dynamically render DTML?

2000-09-18 Thread Magnus Alvestad

As a follow-up, is it possible to evaluate DTML that is returned from
an SQL Query?

-Magnus

___
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] repost of ImplicitAcquirerWrapper

2000-09-18 Thread Martijn Pieters

On Sat, Sep 16, 2000 at 02:04:59PM -0400, Chalu Kim wrote:
 Here is the trace;
 
 2000-09-16T17:34:55 ERROR(200) ZODB Couldn't load state for
 '\000\000\000\000\000\000\017\225'
 Traceback (innermost last):
   File /usr/local/Zope-2.2.0-src/lib/python/ZODB/Connection.py, line
 447, in setstate
 SystemError: Failed to import class ImplicitAcquirerWrapper from module
 Acquisition

 This problem occurs with w_pcgi.py with 2.2.0 source. Starting is fine
 but it renders a directory viewable but unmanageable..
 
 I tried to import and it only works when in Zope/lib/python. Others will
 result in error "No module named Acquisition".

(From a private email, also):
 In particular, the problem is related to mysqlUserFolder. The whole
 directory goes sort of sour and the directory becomes viwable but
 unmanageable.

Hmm.. I am not sure what goes on here, but I suspect that mysqlUserFolder
is at fault here. It seems it (or another faulty product) stores wrapped
objects in the ODB, and IIRC this shouldn't happen.

To be honest, I have never looked deeply into the voodoo that is
pickling/unpickling.

 I started getting into ZODB and find ways to check soundness of the
 database itself. Any pointer on this?

There are a few tools for analysis and recovery:

  - fsrecover.py, which can be found in lib/python/ZODB of a Zope
distribution, repairs damaged Data.fs files. Start with python
fsrecover.py /path/to/Data.fs.

  - tranalyzer (http://www.zope.org/Members/tsarna/Tranalyzer) let's you
look athe contents of a ZODB, in real time if necessary.

However, this is a problem with a correct pickle, but the class needed for
the unpickling isn't available. ImplicitAcquirerWrapper can never be
imported from Acquisition however.

-- 
Martijn Pieters
| Software Engineer  mailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
-

___
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] ANNOUNCE: KM|Net News 1.1.1

2000-09-18 Thread Joshua Brauer


Thanks!

I'm having trouble though in that after deleting the old product and trying to import 
the new product I get an error that KMyear already exists. Am I doing something wrong?

Josh



At 10:40 AM -0400 9/16/00, Kevin Dangoor wrote:

Hi,

I've had a few reports of trouble with KM|Net News and Zope 2.2. I have
fixed the reported problem, but have not extensively tested KMNN with Zope
2.2. If you're using KMNN with Zope 2.2, you can pick up the new release
here:

http://www.zope.org/Members/taz/kmnn

Kevin


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

-- 
-
Joshua Brauer
Computer Support Scientist
Department of Biochemistry and Molecular Biology
Colorado State University
Fort Collins, CO 80523
(970) 491-1080/pager:  (970) 498-7995, #5837
-

___
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_delObjects on ZopeTime

2000-09-18 Thread Dr. Anthony Monta

Hi everyone,

I'm rolling my own resume'-posting application for Zope 2.2.x using custom 
ZClasses and methods, and I have a question: what's the DTML for making 
these objects auto-delete after x number of days?

I think I have to tell a method displaying the resume's to apply 
manage_delObjects to any invoked resume'-class instance if thirty days (or 
hour equivalent) from the time of that object's creation has elapsed.  But 
I'm unsure of the syntax and whether there's a danger in using a public 
display method to delete items this way.

dtml-with Resumes
   dtml-in "objectValues(['Resume'])"
 dtml-with sequence-item
   dtml-if "bobobase_modification_time...
 dtml-call manage_delObjects...
   dtml-else
 dtml-var index_html
etc.

Could someone point me (and other fledglings) in the right direction?

Many thanks,
Anthony


Anthony Brietz Monta
Coordinator of Curricular Assessment  Academic Reporting
Louisiana Board of Regents
150 Third Street, Suite 129
Baton Rouge, LA 70801-1389
225.342.4253, ext. 143
[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] cbsnewyork.com

2000-09-18 Thread Scheidt, Tom E

Hi Melanie,

Can you make sure nothing is pointing to: stage.nyc.local.cbsig.net
Please have anything pointing there go to www.cbsnewyork.com instead.
Thanks.

Tom Scheidt
Design Manager
cbsnewyork.com

EMAIL:[EMAIL PROTECTED]
PHONE:212.975.7807
PAGER:917.566.1061
[EMAIL PROTECTED]

 application/ms-tnef


Re: [Zope] Design Question

2000-09-18 Thread Maik Roeder

Hi Tim !

Tim Cook wrote:
 
 Tim Cook wrote:
 
 
  Anyway I pickled the dictionary and it's just over 1.3MB so I
  thought I'd use an external method to read the pickled object,
  pass it the paragraph and test for the correct code(s), then
  return a list. Is this the most effective way to use Python/Zope
  for this situation?

I guess this is effective, but not efficient whatever language
you use ;-)

 Adding to my own post:
 I did play around with shelving but did not see that there was
 much of an increase in speed. The real estate requirement went up
 to 8MB+.
 
 Thinking outloud again...
 I think I'll take the original comma delimited file.
 Get all words and remove the common ones (the, of, and, etc)
 Find every line where each particular word appears.

That uses substring matching I guess, which is not efficient
in this case.

 Store those codes in a dictionary with the word as the key.
 (Basically, I'm turning the file around backwards I guess?)
 Then for every keyword hit from the paragraph I'll have a list of
 codes that I can count the nmber of positive hits on each code.

Here you use the quality of dictionaries, which provide quick
lookups. 

How to search for the codes with the most hits is another story :-)
 
 Hmm, sounds like a search engine to me.  Anybody got one written
 in Python g. That's faster than a Zope Catalog?

I guess the Catalog doesn't support OR searches, which would
do what you need.
 
Regards,

Maik Röder

-- 
Uzopia - Digging la vida Zopa - http://uzopia.editthispage.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 )




Re: [Zope] file upload and MySQL

2000-09-18 Thread Dieter Maurer

=?iso-8859-1?q?J=F8rn?= Helge B. Dahl writes:
  So, what I do not know, is how I "extract" the information from the file
  upload, and make it available to my sqlMethod.
This is an FAQ (answer found in the searchable list archive!).

Uploaded files are "ZPublisher.HTTPRequest.FileUpload" instances.
They behave like files with the additional attributes
"filename" and "headers".
To get the size, you may need to use "seek" (to the end) and "tell".

You make this information available to an sql method
as you make any parameter available for them:

either: put them in the REQUEST object (-- REQUEST.set)
or: call the sql method with keyword parameters


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] Urgent: acquisition and permissions question.

2000-09-18 Thread Dieter Maurer

Gilles Lavaux writes:
  Maybe the answer is easy, but I can not find the solution:(and maybe I was
  completly wrong about permissions)
  
  
  I have a folder containing SQLs and methods:
  /project
  and a subfolder who has his access and view security setting disable for
  anonymous:
  /project/protected
  
  When anonymous access /project/index_html  he see the page : that's good.
  1)When anonymous access /project/protected/index_html he also see the page.
   Is it normal?? ( the index_html is of course only inside the /project )
  
  2)If anonymous access /project/protected/some_method_with_sql and the result
  is empty, he see the result page!That's strange.
 But if the result is not empty, he get the authentication box : that's
  good.
  
  It's zope2.2.1
The security system does not use the full acquisition context but
only the containment. This is a security feature to prevent
a user with partial management rights in a subfolder to
affect permissions for objects outside its area.

I think (am not sure!) that in your case, the "protected" context
is not used as your objects are in fact outside "protected".


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] API documentation bug (was: [Zope] set date property from External Method)

2000-09-18 Thread Dieter Maurer

Gijs Reulen writes:
   If you use the "PropertyManager" interface (as you should),
   then string values are *converted* to the correct type automatically.
  
  Not so, according to my info and tests:
  
  From the Zope 2.2.1 API docs on manage_changeProperties(self, REQUEST=None,
  **kw):
  
  "... Note that no type checking or conversion happens when this method is
  called, so it is the caller's responsibility to ensure that the updated
  values are of the correct type. This should probably change. ..."
The API doc is old and outdated:

  Both "manage_changeProperties" and "manage_editProperties" call
  "_updateProperty". "_updateProperty" has this code:

def _updateProperty(self, id, value):
# Update the value of an existing property. If value
# is a string, an attempt will be made to convert
# the value to the type of the existing property.
self._wrapperCheck(value)
if not self.hasProperty(id):
raise 'Bad Request', 'The property %s does not exist' % id
if type(value)==type(''):
proptype=self.getPropertyType(id) or 'string'
if type_converters.has_key(proptype):
value=type_converters[proptype](value)
self._setPropValue(id, value)

Thus, if you pass a string to "manage_changeProperty" or
"manage_editProperty", it is converted to the correct
type.

A Date property uses the type "DateTime.DateTime".

  I tried things like:
  self.manage_changeProperties(my_prop=time.strftime('%Y/%m/%d  %H:%M:%S.000
  GMT+1',time.localtime(time.time(
I checked (Zope 2.2.1):

   self.manage_changeProperties(my_prop='2000/9/12')

You can pass any DateTime value, too, e.g.:

   self.manage_changeProperties(my_prop= DateTime())


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

2000-09-18 Thread Chris McDonough

Hi Joshua,

See the "The Debugger Is Your Friend" how-to on Zope.org by Michel
Pelletier.

[EMAIL PROTECTED] wrote:
 
 Is there a way to edit Data.fs independent of the Zope interface?
 
 From what I can tell I have a remnant of a deleted product still "registered") and 
therefore can't add a new/similar product because  it has an identical class-id. The 
product is a z-class so it's gone from the product menu and there aren't any files 
associated with it to remove. Is there any way to edit ZODB directly or to have it 
"scoured" clean?
 
 Josh
 --
 -
 Joshua Brauer
 Computer Support Scientist
 Department of Biochemistry and Molecular Biology
 Colorado State University
 Fort Collins, CO 80523
 (970) 491-1080/pager:  (970) 498-7995, #5837
 -
 
 ___
 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 )

-- 
Chris McDonough
Digital Creations, Publishers of Zope
http://www.zope.org

___
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] string to list?

2000-09-18 Thread Dieter Maurer

Nitesh Dhanjani writes:
  
  Hello,
  
  I have a Z SQL method which returns me a string like {{"a"},{"b"},{"c"}}
  
  Is there anyway I can write a dtml-in loop to pick out each element from
  the string? I want to be able to do something like:
  
  dtml-in my_zsql_method_which_returns_a_string
  dtml-var element,
  /dtml-in
  
  and that should give me "a,b,c".
You are sure, the string always has this format?

Then there is a solution, though an external method might be better:

dtml-let result=sql_method
  strip_outer_chars="result[3:-3]"
  split="_.string.split(strip_outer_chars,'\x22},{\x22')"
  rejoin="_.string.join(split,',')"

  dtml-var rejoin !-- your a,b,c --
/dtml-let


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] Re: Mailhost problems (was: [Zope] (no subject))

2000-09-18 Thread Dieter Maurer

"Suhail Murtaza"  writes:
  hello sir...
  Thanx for responding.
  i have tried all the things ur goodself mentioned and
  tried it again today after reading ur mail..but somehow
  couldnt come up with success..
There is an essential thing with "dtml-sendmail".
The header fields must not be preceeded with white space!

Otherwise, I do not have more ideas.


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] nested in tags

2000-09-18 Thread Dieter Maurer

Tom Deprez writes:
  Any experience with using nested in tags with ZSQLMethods?
A FAQ.

The searchable archive contains at least 5 threads about this theme.

  If I use nested in-tags iand use the previous-sequence, ... tags (in the
  inside in-tag) it seems that it looks at the first (outside) in-tag. 
  If I look at the generated url of this previouse-sequence link, it is the
  url of the outside previous-sequence link.
  Also, the inner in-tag only displays the last record.
  
  What am I doing wrong? Or am I trying something which isn't possible to do?
SQL methods do *NOT* look at the DTML namespace, only at the REQUEST
object!

You must either put your parameters into REQUEST (-- REQUEST.set)
or call the SQL method with explicit keyword parameters.


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

2000-09-18 Thread Joshua Brauer

Is there a way to edit Data.fs independent of the Zope interface?

From what I can tell I have a remnant of a deleted product still "registered") and 
therefore can't add a new/similar product because  it has an identical class-id. The 
product is a z-class so it's gone from the product menu and there aren't any files 
associated with it to remove. Is there any way to edit ZODB directly or to have it 
"scoured" clean?

Josh
-- 
-
Joshua Brauer
Computer Support Scientist
Department of Biochemistry and Molecular Biology
Colorado State University
Fort Collins, CO 80523
(970) 491-1080/pager:  (970) 498-7995, #5837
-

___
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] FSSession problems...

2000-09-18 Thread Ayhan Ergul


I am also experiencing the problem of two different users sharing the same
session inadvertently. However, in my case, I can disqualify a few things
that were previously discussed as possible reasons why this happens and
add some more info:

- Zope is running without Apache
- Clients have different SessionUID's assigned (2580309312979106
vs. 26209573571042815)
- Clients are netscape on linux running on the same computer as zope
vs. netscape on nt4 in the same local network as the other (with no
caching in between).
- I have the two browsers open and I can freely modify page on one, reload
the same page on the other and see the updates reflected.

Any clues appreciated.

Ayhan


On Tue, 29 Aug 2000, Curtis Maloney wrote:
 On Tue, 29 Aug 2000, Pavlos Christoforou wrote:
  On Mon, 28 Aug 2000, Curtis Maloney wrote:
   /dtml-if
  
   This was aparently working fine for quite some time (about a month
of
   public usage), until last week.  We have examined logs, and seen
that one
   person accidentaly used the system under someone elses ReturnerID,
and
   then rectified their mistake.
 
  If he did rectify the mistake then that should not have resulted in a
  problem. In any case the problem should have been isolated to that
user
  only. Could it be that the cookie is cached somewhere? I am not
familiar
  with the underlying pricinciples of the apache Proxy directives.
 
 
 The user 'rectified' the problem by submitting the request again under
their 
 own ID.  I don't know when/how they noticed, and am not able to contact
them 
 for further comment.
 
 As for the cookie being cached, I don't know.  It is possible, as I
said, 
 that Apache is causing problems.  ProxyForward means that when a URL
matches 
 a rule, it will be 'forwarded' to another server, and the returned page 
 issued as if from Apache.
 
 From the benchmarks I've seen, this is the fastest way to run
Zope.  However, 
 I can see how it could confuse Zope into thinking two different users 
 requests are from the same machine, since all the requests are coming
from 
 Apache.  However, I am hoping (going to check on this, of course
:)  that the 
 smart folks at Apache have made it 'proxy' properly, to avoid this sort
of 
 problem.
 
  Pavlos
 
 Curtis



___
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] Dynamically render DTML?

2000-09-18 Thread Mark N. Gibson

Thanks too all who replied,  I may have simplified my problem a little too
much before posting it.
The heart of it is that I'd like to have the Zope evaluate an arbitrary string
as if it were a DTMLMethod

For those interested, here is what I ended up doing...

--
pyfile.py

from OFS.DTMLMethod import DTMLMethod


class myclass:
""" a callable object:
   This is acting as a base class for a ZClass """


   def __call__(self,REQUEST):
   """a callable object - I pass in REQUEST because my dtml-vary seems to
require it """

   # create your dtml string - note: the idea is, this doesn't have to be a
static string...
   text= 'dtml-vary lang="en,en-US,en-BR"\
H1ENGLIS TITLE/H1\
THIS IS ENGLISH CONTENT\
dtml-vary lang="fr,fr-CA,fr-FR"\
THSI IS FRENCH CONTENT\
dtml-vary lang="es"\
H1Spanish title/H1\
This is spanish text\
/dtml-vary'

   met h=DTMLMethod()
   # populate the DTMLMethod
   meth.manage_edit( text,'THIS IS THE TITLE')

   #the DTMLMethod goes out of scope here, so it's never persistent ( I hope
).
   return meth(REQUEST)

--

I call this from from zope as follows...

-
dtml-var standard_html_header
h2dtml-var title_or_id/h2

p

dtml-comment m1 is an instance of a ZClass that has myclass as a base
class.  dtml-comment
dtml-comment this   calls myclass.__call__(self,REQUEST)dtml-comment
dtml-var expr="m1(REQUEST)"


/p

dtml-var standard_html_footer

-

This solution worked for me.  It would still be nice if I didn't have to pass
REQUEST explicitly. I could have derived myclass (or the ZClass) from
DTMLMethod,   but I didn't need the DTMLMethod itself to be persistent.
Also, I'm not sure how to intercept __call__ and pas it on to the DTMLMethod.

It's a little ugly, but it works.  It would be nice to be able to just say
dtml-var myclassObjectName in zope and have it render.

Mark


Kapil Thangavelu wrote:

 "Mark N. Gibson" wrote:
 
  Is it possible to return dtml from python, and have it rendered correctly
  on the page?
 
  for example, the python might look like this...
 
  def get_header(somevar=1):
if somevar==1:
 return 'dtml-var standard_html_header'
else:
 return 'dtml-var other_html_header'
 
  The dtml document in the zodb might look like this...
 
  dtml-var expr="get_header(1)"
 Body text
  dtml-var standard_html_footer
 
  When this gets rendered, it's as if the dtml document had
  dtml-var standard_html_header in place of the get_header call.
 

 to have your example work would require multiple or nested passes of the
 dtml-evalutation machinery. so no you can't return a string containing
 dtml and expect it to be evalutated. the machinery expects you to return
 a
 string or value (for dtml-var) to which it will apply formatting rules.

 on the web the evalutation machinery automatically calls (possibly
 nested) dtml tags, so this is not a concern, but again it only performs
 the evaluation once.

 if you want to achieve this result from python you can evaluate/call the
 standard_html_header in python and return the resultant string. see the
 arguements for DTMLMethod in the /lib/python/OFS folder for exact
 syntax.

 doing it from a dtml method would be easier assuming it fits the usage.
 dtml-call "REQUEST.set('somevar', getvaluefromsomewhere()"
 dtml-if "somevar==1"
 dtml-var standard_html_header
 dtml-else
 dtml-var other_html_header
 /dtml-if

 Cheers

 Kapil

  I understand how to call external methods from dtml, etc.  I just want
  to know if it's possible to get the string returned rendered as dtml.
 
  Mark
 
  ---
  Mark Gibson
  Kaivo, Inc.
  www.kaivo.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 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-tree urlparam

2000-09-18 Thread Jonothan Farr

Oops. Forgot to mention, this patch adds a new param to the tree tag,
'urlparam_expr' which is a Python expression to evaluate and use as the
urlparam.

--jfarr

- Original Message -
From: Júlio Dinis Silva [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, September 18, 2000 12:59 PM
Subject: [Zope] dtml-tree urlparam


 Hello all!

 Suppose I have a page who needs some dinamically generated params in order
 to be rendered.
 Suppose this page also has a dtml-tree. I found that to
 add extra params to the url created I can use the urlparam param :-)

 But suppose instead of passing "arg=1" I want to pass
 REQUEST['QUERY_STRING']. I thought urlparam would do the trick but
 using urlparam=QUERY_STRING the string passed is "QUERY_STRING" instead of
 the value of QUERY_STRING.

 Is there another param to do what I want or do I have to go into the
 source to hack dtml-tree to force to pass my QUERY_STRING parameters?

 thanx to all,
 Julio 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 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] Design Question

2000-09-18 Thread Tim Cook

Maik Roeder wrote:

 
 I guess the Catalog doesn't support OR searches, which would
 do what you need.
 

Actually the ZCatalog solution works. But having 15,212 instances
of a ZClass in one BTree folder was pretty slow. I ASS-U-MEd that
an external python method might provide a better solution?

In the Real World(tm), there won't be but maybe one-half as many
codes in an installation. But I like 'worst case' testing. g

-- Tim Cook --
Cook Information Systems | Office: (901) 884-4126 8am-5pm CDT
* Specializing in Open Source Business Systems *
FreePM Project Coordinator http://www.freepm.org
OSHCA Founding Supporter http://www.oshca.org

___
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] Design Question

2000-09-18 Thread Maik Roeder

Hi Tim !

Tim Cook wrote:
  I guess the Catalog doesn't support OR searches, which would
  do what you need.
 
 Actually the ZCatalog solution works. But having 15,212 instances
 of a ZClass in one BTree folder was pretty slow. I ASS-U-MEd that
 an external python method might provide a better solution?

I think the ZCatalog itself can handle this much objects, and handing
the problem off to an external method doesn't change the problem.
 
 In the Real World(tm), there won't be but maybe one-half as many
 codes in an installation. But I like 'worst case' testing. g

Then why don't you store the objects in different folders ?
For example, I have just implemented a way to store objects in
year/month/day folder automatically to handle incoming news in
a news site. It's almost what KMNetNews does, but automatically.

Regards,

Maik Röder

-- 
Uzopia - Digging la vida Zopa - http://uzopia.editthispage.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] Data date type returned by ZSQL method

2000-09-18 Thread Stuart Foster

I am trying to format a date value that is returned by a ZSQL method but
keep getting an error.
I am using the same format string where I use ZopeTime dtml-var ZopeTime
fmt="%m/%d/%Y".
Yet when I try to use it for a timestamp field from PSQL I get the following
error.

Error Type: ValueError
Error Value: unsupported format character 'm' (0x6d)

It sounds like the value being returned isn't a true date type?

Any clues?




___
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] ZODB Edit

2000-09-18 Thread Joshua Brauer


OK maybe I'm missing something, but I can't see how to use the debugger to get 
information that Zope won't normally serve anyway. I'm trying to find the remnant of a 
product that didn't' get completely deleted. It doesn't appear on the management 
interface and I can't see anything with the debugger that I can't see through the 
management interface. What I really want to do is list/edit all the kinds of data Zope 
knows about

Josh


At 6:12 PM -0400 9/18/00, Chris McDonough wrote:

Hi Joshua,

See the "The Debugger Is Your Friend" how-to on Zope.org by Michel
Pelletier.

[EMAIL PROTECTED] wrote:

 Is there a way to edit Data.fs independent of the Zope interface?

 From what I can tell I have a remnant of a deleted product still "registered") and 
therefore can't add a new/similar product because  it has an identical class-id. The 
product is a z-class so it's gone from the product menu and there aren't any files 
associated with it to remove. Is there any way to edit ZODB directly or to have it 
"scoured" clean?

 Josh
 --
 -
 Joshua Brauer
 Computer Support Scientist
 Department of Biochemistry and Molecular Biology
 Colorado State University
 Fort Collins, CO 80523
 (970) 491-1080/pager:  (970) 498-7995, #5837
 -

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

--
Chris McDonough
Digital Creations, Publishers of Zope
http://www.zope.org

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

-- 
___
Joshua Brauer
  [EMAIL PROTECTED]
  http://www.brauer.org
___

___
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] Desperate Zope is crashing ....

2000-09-18 Thread Bak @ kedai


i'm no expert, but have you tried starting zope in debug mode or with 
STUPID_FILE_LOGGER enabled?

that may help point where the errors may have come from

  http://lists.zope.org/mailman/listinfo/zope-dev )

-- 

http://www.kedai.com.my/kk 
http://www.kedai.com.my/eZine 

I will follow you! ..Damage Inc


___
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] JOB: Fantastic Zope position at Fortune 100 company

2000-09-18 Thread Paul Everitt


Hello friends.  We at Digital Creations have been pretty low-key about
promoting job announcements.  I'll break the tradition, but only to
promote someone else's job position.  The reason I'm getting involved is
the project is a Big Deal for Zope and the folks involved are great
people.  For those not interested, please grant me a "get out of jail
free" pass on this one. :^)

In the very near future, a Fortune 100 media company will launch a new
web initiative for which Zope is the content management platform.
Digital Creations has been working closely with the company on the
architecture for the project.

With the initial success, the company wants to augment its internal Zope
technical staffing.  The job opening is for someone with strong
Zope/Python skills, preferably on Linux.  Background in web design,
information architectures, and project management are beneficial.

The vision for this project is quite exciting indeed.  If any of you are
interested in a prime-time Zope position in New York City, contact me
([EMAIL PROTECTED]) and I'll pass along your contact information.

(Update: The site did a soft launch last week, so time is of the
essence!)

--Paul

___
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] CatalogAwareness is broken on 2.2

2000-09-18 Thread Lalo Martins

On Mon, Sep 18, 2000 at 10:47:35PM -0300, Lalo Martins wrote:
 CatalogAwareness in 2.2.x doesn't follow the new ZCatalog
 traversal standard - it uses absolute_url() to get the url it
 will give to the ZCatalog, and ZCatalog now wants an absolute
 (non-virtual) path. In practice, this means CatalogAware stuff
 won't work in conjunction with SiteAccess-based virtual
 hosting.

Just occurred to me to check the Collector; this is bug 1580
there. I sent a one-line patch (which will appear as 1629 if I
did everything right); I don't know if it's 100% right, but it
Works For Me (TM) ;-)

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


--- Products/ZCatalog/CatalogAwareness.py.orig  Thu Aug 24 11:09:21 2000
+++ Products/ZCatalog/CatalogAwareness.py   Mon Sep 18 23:07:18 2000
@@ -154,7 +154,7 @@
 if hasattr(self, 'DestinationURL') and \
callable(self.DestinationURL):
 url='%s/%s' % (self.DestinationURL(), self.id)
-else: url=self.absolute_url()
+else: url=string.join(self.getPhysicalPath(), '/')
 type, uri=ftype(url)
 host, uri=fhost(uri)
 script_name=self.REQUEST['SCRIPT_NAME']