Re: [Zope-dev] is INSTANCE_HOME broken on Win32?

2000-09-14 Thread Rik Hoekstra


 Any ideas?


the python way of getting the right path separators is to use 

os.path.join(item1, item2, ...)

Works even for macs ;-)

Rik


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




[Zope-dev] ZPatterns bug: typo in Transactions.py

2000-09-14 Thread Steve Alexander

ZPatterns, latest released version.
def abort_sub(self, transaction):

In Transactions.py, aborting a subtransaction will fail because of a
method signature mismatch.

Was:

def abort_sub(self, transaction):
self.tpc_abort()

Should be:

def abort_sub(self, transaction):
self.tpc_abort(transaction)


I think there's something not quite right about the way ZPatterns is
handling subtransactions, even with this patch, and the other one
related to Transactions.py that I posted a while back.

Is there any detailed documentation about how Zope transactions and
subtransactions are supposed to work?

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




[Zope-dev] Wiki Pain

2000-09-14 Thread Toby Dickenson

Since the beginning of this year DC have moved alot of debate and
discussion out of mailing lists, and in to Wikis.
http://www.zope.org/WikiCentral/FrontPage lists most Zope Wikis. Does
anyone else find Wikis to be far less convenient than a good old
mailing list?

Ive been annoyed by the following characteristics:

1. No threading. On several occasions I have made comments in a Wiki
that were subsequently ignored - I guess because they got lost in the
mass of other edits. Recently people have been adding edits to the end
of the page: This makes it easier to keep track of changes, but harder
to catch up on a discussion when you come to it for the first time. 

2. No personal replies. On several occasions I would have liked to
email a comment personally to another contributer, but they didnt
leave an email address.

3. No update notification. The one time I was update to keep up with a
Wiki discussion involved the other participant always manually
emailing a change notification.

4. Hard to keep track of many Wikis: Each wiki has its own 'whats
changed' page, but even those are too coarse.

5. Too easy to fragment a discussion. On several occasions I have
thought that a discussion had dried up, only to find out later on that
it had moved to another page.

6. Too easy to miss the creation of a Wiki. On several occasions
people have posted comments on zopedev questioning why noone has
commented on their page - Noone knew it was there. This is
particularly a problem because Wikis tend to get created sooner than a
new mailing list would do, out of the desire to capture all discussion
inside that Wiki. Mailing lists only tend to get created once there is
enough traffic to justify them, and by then everyone is aware of the
topic.

7. Too easy to loose content. On several occasions I have been unable
to add a comments to a Wiki, either because www.zope.org would not let
me login, or because its database was full.

8. Editing is painful. I have to use the browsers text field, and the
whole Wiki page has to make a round trip with every change.

9. I never get the structured text quoting of python source right
first time.

10. There are too many empty pages, because someone has clicked on a ?
next to word that happened to be a WikiName. Useful pages lie hidden
behind a sea of links to empty pages.

rant ends.



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

2000-09-14 Thread Chris Withers

Toby Dickenson wrote:
 http://www.zope.org/WikiCentral/FrontPage lists most Zope Wikis. Does
 anyone else find Wikis to be far less convenient than a good old
 mailing list?

Each has their ups and downs :-S

 1. No threading. On several occasions I have made comments in a Wiki
 that were subsequently ignored - I guess because they got lost in the
 mass of other edits. Recently people have been adding edits to the end
 of the page: This makes it easier to keep track of changes, but harder
 to catch up on a discussion when you come to it for the first time.

...and there's still the problem of finding out who made what changes to
what. I thought 2.2's history-isms would help here?

 2. No personal replies. On several occasions I would have liked to
 email a comment personally to another contributer, but they didnt
 leave an email address.

That's a tough one though, isn't it?

 3. No update notification. The one time I was update to keep up with a
 Wiki discussion involved the other participant always manually
 emailing a change notification.

Yeah, that's not _that_ hard to do, and I wish it'd be done a long time
ago :-S

 4. Hard to keep track of many Wikis: Each wiki has its own 'whats
 changed' page, but even those are too coarse.

Yeah, that is a tough one too :-S

 5. Too easy to fragment a discussion. On several occasions I have
 thought that a discussion had dried up, only to find out later on that
 it had moved to another page.

...that's just bad use of Wiki, although sadly, that's qutie easy to
do...

 8. Editing is painful. I have to use the browsers text field, and the
 whole Wiki page has to make a round trip with every change.

What about FTP? I'm pretty sure you can do it into zope.org although I
can never remember the port number :-S

 9. I never get the structured text quoting of python source right
 first time.

DTML is _that_ much worse too :S lt; and RSI anyone? ;-)

 10. There are too many empty pages, because someone has clicked on a ?
 next to word that happened to be a WikiName. Useful pages lie hidden
 behind a sea of links to empty pages.

Yeah, this also makes the RecentChanges page kindof useless too :-S

Okay, here's an idea which people may or may not like:
How about running the 'Discussion' parts of (in particular) dev.zope.org
from ZDiscussions, ZUBB or Squishdot?
These products are designed for discussion and are better at it than a
Wiki. Speaking for Squishdot, you get a lot of notifcation (not as much
as I'd like, wait for Swishdot for that ;-) and threading, and it's even
got Stuctured Text support now.

end of advert ;-)

I dunno about other people, but I've given up on dev.zope.org simply
because I cannot track the changes without having to put in a
disproportionate amount of work.

This has meant that a lot of proposals which could help with things that
I really hate about Zope (DTML, lack of ability to 'hide' methods like
standard_html_footer from URL access, lack of groups in Zope security) I
haven't had the opportunity to comment on in a useful way (yes, yes, no
comments about my views being useful ;-) way.

end of Rant II ;-)

Chris

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




Re: [Zope-dev] WikiDot? ;-)

2000-09-14 Thread Chris Withers

Chris McDonough wrote:
 A lot of the listed complaints are trying to be addressed by the
 "WikiNG" proposal, which is (of course) in the Proposals wiki on
 dev.zope.org.

The irony ;-)

 This may be a good idea... personally, I really don't have much of a
 problem keeping up with the discussions, but it seems a lot of people
 do.  This idea should probably be floated in dev.zope.org itself as a
 proposal.

I'll give it a go :-S

How abotu a cross between a Discussion Forum and a Wiki?

  I dunno about other people, but I've given up on dev.zope.org simply
  because I cannot track the changes without having to put in a
  disproportionate amount of work.
 
 You give up fast.

Sorry, bad choice of phrasing... I've given up trying to follow the
stuff on there, which, I think, means I miss out on lots of stuff there
:-S I still think dev.zope.ogr is a 'very good thing' (tm) :-)

cheers,

Chris

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




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

2000-09-14 Thread Chris McDonough

A lot of the listed complaints are trying to be addressed by the
"WikiNG" proposal, which is (of course) in the Proposals wiki on
dev.zope.org.

 Okay, here's an idea which people may or may not like:
 How about running the 'Discussion' parts of (in particular) dev.zope.org
 from ZDiscussions, ZUBB or Squishdot?
 These products are designed for discussion and are better at it than a
 Wiki. Speaking for Squishdot, you get a lot of notifcation (not as much
 as I'd like, wait for Swishdot for that ;-) and threading, and it's even
 got Stuctured Text support now.
 
 end of advert ;-)

This may be a good idea... personally, I really don't have much of a
problem keeping up with the discussions, but it seems a lot of people
do.  This idea should probably be floated in dev.zope.org itself as a
proposal.

 
 I dunno about other people, but I've given up on dev.zope.org simply
 because I cannot track the changes without having to put in a
 disproportionate amount of work.

You give up fast.

___
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-14 Thread Toby Dickenson

On Thu, 14 Sep 2000 10:11:56 -0400, Chris McDonough
[EMAIL PROTECTED] wrote:

A lot of the listed complaints are trying to be addressed by the
"WikiNG" proposal, which is (of course) in the Proposals wiki on
dev.zope.org.

Yes, I was aware of that proposal, and I tried to avoid repeating
issues that are already being discussed there. WikiNG is a better kind
of collaborative-editing tool, but that seems to be fundamentally the
wrong medium for debate.

 How about running the 'Discussion' parts of (in particular) dev.zope.org
 from ZDiscussions, ZUBB or Squishdot?

This may be a good idea...

What's wrong with a mailing list? Is this just a case of NIH?

This thread has already been more productive than anything Ive done on
a Zope Wiki over the last year, and taken a fraction of the effort.


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] ZPatterns (sub-)transaction problems

2000-09-14 Thread Phillip J. Eby

At 01:41 PM 9/14/00 +0100, Steve Alexander wrote:

I think there's something not quite right about the way ZPatterns is
handling subtransactions, even with this patch, and the other one
related to Transactions.py that I posted a while back.

Is there any detailed documentation about how Zope transactions and
subtransactions are supposed to work?


Unfortunately, the problem is not with Zope but with ZPatterns.  I was
about to announce this today anyway, but I figured I might as well do it by
replying to your post.

The ZPatterns transaction machinery is seriously broken with respect to
subtransactions.  It is mostly functional with respect to "plain"
transactions.  It has been broken since its inception due to a design
stupidity on my part.  Under pressure to get a working 0.4.0 system, I
started coding without a fully thought-out design for the transaction
handling system, and changed it midway two or three times before I got
something that (basically) works.

I did not discover the flaws until yesterday, when Ty tried to use
subtransactions in a to-be-production application.  An hour or so of
debugger-stepping and Zope-source-reading later, we were able to fix the
code to allow a single subtransaction commit to succeed, but *only* if no
work were done following the subtransaction commit.  sigh

I will try to have a ZPatterns snapshot release made this week that will
include those fixes (plus the fix for a problem with DynPersist that we
also discovered yesterday).

It should be noted, however, that the resulting release will still not be
good for much with respect to subtransactions.  I am in the process now of
redesigning the entire transaction machinery to correct the problems.  On
the bright side, I have already seen how the redesign will simplify the
code of several classes, while possibly improving both performance and
memory usage.


___
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] Excellent Quote :-)

2000-09-14 Thread Chris Withers

"Spicklemire, Jerry" wrote:
snip very good points about DTML's problems

 The greatest mystery to me
 is how something this obscure could have possibly been written in Python,
 which is about as obvious as code gets.

-- absolutely priceless :-)

Chris

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




Re: [Zope-dev] Wiki Pain

2000-09-14 Thread Ty Sarna

In article [EMAIL PROTECTED],
Toby Dickenson  [EMAIL PROTECTED] wrote:
 10. There are too many empty pages, because someone has clicked on a ?
 next to word that happened to be a WikiName. Useful pages lie hidden
 behind a sea of links to empty pages.

IMHO, ZWiki is broken in this respect. Clicking on a '?' shouldn't
create a page and take you to the edit form -- it should take you to an
edit form, which creates the page on save. I think this would
subtantially reduce the number of empty pages created.

___
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] edit-save not save-edit ;-)

2000-09-14 Thread Chris Withers

Ty Sarna wrote:
 In article [EMAIL PROTECTED],
 Toby Dickenson  [EMAIL PROTECTED] wrote:
  10. There are too many empty pages, because someone has clicked on a ?
  next to word that happened to be a WikiName. Useful pages lie hidden
  behind a sea of links to empty pages.
 
 IMHO, ZWiki is broken in this respect. Clicking on a '?' shouldn't
 create a page and take you to the edit form -- it should take you to an
 edit form, which creates the page on save. I think this would
 subtantially reduce the number of empty pages created.

...totally agree, and it also shouldn't be too hard to code :-S

I wonder what Simon Michael is up to nowdays?

cheers,

Chris

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




[Zope-dev] Re: ZPatterns (sub-)transaction problems

2000-09-14 Thread Steve Alexander

"Phillip J. Eby" wrote:
 
 I will try to have a ZPatterns snapshot release made this week that will
 include those fixes (plus the fix for a problem with DynPersist that we
 also discovered yesterday).

Great. I'm looking forward to that.


Can we lose DynPersist altogether for this release? 

Or are there still folks out there using ZPatterns with 2.1.6?

--
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] aq_base in DTML? Maybe 'fix' ExtensionClass?

2000-09-14 Thread Chris Withers

Carl Robitaille wrote:
 It's looks like aq_base is not available. 

Yes, apparently it's not available in DTML for security reasons :-(

You could write a really small external method to get it for you:

UNTESTED

def ex_aq_base(object):
return getattr(object,'aq_base',object)

/UNTESTED

Your other option is to stick it in the colelctor and hope Jim Fulton or
someone else who understands it gets round to 'fixing' the
ExtentionClass WRT to == and acquisition wrappers :-S

cheers,

Chris

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




[Zope-dev] Voting for patches?

2000-09-14 Thread Chris Withers

Jon Franz wrote:
 
 This is already being setup as part of the patch and small change
 integration page...
 more details once it's up this weekend ;P
 you will like.

Has anything come of this yet?

cheers,

Chris

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




[Zope-dev] RoleManager and Security of Attributes

2000-09-14 Thread Chris Withers

Lance wrote:
 Well, I'm at a loss. I tried a bunch things myself, and I've found out that
 instances of the Article class are not inheriting __ac_permissions__  from
 the Posting class.

How did you find this out? It's be good to knwo 'cos it might be a weird
acquisiton wrapping thing rather than a security problem, as such...

 In fact, even if you override __ac_permissions__ in the
 Article class, the validate() method is reporting there's nothing there. What
 I don't understand is, SquishSite works, and SquishFile works, what's so
 different about the Posting/Article classes?

Indeed, I'd love to hear some answers :-)
That said, I did get exactly the same problems with the SquishFiel
class, so I'm nto convinced it's onyl articles and replies that have
problems...

 I thought all one had to do was inherit RoleManager, 

Can someone please tell me what inheriting from RoleManager is actually
suppsoed to do or where I can fidn that out?

cheers,

Chris

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




[Zope-dev] Re: ZPatterns (sub-)transaction problems

2000-09-14 Thread Phillip J. Eby

At 03:56 PM 9/14/00 +0100, Steve Alexander wrote:

Can we lose DynPersist altogether for this release? 

Unfortunately, no.  Zope's cPersistent class appears it may have a bug that
is roughly similar to the one we're fixing in DynPersist.  (i.e., not
calling __of__ or other binding operations on an object returned from
__getattr__)

I've written Jim to ask whether my interpretation of that code is correct,
but have not received a reply.  It may take a new Zope release before
DynPersist is able to go away.  :(


Or are there still folks out there using ZPatterns with 2.1.6?

Support for 2.1.x was officially dropped with ZPatterns 0.4.2a1, but in
practice most of the support code is still there today.  It's just that
I've stopped testing on 2.1.x and no longer write code with 2.1.x
compatibility in mind.  The re-architecting of the transaction machinery
will *require* 2.2.x's transaction ordering semantics.


___
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] ZPatterns 0.4.2a2 bug fix release

2000-09-14 Thread Phillip J. Eby

It's up now.  In addition to the transaction fixes and DynPersist fix, this
release also fixes the missing import of aq_base in PlugIns.py, and the
SkinScript compiler fouling up certain expressions due to its removal of
spaces between tokens.  Last, but not least, you can now place Specialists
inside other Specialists without getting an error.

At 03:56 PM 9/14/00 +0100, Steve Alexander wrote:
"Phillip J. Eby" wrote:
 
 I will try to have a ZPatterns snapshot release made this week that will
 include those fixes (plus the fix for a problem with DynPersist that we
 also discovered yesterday).

Great. I'm looking forward to that.


___
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] Wiki Pain

2000-09-14 Thread Ken Manheimer

On Thu, 14 Sep 2000 [EMAIL PROTECTED] wrote:

 Since the beginning of this year DC have moved alot of debate and
 discussion out of mailing lists, and in to Wikis.
 http://www.zope.org/WikiCentral/FrontPage lists most Zope Wikis. Does
 anyone else find Wikis to be far less convenient than a good old
 mailing list?

Convenient for what?  If you've ever tried to support a community
through a mailling list, you'll quickly notice that questions, and
their corresponding answers, repeat.  A lot.  The problem is that
while maillists are great for keeping people up-to-date on the
business of the community, and for disseminating dialogue, they are
not so good for building structures - for organizing content so
related pieces of a story are appropriately connected.

(Note that i do *not* dislike mailling lists - before i joined DC i
resurrected mailman from an abandoned prototype and developed it for
use on python.org, because we needed a customizable system for
conducting the ongoing business of the python community.  Maillists
just are not right for building structures.)

Wikis, as they stand, are not bad for organizing stories.  We all sorely
miss change notifications and ownership attribution, a preview button, etc
- but they're better, even as they currently stand, for building
longstanding artifacts than are mailling lists.  And hopefully, in not too
long, we'll be able to improve them, or provide something else, to do the
job right.

(I am not hopeful about the fate of the WikiNG proposal right now, the
powers that be are dictating that the PTK should be the medium for
this kind of thing - and i don't see how to fit the low-impedence
features of the wiki in there, and so will be severely disappointed if
WikiNG doesn't fly, but that's up to others.  In any case, *something*
is clearly needed - the wikis are just the best fit for part of the
job, right now.)

Ken Manheimer
[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] WikiDot? ;-)

2000-09-14 Thread Ken Manheimer

On Thu, 14 Sep 2000 [EMAIL PROTECTED] wrote:

 Chris McDonough wrote:
  A lot of the listed complaints are trying to be addressed by the
  "WikiNG" proposal, which is (of course) in the Proposals wiki on
  dev.zope.org.
 
 The irony ;-)
 
  This may be a good idea... personally, I really don't have much of a
  problem keeping up with the discussions, but it seems a lot of people
  do.  This idea should probably be floated in dev.zope.org itself as a
  proposal.
 
 I'll give it a go :-S
 
 How abotu a cross between a Discussion Forum and a Wiki?

This is what i tried to get at with the part of the proposal about 
tailored structuring of wikis.  Append-to-end structuring for weblog style
wikis, allow-only-nesting (not-editing-of-other-peoples-stuff) for more
elaborate structuring, etc.  Structuring to the purpose, while exploiting
wiki features, could be cool.

If it ever gets a chance to happen, sigh.

Ken Manheimer
[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] ZPatterns 0.4.2a2 bug fix release

2000-09-14 Thread Phillip J. Eby

At 05:39 PM 9/14/00 +0100, Steve Alexander wrote:
Phillip J. Eby wrote:

 It's up now.  In addition to the transaction fixes and DynPersist fix, this
 release also fixes the missing import of aq_base in PlugIns.py, and the
 SkinScript compiler fouling up certain expressions due to its removal of
 spaces between tokens.  Last, but not least, you can now place Specialists
 inside other Specialists without getting an error.

According to diff, there is no difference between DynPersist.c in the 
latest release, and DynPersist.c in 0-4-2a1.

The dates on the files are both Apr 26 too.


Oops!  It's fixed now.  Everyone please note that the correct file size for
ZPatterns-0-4-2a2.tgz is 47,811 bytes, not 47,756.  Sorry about the mix-up;
Ty and I missed a few files in the tagging process prior to generating a
release.  :(


___
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] Context Acquisition - Security Hole?

2000-09-14 Thread Steve Alexander

Chris Withers wrote:

 Shane Hathaway wrote:
   How should I got about petitioning
   for
   dtml-var anobject aq_context to become valid syntax?
  
  There's one little (okay, big) problem with this idea: aq_context
  strips the security context.  In fact, it could be used to confuse the
  security machinery.
  
  Let's say I'm Joe Hacker and I have set up membership at
  www.zope.org/Members/jhacker.  I create a DTML method called index_html
  with this:
  
  dtml-with Members
  dtml-with hathawsh aq_context
dtml-call expr="index_html.manage_edit('1 0WN U')"
  /dtml-with
  /dtml-with
 
 Alright, I give up :-(
 This would be really useful, but if it's going to open up security holes
 everywhere, then I best leave it alone :-S

You could still have an aq_context attribute that would stay secure. It 
would just be very inefficient. The security checks still follow 
standard acquisition, but the object that is returned from an 
acquisition search is chosen context first.

Without further optimisation, this means a containment security check 
for each element of the context. Which kind of suggests worse than 
linear performance as the context path grows.

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




[Zope-dev] ZPatterns. obj has no getProperty.

2000-09-14 Thread James Johnson

Where do I place the ZClass.  I've put a dtml method named index_html 
in it.  I have a specialist and the ZClass in a product folder. is 
this the correct way.  Here is the code
dtml-var standard_html_header
h2dtml-var title_or_id dtml-var document_title/h2
dtml-let myPPS="propertysheets.get('ShopperData')"
p
email: dtml-var "myPPS.getProperty('email')"
address: dtml-var "myPPS.getProperty('address')"
/p
/dtml-let
dtml-var standard_html_footer





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

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

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




[Zope-dev] Zope Error message

2000-09-14 Thread Andy McKay

So now I need to change it so most normal errors (such as 404) are handled
by standard_error_message. So I went to HTTPResponse.py and found this:

def _error_html(self,title,body):
# XXX could this try to use standard_error_message somehow?

I gather someone smarter than me has tried this before. Before waste a day
going down this path, does anyone have any advice?

--
  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] ODBC Error

2000-09-14 Thread Hung Jung Lu

--- In [EMAIL PROTECTED], Julio Flores Schwarzbeck [EMAIL PROTECTED] wrote:
The problem is that no matter what I do, with any valid sql statement like 
"select * from test1" gives me the following error:

Error Type: ValueError
Error Value: unpack sequence of wrong size
(RoleMgr)

Has anyone played with DBC/DBF files and encountered a similar problem?
thx.

Hmm... were you issue the SQL from the Test tab?

Try to make an actual ZSQL method. And see if it works.

The ZODBC adapter had that problem... (Test tab did not work, but actual 
ZSQL worked.) I'd be shocked if it has not been fixed all this time. See, 
this would be what I call a carcass piece of software. No one maintains it 
anymore. It just sits dead there, despite that the problem has been metioned 
again and again. :) You'll do a great service if you could fix it and upload 
it to Zope website.

Hung Jung

_
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-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] [voipiri: Re: [Zope] DCOracle Connection with Oracle 8.0.5]

2000-09-14 Thread Riku Voipio

On Wed, Sep 13, 2000 at 10:20:15AM -0300, Celio C. Guimaraes wrote:
 1) In order to connect successfully  I had to drop the @sid parameter:
 dbc=DCOracle.Connect('scott/tiger@ora8')
 returns with error:  ORA-12154 : TNS: could not resolve service name

I think this is default oracle behaviour. for local databases you 
set the $ORACLE_SID connect with username/passwd. For remeote databases
you set $TWO_TASK or connect with username/passwd@SID . 

You also need a correctly setup /etc/tnsnames.ora

-- 
Riku Voipio
[EMAIL PROTECTED]
09-862 60764

___
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] FW: [Zope] FW: list of users tied to database

2000-09-14 Thread tom smith


--
From: tom smith [EMAIL PROTECTED]
Date: Thu, 14 Sep 2000 09:01:22 +0100
To: tom smith [EMAIL PROTECTED]
Subject: Re: [Zope] FW: list of users tied to database


 dtml-in "theOTHERintranet.acl_users.getUserNames()"
   dtml-let TheUserName==dtml-var sequence-item
dtml-in "get_email('UserName=dtml-var TheUserName')"
dtml-var Emailbr
/dtml-in
/dtml-let
/dtml-in

Thanks for the efforts of everyone so far, but alas, the code doesn't quite
work. Forgive me, but could I/we/you try again.

I've created a sql method called get_users() which has UserName as a
parameter, which is the same as the zope login. I'm trying to get a list of
emails (from a database) based on the contents of the acl_users folder.

I'm trying to extend the notion of a user, giving them extra attributes and
using a database to do it.

cheers all

tom


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




Re: [Zope] zope 2.2.1 and python 1.6

2000-09-14 Thread Toby Dickenson

On Wed, 13 Sep 2000 12:03:40 -0400, Brian Lloyd [EMAIL PROTECTED]
wrote:

 i couldn't find anything in the list archives or the docs about python
 1.6  from python's site, it looks like there are a lot of changes that
 could break code.  can i run zope 2.2.1 on python 1.6 or should i
 stick with 1.5.2?

The final release of 1.6 has some bugs that seriously interfere with
Zope. The current CVS of python 2.0 is much more stable than the final
release of 1.6

There are some minor compatability issues in Zope - I document
everything I know with my Unicode patches (which requires 2.0) at
http://www.zope.org/Members/htrd/wstring/Unicode0.4Readme.txt

I've seen some people report using 1.6 successfully with Zope - 
at this point I can't recommend doing that for a *production* 
site, since while it may *work* we still need to assess some 
things regarding their impact on security.

I 100% agree with Brians caution here, however

For example in 1.6 strings have methods, which may or may not 
have an impact on DTML safety. This is also the case for 
Python 2.0.

string methods are safely inaccessible as of the new security
implementation in 2.2 (hurrah for private-by-default)


Toby Dickenson
[EMAIL PROTECTED]

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




[Zope] Organizing huge content

2000-09-14 Thread brocken22

Hallo,
my question is about organizing scripting when you have to deal with huge
amounts of content.
I.e. you have a custom that wants to establish a website .This website
should have in the future about 2000 pages but you on your own are building 
only some pages and a lot of templates that his coworkers can use to build
the rest(new pages oder updating old ones).
Now the point: I plan to make a ZClass and the new sites are instances of
this class.
The look (and feel)is individualized by iterating over the properties?
Or is it better (in terms of speed)to create a couple of ZClasses and
reducing the amount of properties?
 Many thanks.

-- 
Sent through GMX FreeMail - http://www.gmx.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 )




Re: [Zope] how to reload external method?

2000-09-14 Thread Aleksander Salwa


On Thu, 14 Sep 2000, Riku Voipio wrote:

 How do you reolad an external method that has changed? 

Just click on 'Edit' button.

[EMAIL PROTECTED]

/--\
| `long long long' is too long for GCC |
\--/


___
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] LocalFS or LoadSite

2000-09-14 Thread Chris Withers

Nick Trout wrote:
 My question: what is the best way to do this?
 
 Is there a product to this.?

You could look in the mail list archvies before asking this question
since it's such a FAQ :-(

LocalFS

load_site.py

cheers,

Chris

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




Re: [Zope] External Methods, reloading and Versions

2000-09-14 Thread Chris Withers

Riku Voipio wrote:
 How do you reolad an external method that has changed?

You shouldn't need to do anything, or so I was told...
In practice, you can either:
- wait a few minutes until the external method object gets flushed out
of the cache
- Hit the 'Edit' button for the external method.

 (versions are rather cool, now I can develop on the production
 server safely).

Versions and external methods interact very badly :-(
Don't try editing and external method in a version.

cheers,

Chris

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




[Zope] Python 1.6 makes Zope not work?!

2000-09-14 Thread zope

I was running Zope 2.2.0, and python 1.6a2 on linux. When I upgraded python to
1.6 release, I found that I can't run Zope again(Can go to the first, very
simple page, and no further). The error msg are:
WARNING: Python C API version mismatch for module ExtensionClass:
  This Python has API version 1009, module ExtensionClass has version 1007.
WARNING: Python C API version mismatch for module zlib:
  This Python has API version 1009, module zlib has version 1007.
..
I tried to upgrade Zope to 2.2.1, but the same happened.
What can I do?
Also, I can't find any newsgroup to search for answer, nor can I find any info
from zope.org. If there is another more appropriate place to ask such question,
pls tell me. thx.

Regards
Steven
[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] Passing parameters to external methods is broken...

2000-09-14 Thread Chris Withers

Andreas Pauley wrote:
 I have an external method that looks (somewhat) like this:
 
 def extAccess(self, accttype_cde):
 return accttype_cde

 dtml-if "extAccess(accttype_cde='COM')"
   bThe external method returned true/b
 /dtml-if
 
 I get the following error for the above statement:
 Error Type: TypeError
 Error Value: not enough arguments; expected 2, got 0

Yup, been there, done that, the thread's in the zope-dev archive if
you're interested...

The way external methods handle parameters is 'interesting' to say the
least.
Your safest bet is just to use the REQUEST variable to pass stuff, as
someone else suggested.

cheers,

Chris

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




Re: [Zope] list of users tied to database

2000-09-14 Thread tom smith

on 14/9/00 9:28 am, [EMAIL PROTECTED] at [EMAIL PROTECTED] wrote:

 Did you try this proposal posted yesterday ?

Yep, and I can't quite get it to work. I'm still trying though

tom


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




[Zope] Any Swedish/Nordic Zope Users?

2000-09-14 Thread Dario Lopez-Kästen

Hello!

I am curious to see if there are any Swedish and/or Nordic users of Zope on
this list.

Cheers,

/dario

- 
Dario Lopez-Kästen Systems Developer  Chalmers Univ. of Technology
[EMAIL PROTECTED]  ICQ will yield no hitsIT Systems  Services


___
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] External Methods, reloading and Versions

2000-09-14 Thread Riku Voipio

On Thu, Sep 14, 2000 at 11:52:59AM +0100, Chris Withers wrote:
 Riku Voipio wrote:
  How do you reolad an external method that has changed?

  (versions are rather cool, now I can develop on the production
  server safely).

 Versions and external methods interact very badly :-(
 Don't try editing and external method in a version.

Blah. External mehtods seem to be astonishingly external.

-- 
Riku Voipio
[EMAIL PROTECTED]
09-862 60764


___
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] Static pages

2000-09-14 Thread J. Atwood

The best way is the product called Loadsite. You can point it to a 
directory and it will suck up all your images and html. Zope will 
have no problem serving it up.

J

At 9:56 AM +0100 9/14/2000, Nick Trout wrote:
Hi, I would like to incorporate a load of static HTML pages into my Zope
website.

My question: what is the best way to do this?

Is there a product to this.?

I don't really want to have to use Apache.

Regards,
Nick.


___
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] Permission problem with my own zClass.

2000-09-14 Thread Max Møller Rasmussen

I have made a zClass called "newsProduct" that is articles with predefined
properties.

It works nicely when I am logged on as an Administrator. I can add articles.
No problem.

I also have a site with the following structure

root
news

I want some users to be able to add "news" articles in the "news" folder.
This I can do by making a user folder in the "news" folder and setting the
users as administrators, but I do NOT want them to be able to add anything
but articles. So that is a bad idea.

Thus I want to make a new role called "author" that can only add articles.
in the news-folder.

I have made a user in the "news" userfolder, and given this user the
"author" role. In the news folder I have also checked the box "add newss"
under "author" (a single article is also called "news" in the management
interface).

My test_author can logon nicely, seeing the "news" folder as the root. And
under the "To add an item select an item type" select box, 2 products turn
up "Z Gadfly Database Connection"(No idea why!)  "News". But when I select
"news" a login prompt pops up. I cannot login as test_author, so I cannot
create any news in the "news folder."

Does anybody has any ideas about what more I need to set in order to make
the "author" role able to create articles.

Kind Regars Max M, Denmark


This is the content of my newsProduct
Help (NewsProduct)  
newsClass  
newsClass_add (newsClass constructor)  
newsClass_addForm (newsClass constructor input form)  
newsClass_add_permission (newsClass constructor permission)  
newsClass_factory (newsClass factory)  

___
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] Announce: Squishdot 0.7.2 now available!

2000-09-14 Thread Chris Withers

Squishdot 0.7.2 is now available from 
http://www.zope.org/Members/chrisw/Squishdot/
http://www.squishdot.org/Download/Squishdot

The following changes were made:

   - Squishdot now works with INSTANCE_HOME Zope installations

If you run into problems, remember Squishdot has a mailing list at 
eGroups and a bug collector on SourceForge.

The URL for the bug collector is:
https://sourceforge.net/bugs/?group_id=1083

cheers,

Chris

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




[Zope] How do I add a property to created objects?

2000-09-14 Thread Kristofer Kiik

Hi,

hope someone can point me to the right direction with this:

I want to add an object using DTML. To do this I create a method 
'addanewFolder' (not in a product, but somewhere in the document 
tree):
=== cut here ===
dtml-call "REQUEST.set('ts', ZopeTime())"
dtml-call "REQUEST.set('id', _.str(_.int(ts)))"
dtml-with "manage_addFolder(REQUEST['id'])"
dtml-call "manage_addProperty('testproperty', 'a value here', 
'string')"
/dtml-with
=== cut here ===

This gets the folder added, but does not add the property to the 
folder created, but to the PARENT directory. The 'with' clause 
should direct manage_addProperty method to deal with the new 
object?

TIA,
kristofer

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

2000-09-14 Thread Chris Withers

Hi,

Given the new strictness characters allowed in id's, it'd be great if
there was something called id_quote which behaved in the same way as
html_quote or url-quote except it made a string suitable for use as an
id. It's be great if ti was available as a methdo in python as well :-)

What do people think?

cheers,

Chris

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




[Zope] subscribe

2000-09-14 Thread Dicken, Peer



subscribe



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



Re: [Zope] id_quote

2000-09-14 Thread Rik Hoekstra


 Given the new strictness characters allowed in id's, it'd be great if
 there was something called id_quote which behaved in the same way as
 html_quote or url-quote except it made a string suitable for use as an
 id. It's be great if ti was available as a methdo in python as well :-)

 What do people think?


This might wind up rather confusing: you can't find back your objects. If
they are created automatically you may create them such that they do not
create invalid ids. In such a case the id-quote method might be a good idea.
If you create them by hand (have them create by hand) then you'd better
throw in an exception (or error page) instead of mutilating the id. If only
for educational purposes ;-)

Rik


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




[Zope] How to give content maangers ability to update a Zope site ?

2000-09-14 Thread Richard Moon

How would you give a content manager the ability to update a live Zope site ?

What I have is an in-house development site with various folders and each 
folder has a manager.

I thought I would be able to let them use FTP on port 8021 to unload 
objects from the development site and update a live site on the 'net.

However it seems that FTP can only unload DTML documents and methods and 
can't unload SQL Methods, ACL User Folders or Database Connection Methods.

Plan B was to use the export facility but they would then need to have 
telnet access to the Zope import directory in order to put the .zexp file 
there, which seems a huge security gap to me.

Am I missing something obvious, how would you do it ?

Thanks



Richard Moon
[EMAIL PROTECTED]



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




[Zope] Pluggable brains

2000-09-14 Thread gotcha

Is there a place where pluggable brains mechanism is described ?

I am beginning a Zope site project. With the few I have read 
about pluggable brains, I feel that more info could help me in 
deciding which part of data has to stay in ZODB and which should 
go inside RDBM.

Thanks.


Godefroid Chapelle

-
BubbleNet sprl
rue Victor Horta 30
1348 Louvain-la-Neuve 
Belgium

-
This mail sent through SwinG Webmail: http://mail.swing.be 

___
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] cannot access articles in Squisdot

2000-09-14 Thread Tomaso Scarsi

Hi, I'm running squishdot 0.4.0 on zope 2.1.6 
on a system running linux rh 5.2
and I'm experiencing some problem:

when I try to open the main page index_html
I get this error:


Error Type: AttributeError
Error Value: 'string' object has no attribute '__basicnew__'


and on the console running zope
2000-09-14T14:20:37 ERROR(200) ZODB Couldn't load state for 
'\000\000\000\000\000\001[i'

In the manage I've tried to 'Recatalog all posting' 
getting the same error above;

I dont know how to solve this problem...

before reinstalling everything, there's a way to
extract the postings?

thanks

tomaso




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




Re: [Zope] Python 1.6 makes Zope not work?!

2000-09-14 Thread John Hayward-Warburton (Programming account)

[EMAIL PROTECTED] wrote:

 I was running Zope 2.2.0, and python 1.6a2 on linux. When I upgraded python to
 1.6 release, I found that I can't run Zope again

Though I am a newbie Zope developer, it was very kindly explained to me that a bug
in Python 1.6 was being ticked by Zope 2.2.1 (you'll find it happening if you
recompile your Zope against Python 1.6).

Setting up Python 2.0 from CVS and Zope from CVS is much nicer, made difficult
only by a string class or two causing trouble. For information on how to solve
that, go here:

http://www.zope.org/Members/htrd/wstring/Unicode0.4Readme.txt

It's written by the fellow who helped me a couple of days ago. Don't forget to
follow all of the instructions.

JHW



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




Re: [Zope] How to give content maangers ability to update a Zope site ?

2000-09-14 Thread ethan mindlace fremen

[EMAIL PROTECTED] wrote:

 Plan B was to use the export facility but they would then need to have
 telnet access to the Zope import directory in order to put the .zexp file
 there, which seems a huge security gap to me.

I set up ncftp to allow ftp uploads (but not erasures or the creation of
new directories) to the import directory as a special user (i.e. one ftp
user for all managers).

Then people can import those files into zope wherever they have
permisssion.

A cron job wipes out the imported files every night.

Hope that helps,

~mindlace

___
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] FTP Server bug or feature

2000-09-14 Thread Júlio Dinis Silva

Hi all,

just to check:

with zope 220 when I do any changes to a normal user in a normal
acl_users folder this user can no more access the zope module via ftp, i.e, 
login ok but a simple dir command return a unauthorized error .
Isn't suppose to the FTP server view this changes cause its accessing the 
acl_users in memory? I only solve this restarting the ftp server.
Is suppose to be like this, restart the ftp server to reflect user 
permissions changes?

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

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


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




Re: [Zope] And now for a good laugh (Re: [Zope] Zope and the GPL poison pill)

2000-09-14 Thread Lalo Martins

On Thu, Sep 14, 2000 at 10:23:21AM +0200, Nils Kassube wrote:
 [EMAIL PROTECTED] (Lalo Martins) wrote:
 
  Renderable wasn't even GPL'ed to begin with. And this isn't a
  mistake; now that I think if it, I clearly remember having
  chosen the ZPL so that DC folks could easily take the changes
  and merge them into Zope if they wished.
 
 My copy of Renderable ZClass 0.2 says:
 
 # Copyright (C) 1999 by Lalo Martins
 # Distributed under the terms of the GNU GPL, version 2 or later

Ah, thanks. Now _that_ is a mistake. Habit is a powerful thing
:-)

I'll make a new release (it's been stable for almost an year,
so I'll add some documentation and call it a beta), but in the
meanwhile consider it ZPL'ed; the license in the site is the
correct one.

[]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 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] Eventfolder 1.0.1 does not work

2000-09-14 Thread Joachim Schmitz

Hi,

I trying to use Eventfolder 1.0.1, I imported the EventFolder.zexp,
restartet Zope 2.2.1 and could add an Eventfolder, when I try to open the
created eventfolder I get the message:

The specified module, EventFolder.utils, couldn't be found. 

what's wrong here ?


Mit freundlichen Grüßen

Joachim Schmitz  

  
AixtraWare, Ing. Büro für Internetanwendungen
Hüsgenstr. 33a, D-52457 Aldenhoven  
Telefon: +49-2464-8851, FAX: +49-2464-905163


___
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] Static pages

2000-09-14 Thread Jonothan Farr

If they are:

- very large (MB+)
- generated by some external process
-or-
- uploaded by users

...then Local File System is one way to go.

Otherwise, loadsite.py will just slurp them all into the ZODB and you can serve
them from there.

--jfarr


- Original Message -
From: Nick Trout [EMAIL PROTECTED]
To: Zope Mail list [EMAIL PROTECTED]
Sent: Thursday, September 14, 2000 1:56 AM
Subject: [Zope] Static pages


 Hi, I would like to incorporate a load of static HTML pages into my Zope
 website.

 My question: what is the best way to do this?

 Is there a product to this.?

 I don't really want to have to use Apache.

 Regards,
 Nick.



___
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] Permissions logic and redirecting failed logins cleanly

2000-09-14 Thread Jason Cunliffe

Hello

We have folder on our site with a list of links to restricted pages and
downloadable binary objects.

1. 'Anonymous' can view the index_html of the top level folder for this part
of the site.

I did this by selecting 'Security' tab of my Zope folder, and then
deselected the 'Aquire permissions' boxes for
'View' and 'Access Content Information'
I then added 'View'  permsission manually for role 'Anonymous'

I did the same for 'index_html' but also manually added 'Access Contents
Information' permission for role 'Anonymous'

Everything works fine. Anyone can read about it an see the links to objects
below this point, but clicking on them or typing in direct URL will open a
{user, password}login dialogue box. Good.

Now if people do not enter a valid login, after a few tries it bounces as
you would expect to a Zope error screen. This is nice when you expect it,
but inexperienced users are confused or think the site is 'broken' when in
fact it is working.

What we need is to redirect 'Anonymous' users [or indeed anyone] to another
page if their login fails. For example:
...
"The item your tried to access is restricted and requires member login
blahblahblah.
Contact mailto:[EMAIL PROTECTED] with your request

click [HERE] to return


How to detect and redirect to a page like this?

Thanks for any suggestions
- Jason

Jason CUNLIFFE = NOMADICS.(Interactive Art and Technology).Design Director



___
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] Organizing huge content

2000-09-14 Thread Maik Roeder

Hi !

[EMAIL PROTECTED] wrote:
 
 Hallo,
 my question is about organizing scripting when you have to deal with huge
 amounts of content.
 I.e. you have a custom that wants to establish a website .This website
 should have in the future about 2000 pages but you on your own are building
 only some pages and a lot of templates that his coworkers can use to build
 the rest(new pages oder updating old ones).
 Now the point: I plan to make a ZClass and the new sites are instances of
 this class.
 The look (and feel)is individualized by iterating over the properties?
 Or is it better (in terms of speed)to create a couple of ZClasses and
 reducing the amount of properties?

I have reduced the amount of properties per ZClass by putting some often
used properties in a base class and reusing them in the derived classes.
For example: name and nickname. The same goes for the DTML methods that
define the look and feel. The only thing that is in the subclasses is
the way of listing subobjects and adding a link of stuff that can be added.
The rest is done in a general DocumentFolderClass.

Have a look at the ZDP-Tools. http://www.zope.org/Members/roeder

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] Adding a new property over http

2000-09-14 Thread Jason Cunliffe

Hello

I asked this in longer form before, but it fell by the way I think..

How to add a property to a containing folder.
Looking for DTML or External Method way to do this.

We need a Method to to add a new folder property assigning an 'Id' =
somename adn 'type' = 'tokens'.
We need to be able to do this by passing the variable somename over http.

thanks
- Jason

Jason CUNLIFFE = NOMADICS.(Interactive Art and Technology).Design Director



___
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] Pluggable brains

2000-09-14 Thread Dieter Maurer

[EMAIL PROTECTED] writes:
  Is there a place where pluggable brains mechanism is described ?
I forgot where I saw a description.

But it is incredibly simple:

  You can wrap an arbitrary class instance around your database rows.
  This transforms your rows into full featured objects with
  the columns (among others) as attributes and the methods
  defined by the class as potential behaviour.


What elso do you need to know?


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] Pluggable brains

2000-09-14 Thread Andreas

[EMAIL PROTECTED] wrote:
 Is there a place where pluggable brains mechanism is described ?
 
 I am beginning a Zope site project. With the few I have read
 about pluggable brains, I feel that more info could help me in
 deciding which part of data has to stay in ZODB and which should
 go inside RDBM.

Have a look at

http://www.zope.org/Members/michel/ZB/RelationalDatabases.html

There is a VERY short description of how it works. 

-- 
_
Andreas Heckel[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 )