Re: [Zope-dev] Please remove my post to collector about TimeStamp.c typo

2000-06-28 Thread Martijn Pieters

On Tue, Jun 27, 2000 at 06:22:52PM -0500, Brad Clements wrote:
 I just posted a bug about TimeStamp.c having a typo..
 
 My fault, didn't have USE_EXTENSION_CLASS defined.

As you'll see in your inbox, I retracted bot copies.

 (also, couldn't find a better email address to send this to)

[EMAIL PROTECTED] is a good place.

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

___
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] Confera fix

2000-06-28 Thread Gabor Melis

Hi

I use confera-1.3.2-mtg. This version does not use ts_regex. I needed a small
patch to make it handle newlines correctly.

I cannot find a link confera-1.3.2-mtg so I attach the mtg patch as well.

Gabor Melis

On 27-Jun-2000 MIME :[EMAIL PROTECTED] wrote:
 Attached is a slightly modified Confera.py that does not require the
 ts_regex
 python package (something I do not have on my system and cant seem to
 find - and yet something Confera will choke on during message posting if
 it doesn't exist)
 
 I've put the moded Confera.py up in my member folder at:
 http://www.zope.org/Members/Coventry/Confera_Fix
 
 Anyone who has problems utilizing Confera due to no ts_regex may find
 this useful.
 
 Does anyone know where to find ts_regex by itself?
 
 If its not readily available (I cannot find it) I'd suggest making a
 minor
 point release of Confera that does not need it.
 
  Confera.py 
 


 mtg-patch
 confera-nl-patch


Re: [Zope-dev] Confera fix

2000-06-28 Thread Chris Withers

Hmmm, you could just use Squishdot 0.4.1 with the 'plain' style, it
looks and behaves pretty much identically to Confera except it works
(although I'm sure it has bugs ;-) and is maintained (by me ;-) which,
sadly, I don't think Confera is.

HTH,

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] Prototyped folders?

2000-06-28 Thread Steve Alexander

Hi Hamish,

I've answered your message in Zope-Dev, as this seems to be more of a
developers' question.

Hamish wrote:
 If a folder doesn't itself contain a required object or method, I'd
 like to have another folder looked in instead. The fall-back folder
 won't necessarily (and often can't) be higher in the hierarchy, so
 acquisition doesn't seem to be a solution. 

This looks like a job for a Python class that uses the new Traversal
interface.

  http://www.zope.org/Members/michel/Projects/Interfaces/Traversal

Your requirements sound very much like those for Shane Hathaway's
Transparent Folders product, except that instead of briefly diverting
acquisition into the transparent folder, you want to briefly divert
acquisition into some other arbitrary folder.

Last I heard, Shane was going to revitalize Transparent Folders when the
various interfaces it uses are finalized for Zope 2.2.

I suggest that after Shane has re-released his product, you make a
product based on Transparent Folders that works in this slightly
different way. Or, if it is appropriate, consider your changes an
enhancement to Transparent Folders, and offer it as a patch.

If you don't have sufficient python-hacking-zope-hacking-Zen to do it
yourself, I think I might have a go (and hopefully learn some Zope
internals Zen in the process).

Transparent Folders were here:

  http://www.zope.org/Members/hathawsh/

 - but the link to them is broken -- I guess because the product was
withdrawn as there was a problem with it under Zope 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] Racks and Specialists Simplified

2000-06-28 Thread Steve Alexander

Shane Hathaway wrote:
 
 "Phillip J. Eby" wrote:
  At 02:33 PM 6/11/00 -0600, Shane Hathaway wrote:
  I believe I have come to understand the basics of ZPatterns and would
  like to be sure I understand correctly, as well as help others
  understand also.
 
  Bravo!  An exquisite introduction to the purpose of ZPatterns.  May I post
  an edited version of your message to the ZPatterns Wiki, and make it or
  subsequently edited versions a part of the ZPatterns documentation?  (With
  attribution, of course.)
 
 By all means!  Thank you.  The truth is that several of us at DC have
 had trouble making sense of it all, so I wrote it not only for the
 community, but DC and myself as well. :-)

I just looked over the ZPatterns Wiki for Shane's explanation, but I
can't find it.

If it isn't there (hiding somewhere), perhaps I can add it from Shane's
original email?

--
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] Comments on ZPatterns

2000-06-28 Thread Chris Withers

  "Phillip J. Eby" wrote:
   At 02:33 PM 6/11/00 -0600, Shane Hathaway wrote:
   I believe I have come to understand the basics of ZPatterns and would
   like to be sure I understand correctly, as well as help others
   understand also.

Feel free to flame me if I've got this wrong, but:

I've read all the ZPatterns Wiki and I'm just taking tentative steps to
playing with LoginManager. I think the concepts are very cool but I see
two problems:

1. Too much jargon... by far... Lots of complicated words that are
meanlingless to the layman and don't help to convey the concepts. This
is compounded by the standard Zope problem of minimal documentation
aimed at the advanced developer. Can someone who understadns this all
take the time to write a ZPatterns guide to compliment the Wiki and
maybe simplify or explain in great detail all the terms (especially the
new ones that have popped up in the last few weeks)?

2. Feature runaway. It seems every day something new (and more
confusing) has been added to ZPatterns. I think ZPatterns will only work
if it is kept as simple and functional as possible. My view (bearing in
mind my limited understanding ;-) would be to concentrate on Containers,
Container Groups and Plugins on the one front and Racks, Specialists and
the various providers and agents on the other.

Comments always welcome,

cheers,

Chris

PS: The main reason I'm writing this is because I think ZPatterns are
very very cool but may well get ignored because no-one understands them
and they're too buggy and complicated to get working :/

___
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] ZTopic displays wrong tabs

2000-06-28 Thread Steve Alexander

Hi folks,

I'm using ZTopic.

One thing I've noticed about the management interface is that, although
an appropriate tab is highlighted when you click that tab, if you go to
a subsequent screen, often "contents" will erroneously become the
highlighted tab.

This is causing problems as I explain to non-technical folk how to use
ZTopics. I say "select the contents tab", and they say "but the contents
tab **is** selected!".

I have a fix for this, but the real problem is in the logic of
lib/python/App/manage_tabs.dtml:

dtml-call "REQUEST.set('a_', 0)"
dtml-in manage_options mapping
dtml-if expr="URL[-(_.len(action)):]==action or
URL[-17:]=='/manage_workspace' and _['sequence-start']"
dtml-call "REQUEST.set('a_', _['sequence-index'])"
/dtml-if
/dtml-in

Here, the variable 'a_' represents the "active" tab. If the last part of
the URL matches one of the manage_options of the current object, then
that tab will be the highlighted one. Otherwise, the first tab will be
highlighted.

It should ideally be possible to tell manage_tabs what tab should be
highlighted, imperatively, when required.

However, in the absence of such a mechanism, I have changed the DTML
files in ZTopic like this:

The form searchEdit.dtml is really part of the "Search Criteria" logic,
so I want that tab highlighted. That tab's action attribute is called
"editForm". Therefore, in the file searchEdit.dtml, I replace this:

BODY BGCOLOR="#FF" LINK="#99" VLINK="#55"
!--#var manage_tabs--

pEdit catalog search criterion number dtml-var "index+1"
on Catalog strongdtml-var catalog_id/strong./p


With this:

BODY BGCOLOR="#FF" LINK="#99" VLINK="#55"
dtml-with "_.namespace(URL='editForm')"
  dtml-var manage_tabs
/dtml-with

pEdit catalog search criterion number dtml-var "index+1"
on Catalog strongdtml-var catalog_id/strong./p

(I modernised the !--#var ...-- to dtml-var ... along the way.)

To get the full effect, you'd need to do a similar trick with the other
dtml files in ZTopic.

Any takers for a full patch?  Or, is there a better way of doing this
that I don't know about?

--
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] ZTopic displays wrong tabs

2000-06-28 Thread Steve Alexander

Steve Alexander wrote:
 
 BODY BGCOLOR="#FF" LINK="#99" VLINK="#55"
 dtml-with "_.namespace(URL='editForm')"
   dtml-var manage_tabs
 /dtml-with
 
 pEdit catalog search criterion number dtml-var "index+1"
 on Catalog strongdtml-var catalog_id/strong./p

Or, I could have used the less-clear one-liner:

  dtml-var "manage_tabs(_.None, _, URL='editForm')"

Any preference?

--
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] Calendar tag 0.9.6 breaks with 2.2.0b3??

2000-06-28 Thread Dieter Maurer

Dr. Ross Lazarus writes:
  Trying the new 2.2.0b3 zope. 
  One zclass using ty's calendar tag now breaks with an error message I
  just cannot figure out - 
  
  Error Type: TypeError
  Error Value: unexpected keyword argument: linkDate

File /usr/local/zope/zope22b3/lib/python/DocumentTemplate/DT_Util.py,
  line 262, in namespace
  TypeError: (see above)
  
  I added  __allow_access_to_unprotected_subobjects__=1 to the CalendarTag
  class just in case.
  
  The offending line in CalendarTag.py is
  
  ns = namespace(self,
  date = date,
  mode = self.mode,
  firstday = firstday,
  setCalendar = self.setCalendar_,
  getCalendar = self.getCalendar_,
  linkDate = self.linkDate_
  )[0]
  
  
  namespace in DT_Util seems harmless enough - 
  
  def namespace(self, **kw):
   """Create a tuple consisting of a single instance whos attributes are
  provided as keyword arguments."""
   return apply(self, (), kw)
The "self", more precisely, its "__call__" gets the keyword
"linkDate" which it does not (no longer) likes to have.



Dieter

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




[Zope-dev] EMarket and 2.2.0b3

2000-06-28 Thread R. David Murray

OK, so I didn't get very far in tracking down what inside EMarket
is triggering the wierd auth behavior, because I had to run a bunch
of tests against b3, where the behavior has changed from that of b2.

For this testing my method of determining if "things are weird" is
to see if I get prompted for authentication if I access the
"/manage_main" URL.  Weird means I don't get prompted.

Under b2, installing EMarket with a dummy empty __init__.py file
caused the weird behavour.  Under b3, that test does not.  However,
the EMarket __init__.py file with any of the imports for the submodules
uncommented *does* cause the weird behavior.  Farther than that I haven't
gotten yet.

My tests give me some other interesting things to report, however.
After installing b3, I confirm that the site is working and I can
view the root index_html file normally.  If I then copy my test
Data.fs from the b2 installation, the b3 instance fails to show
the root index_html, giving an error message of a key error on URL
on the last line of traverse in BaseRequest.py.  Now here's the
weird thing: if I then *delete* the Data.fs file, and restart Zope,
*I continue to get that same error*.  I didn't try to track that
any further, but it unnerves me.

Second, the patch, supplied by someone else, that I reposted here
that fixed the "a_" KeyError after EMarket was installed in b2, if
applied to b3 *causes* that "a_" error to appear.  Since this
patch was reportedly added to the CVS, I think there is something
here that needs to get cleared up before 2.2 final.

I'll work on this some more tomorrow, but so far I'm nowhere near
finding what code might be involved in this set of errors.

Has anyone seen the aforementioned "weird problem" with any products
other than EMarket and eTailor?

--RDM


___
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] Calendar tag 0.9.6 breaks with 2.2.0b3??

2000-06-28 Thread Dr. Ross Lazarus

Thanks for the help.

Summary:
CalendarTag works fine in 2.1.6 but is broken in 2.20b3.
__call__ is mapped to render(self,md) - this is the same for all dtml
tags AFAIK.

The point that I find hard to understand is that namespace in DT_Util
has changed from 2.1.6 as follows

===2.1.6==
class namespace_: 
pass

def namespace(self, **kw):
"""Create a tuple consisting of a single instance whos attributes
are
provided as keyword arguments."""
r=namespace_()
d=r.__dict__
for k, v in kw.items(): d[k]=v
return r,

2.2.0b3
class namespace_:
__allow_access_to_unprotected_subobjects__=1

def namespace(self, **kw):
"""Create a tuple consisting of a single instance whos attributes
are
provided as keyword arguments."""
return apply(self, (), kw)

Now, I can easily put the old definition back and it might work - but
I'm not in a position to understand why the method has changed from what
looks like a simple dictionary construction to the apply function -
which doesn't seem to have anything to do with the namespace_ class !!

Brian??

Dieter Maurer wrote:
 The "self", more precisely, its "__call__" gets the keyword
 "linkDate" which it does not (no longer) likes to have.


 
 Dr. Ross Lazarus writes:
   Trying the new 2.2.0b3 zope.
   One zclass using ty's calendar tag now breaks with an error message I
   just cannot figure out -
  
   Error Type: TypeError
   Error Value: unexpected keyword argument: linkDate
  
 File /usr/local/zope/zope22b3/lib/python/DocumentTemplate/DT_Util.py,
   line 262, in namespace
   TypeError: (see above)
  
   I added  __allow_access_to_unprotected_subobjects__=1 to the CalendarTag
   class just in case.
  
   The offending line in CalendarTag.py is
  
   ns = namespace(self,
   date = date,
   mode = self.mode,
   firstday = firstday,
   setCalendar = self.setCalendar_,
   getCalendar = self.getCalendar_,
   linkDate = self.linkDate_
   )[0]
  
  
   namespace in DT_Util seems harmless enough -
  
   def namespace(self, **kw):
"""Create a tuple consisting of a single instance whos attributes are
   provided as keyword arguments."""
return apply(self, (), kw)
 The "self", more precisely, its "__call__" gets the keyword
 "linkDate" which it does not (no longer) likes to have.
 
 Dieter

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




Re: [Zope-dev] Calendar tag 0.9.6 breaks with 2.2.0b3??

2000-06-28 Thread Shane Hathaway

"Dr. Ross Lazarus" wrote:
 The point that I find hard to understand is that namespace in DT_Util
 has changed from 2.1.6 as follows
 
 ===2.1.6==
 class namespace_:
 pass
 
 def namespace(self, **kw):
 """Create a tuple consisting of a single instance whos attributes
 are
 provided as keyword arguments."""
 r=namespace_()
 d=r.__dict__
 for k, v in kw.items(): d[k]=v
 return r,
 
 2.2.0b3
 class namespace_:
 __allow_access_to_unprotected_subobjects__=1
 
 def namespace(self, **kw):
 """Create a tuple consisting of a single instance whos attributes
 are
 provided as keyword arguments."""
 return apply(self, (), kw)
 
 Now, I can easily put the old definition back and it might work - but
 I'm not in a position to understand why the method has changed from what
 looks like a simple dictionary construction to the apply function -
 which doesn't seem to have anything to do with the namespace_ class !!

In Zope 2.1.6 and before we had two ways of creating a new namespace:
_() and _.namespace().  The former was implemented in C and the latter
was in Python, but they did virtually the same thing (and there
certainly wasn't any reason to believe they should do anything
different.)  So we merged the two implementations into one by causing
the namespace() method to call the _() method, implemented in
cDocumentTemplate.py.

AFAIK the namespace_ class definition was left in by accident.  It now
does absolutely nothing.

There have been more problems with the merge than expected.  But we are
engineers--the last thing we want is code bloat by reverting to the old
method.  Instead we'd like to get bugs truly corrected.

So I'll plan to look into this problem.

Shane

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




Re: [Zope] ZWiki/Structured Text formatting surprise

2000-06-28 Thread Martijn Pieters

On Tue, Jun 27, 2000 at 10:42:01PM +0200, Rik Hoekstra wrote:
 Just noticed that (_.None,_, gets rendered as (.None,, in a structrued
 text wiki. Not useful :/
 
 Hm, in a structuredtextdtml Wiki (such as the Zope edu Wiki) this works. See
 the SandBox there http://www.zope.org/Wikis/zope-edu/SandBox. So I can't
 reproduce it now.

You are only testing _.None, not _.None,_, which is the problem, see below. I
changed your test to include the other underscore to illustrate the point.

 I've got around this by doing ('_'.None,_, but that's not really the
 right idea.
 
 Does anyone know of the proper way of escaping this?

The ZWiki tries to render anything between '_' (underscore) charaters as
underlined. So _.None,_ indeed gets rendered as u.None,/u. Nowhere is the
ZWiki trying to interpret this as a WikiName. 

Indeed, the only thing I can thus think of (apart from quoting the
underscores), is quoting the whole sentence, '_.None,_'. This may be desirable
in this case, as it supposedly is a code example anyway. Doubly underscoring
the line (and live with the underlining), doesn't work, BTW.

I updated the above SandBox to illustrate.

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

___
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] Generating products that perform a smart clone of a master site?

2000-06-28 Thread Martijn Pieters

On Tue, Jun 27, 2000 at 11:22:20PM +0100, Hamish Lawson wrote:
 Thanks for your reply. I hadn't thought of using ZWikiWeb, but given
 that I do need to make instances of a master site, do you think that
 this could be done using ZWikiWeb? Instead of inheritance for the
 folders, the mechanism I'm investigating now is prototypes (a la
 JavaScript and Self objects).

Chris ment for ZwikiWeb to be an example of how a copy could be made. The
ZwikiWeb implements such a construct.

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

___
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] mozilla and zope play nicely again!

2000-06-28 Thread Anthony Baxter

The basic auth problem of mozilla-on-linux that's been around since
around the 1st or 2nd of June are now fixed, as of 2000-06-27-20-M17
(note that I don't believe that straight M17 has the fixes applied.)

Yay!

Anthony

___
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: [Zope-Moz] mozilla and zope play nicely again!

2000-06-28 Thread Martijn Pieters

On Wed, Jun 28, 2000 at 05:07:26PM +1000, Anthony Baxter wrote:
 The basic auth problem of mozilla-on-linux that's been around since
 around the 1st or 2nd of June are now fixed, as of 2000-06-27-20-M17
 (note that I don't believe that straight M17 has the fixes applied.)

Don't you mean M16? When M17 comes out it will have the fix. Nightlies are
marked with the milestone they are working up _to_, not what they are working
_from_.

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

___
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: [Zope-Moz] mozilla and zope play nicely again!

2000-06-28 Thread Anthony Baxter

 Martijn Pieters wrote
 Don't you mean M16? When M17 comes out it will have the fix. Nightlies are
 marked with the milestone they are working up _to_, not what they are working
 _from_.

*grumble* I'm sure I saw a post to slashdot saying M17 was out...
yep, I did, 
http://slashdot.org/article.pl?sid=00/06/26/1655250mode=nested

"net of a million lies", indeed.

___
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: [Zope-Moz] mozilla and zope play nicely again!

2000-06-28 Thread Martijn Pieters

On Wed, Jun 28, 2000 at 06:31:36PM +1000, Anthony Baxter wrote:
  Martijn Pieters wrote
  Don't you mean M16? When M17 comes out it will have the fix. Nightlies are
  marked with the milestone they are working up _to_, not what they are working
  _from_.
 
 *grumble* I'm sure I saw a post to slashdot saying M17 was out...
 yep, I did, 
 http://slashdot.org/article.pl?sid=00/06/26/1655250mode=nested
 
 "net of a million lies", indeed.

Slashdot has the journalistic integrity of a cod fish. One of the replies on
the page scolds the writer for _another_ mistake about this. Personally, I
have given up on slashdot.

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

___
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] tree problem, addendum

2000-06-28 Thread Chris Withers

"Walter A. Aprile" wrote:
 It appears I have messed up the Id propery, but I do not know how.

If you could send the code for the Article class to the list, maybe
someone can spot what's going on...

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] Authentication question.

2000-06-28 Thread Richard Moon

I don't know if my experience is any use. I'm developing a site with a 
postgresql backend and I want users to be able to enter data over the web, 
and I want to know who has entered what data. So only registered users can 
access the pages which allow data entry.

I set up a GUF (Generic User Folder) and used the How-to on using GUF with 
SQL. This checks the login and password against Postgress and of course I 
can then look-up the user-id whenever I want to 'stamp' data with that user-id.

I had some problems when testing the system using the 'super-user' since it 
wouldn't do sql-lookups for that user (this was Zope 2.1.4).

Unfortunately since installing the latest release of GUF I can't get it to 
work at all, except as super-user (not even in standard non-sql mode).

I'm waiting to see what happens in this area as I would hope that login 
manager or something coming out of the PTK would be the way to go.

Unfortunately Zope, and associated products seems to be in state of rapid 
change and there are quite a few unknowns at the moment.

If you'd like any details of my code just get back to me.

Regards

Richard


At 15:00 23/06/00 -0400, you wrote:
hi folks,

we are building an application that needs more information
for users than that which is made available via the
acl_users db (which can only contain username, password,
domains, and roles).  specifically, we have created an RDBS
database which tracks users via a numeric user id (and
speeds lookups), all tables are related via this integer
variable.

we are having difficulty, though, in that, zope continues to
want to build a new user entry only via acl_users.  has
anyone done something that will allow us to get around
this.  i have been searching all the various search engines
and zope list archives looking for something along these
lines, and i find a lot of stuff on how zope authentication
"out of the box" works though nothing on how to get the
authentication to work via another means.

i suspect it might require some editing of the base python
code, but i am hoping that this can be done from within the
Products directory and not in the preconpiled code.

any insights would be greatly appreciated.

thanks.

ciao!
greg.

Gregory Haley
venaca.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 )


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] Is there a bug in Zope ? (was Re: [Zope] problem testing permissions)

2000-06-28 Thread Jerome Alet

On Tue, 27 Jun 2000, Jerome Alet wrote:

 If I log in as a user I've created in one of the subfolders then my test
 seems to be wrong (see below).
 
 here's my code which should create an html link to the add form if the
 logged in user is a manager for the subfolder (e.g. jerome for Courses),
 or just display the day number if not
 
 ---CUT---
 dtml-calendar
   !-- I begin to create a link to the add form if the user is --
   !-- a manager for the subfolder --
   dtml-with URL1
 dtml-if AUTHENTICATED_USER.has_role('manager')"
   a href="manage_addProduct/GenericEvent/GenEvent_addForm?date=dtml-var
 date"dtml-var "date.dd()"/a
 dtml-else
   dtml-var "date.dd()"
 /dtml-if
   /dtml-with

if I replace this with:

---CUT---
dtml-if "(('Manager' in AUTHENTICATED_USER.getRoles()) or ('manage' in 
AUTHENTICATED_USER.getRoles()))"
  a href="manage_addProduct/GenericEvent/GenEvent_addForm?date=dtml-var 
date"dtml-var "date.dd()"/a
dtml-else
  a href="dtml-var "linkDate(date)""dtml-var "date.dd()"/a
/dtml-if
---CUT---

then it works fine !!!

If I display AUTHENTICATED_USER.getRoles() then when logged in as
superuser it returns "('manage',)" and when logged in as jerome in a
subfolder (see my previous message) then it returns "['Manager']"

Please could someone explain me what's the problem ? I suppose I AM the
problem ;-)

PS: I run Zope 2.1.6 with patches.

thanks in advance.

Jerome ALET - [EMAIL PROTECTED] - http://cortex.unice.fr/~jerome
Faculte de Medecine de Nice - http://noe.unice.fr - Tel: 04 93 37 76 30 
28 Avenue de Valombrose - 06107 NICE Cedex 2 - FRANCE



___
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] HTML Editors that recognize DTML (was bastardized formofXML)

2000-06-28 Thread Gidon Friedman

 Does anyone know of a good (free!) java applet based text editor?  Something
 with basic color tagging abilities and maybe even (gasp) a spell checker,
 search/replace, etc?  If there is one, we could mod it to spit its output as
 a form post, and hus have a great built-in editor for most browsers...

that would be nice, but you would have to build one yourself. Java Swing
has an HTMLEditorKit, but i never tried to use it. have a look at:
http://www.mokabyte.it/1999/12/htmleditor.htm
it explains in italian how to do it (untested).

or you could use javascript:
 http://www.cris.com/~raydaly/htmljive.html

Gidon



___
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] Data.fs.lock?

2000-06-28 Thread Toby Dickenson

On Tue, 27 Jun 2000 16:30:30 -0500, [EMAIL PROTECTED] wrote:

The tech that does backups on my new NT server (IIS) tells me that
everything backs up ok except the \var\Data.fs.lock file.
Is that normal or a problem?

It's definitely normal, and arguably a problem.

On Windows, any file opened for write access by the C fopen function
has its sharing flags set so that no other process can read or write
the file.

I solve the problem with a small batch file, scheduled to run just
before the backup, that looks similar to

net stop zope
copy c:/zope/var/data.fs c:/zope/var/backupdata.fs 
net start zope

hope this helps,


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 )




RE: [Zope] Data.fs.lock?

2000-06-28 Thread Toby Dickenson

Windows definitely provides the right default behaviour here; in most cases
reading a file while someone else is writing to it is a great way to read
garbage. Its annoying for the minority of cases where it does make sense
(such as data.fs) that the Unix-like behaviour (ie, unsafe ;-) isn't
available to Python.

Is anyone from DC listening? would you accept a patch to FileStorage for
Windows that relied on an extension module?


 -Original Message-
 From: Chris Withers [mailto:[EMAIL PROTECTED]]
 Sent: 28 June 2000 12:04
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Re: [Zope] Data.fs.lock?
 
 
 Toby Dickenson wrote:
  It's definitely normal, and arguably a problem.
 
  net stop zope
  copy c:/zope/var/data.fs c:/zope/var/backupdata.fs
  net start zope
 
 I'd say it's definitely a problem if you have to stop zope to do a
 backup :(
 
 But then, I'd say it's a problem running (Zope on) Windows in a
 production environment ;-)
 
 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] RESPONSE.redirect and frames

2000-06-28 Thread urs.beyeler

hello .. is there a possibilty to use RESPONSE.redirect using frames 
and targets? ... thnx

___
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] CASE tools and Zope

2000-06-28 Thread Alexander Chelnokov

Hello Dieter,

Wednesday, June 28, 2000, 3:57:56 AM, you wrote:

DM If your patient data is in an SQL database, you do not need
DM to build (redundant) ZClass instances for them.

DM Instead, you would use Z SQL Methods to access them.

As i realize, ZSQL methods are merely SQL statements for data
manipulation - select, insert, delete and so on. But some application
logic and data integrity rules may be IMHO wrapped into ZClasses
instead of triggers and stored procedures. It looks promising for
instance to have base class Patient (with appropriate ZSQL methods),
which can produce other classes like Patient with knee problems,
Patient for total arthroplasty and so on, where properties of base
class including ZSQL are inherited and require minimal
additions/changes. Do i suppose wrong?

Best regards,
 Alexander N. Chelnokov
Ural Scientific Institute of Traumatology and Orthopaedics
str.Bankovsky, 7. Ekaterinburg 620014 Russia 
E-mail: [EMAIL PROTECTED], [EMAIL PROTECTED]
ICQ: 25640913



___
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/FSSession TransactionError

2000-06-28 Thread Pavlos Christoforou

On Tue, 27 Jun 2000, Brian McClain wrote:

 In my original Zope installation, I'm still getting the same EOFError
 when I try to view a document containing dtml-call FSSession.  I
 have been unable to reproduce the original TransactionError in the
 original Zope.  I have mucked around with the 1st Zope since receiving
 this initial TransactionError - mostly removing var/Data.fs, etc.. and
 reinstalling FSSession etc... so that I could start "fresh".

You can correct the first Zope installation by doing the following.  
Remove dtml-call FSSession and instead use dtml-var SessionUID. This
will give you the problematic unpicklable session uid file and just remove
it. It should be ok after that. Don't spend time on it , I have a pretty
good idea what is going on. I hope by tonight to have a fixed version out.



Pavlos


___
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] Getting anonymous permissions

2000-06-28 Thread J. Atwood

This should be easy, but has me a little confused.

to get a an AUTHENTICATED_USER permission I use...

dtml-if "AUTHENTICATED_USER.has_permission('Permission Name', '')"

Do something

/dtml-if

But how do I test to see if ANONYMOUS has a permission?

Thanks,
J

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




Re: [Zope] Data.fs.lock?

2000-06-28 Thread Erik Enge

On Wed, 28 Jun 2000, Chris Withers wrote:

 I'd say it's definitely a problem if you have to stop zope to do a
 backup :(

How would you do it?  In Unix you can't check if the file is being
read to (can you?), so if you start backing up a 2GB Data.fs file
and then the Zope process starts writing to it, you'll have garbage :-).

Does ZEO solve this?


___
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] KM|net News help

2000-06-28 Thread Wesley Anderson



Being a 
newbie, I've decided to use the KM|net News product as a base to get my 
magazine/newspaper site off the ground. I've found it OK so far, but one of the 
problems I'm having isadding old (ie archived) articles to the database. I 
go in and create a new KMYear (1999) and a 
new month (1). When I get to the "add KMArticle" and try and enter an Id (even 
with 9 numbers), I get an Invalid date/time string error. How can I create valid 
Id's? Once I have a valid Id, I assume I'll be able to create an article 
(incoming.html?)

I'd also like 
to get rid of the "By" (my authors don't identify themselves) and the date/time 
stamp. Where do I find the code for this?
Also, is there 
any way of getting around the fact that you have to approve an article. In the 
'Editing Articles" section of the documentation, you're told you "will recieve a 
message with a link to the edit page of that article. AsI don't 
haveSMTP access, I can't specify the mailhost which means I can't approve 
the article. 

Lastly, once I 
have the articles in there, how do I make them "belong" to a particular 
section?

Thanks in 
advance for your help.


Wesley



RE: [Zope] Q: LoginManager and SQL-US?

2000-06-28 Thread Wilkinson Charlie E
Title: RE: [Zope] Q: LoginManager and SQL-US?





Thanks to Dan Pierson and J.Atwood for pointing me at the GUF/SQL
howto. I've beating my head against LM since. I even looked at
the source code (which might be more useful if I spoke Python...


Anyway, here's what I think I've figured out:


Four methods must be created under a UserSource, whether DTML
method, external, or whatever:


 userExists - passed 'username', return 1 if exists.
 userAuthenticate - passed 'username', 'password', return
  1 if valid user.
 userRoles - passed 'username', return user roles in either
  space-delimited string, or list.
 userDomains - passed 'username', return either a list of
  valid domains (example?) or an empty list/string(?)
  to leave it wide open.


How is that? Am I even getting close? It's worth noting that I
still haven't been able to get LM working on either of two
installs.


At home I got past userExists and userAuthenticate, but then kept
getting Forbidden. It appears that I'm not successfully
returning a list of roles back to the UserSource code. (When I
uncomment the stuff to report that from ForbiddenPage, my roles
are empty.) But is it possible that the real problem is the
domains, or something else?


At work, I can't seem to get past the login screen. I've tried
dropping dtml-raise ... and python raise all over the damn
place and it appears that program flow is going nowhere near
those four methods or their wrappers in UserSource.py. The
traceback shows:


Traceback (innermost last):
 File /usr/local/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 214, in publish_module
 File /usr/local/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 179, in publish
 File /usr/local/Zope-2.1.6-src/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook
 (Object: ElementWithAttributes)
 File /usr/local/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 151, in publish
 File /usr/local/Zope-2.1.6-src/lib/python/ZPublisher/BaseRequest.py, line 446, in traverse
 File /usr/local/Zope-2.1.6-src/lib/python/Products/LoginManager/LoginManager.py, line 149, in lm_unauth
 (Object: SheetProviderContainer)
 File /usr/local/Zope-2.1.6-src/lib/python/OFS/DTMLDocument.py, line 166, in __call__
 (Object: loginForm)
 File /usr/local/Zope-2.1.6-src/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__
 (Object: loginForm)
 File /usr/local/Zope-2.1.6-src/lib/python/DocumentTemplate/DT_Raise.py, line 128, in render
 (Object: 'LoginRequired')
LoginRequired: (see above)


Clue anyone?


TIA,
 Charlie


 -Original Message-
 From: Dan L. Pierson [mailto:[EMAIL PROTECTED]]
 
 Wilkinson Charlie E writes:
   1. Can LoginManager be (easily?) made to meet my specific need?
 
 Probably, it includes a GenericUserSource, which is essentially a
 clone of Generic User Folder (see below).
 
   2. Has anyone done an SQL UserSource yet, or can anyone
give me a clue how to make one?
 
 You should look at Generic User Folder, and the HowTo that 
 tell how to 
 set it up with Postgressql. Basically, you need to create a 
 number of 
 SQLMethods to query your database and some wrappers for these
 methods. The SQLMethods are the only thing that has to care 
 about the 
 details of your database format.
 





Re: [Zope] Access object inside a folder

2000-06-28 Thread Pierre Rougier

Sin Hang Kin a écrit :

did u try that:

 dtml-in "PARENTS[0].objectValues(['DTML Document'])" sort=id

do what u want

/dtml-in

Hope this help
Bye
Pio.

 Hi,

 I have put objects inside a folder tabledef and would like to refer them :

 dtml-in "_.getitem('tabledef').objectItems(['DTML Document'])" sort=id
 mapping
 dtml-var "_['sequence-item']" html_quote
 /dtml-in

 However, this does not work, But putting the objects in the current folder
 works without problems:

 dtml-in "objectItems(['DTML Document'])" sort=id
 dtml-var "_['sequence-item']" html_quote
 /dtml-in

 I also try:

 dtml-with tabledef
 dtml-in "objectItems(['DTML Document'])" sort=id
dtml-var "_['sequence-item']"
 /dtml-in/dtml-with

 and some other combinations, all without success.

 How can I access the objects (DTML DOCUMENTS) inside a folder?

 Moreover, I would like to do the following:

 I have some properties of an object abc which have same name with the object
 ids in the tabledef folder, I would also lookup the objects' properties :

 dtml-in propertyMap mapping
dtml-with tabledef.id
   dtml-var help
  dtml-var taborder
   /dtml-with
 /dtml-in

 Assume abc have a property address, then there should be a dtmldoc call
 address in tabledef, which have properties "help" and "tableorder". I would
 like to retrieve them.

 Can somebody help me with these?

 Rgs,

 Kent Sin
 -
 kentsin.weblogs.com
 kentsin.imeme.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 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 question

2000-06-28 Thread Luke Tymowski

Hello,

  dtml-in "PARENTS[0].objectValues(['DTML Document'])" size=3 sort=id
should
 work, no?

No.

This works on my production server, which runs Zope 2.1.14.
dtml-with history
  dtml-with 2000
dtml-in "objectValues(['DTML Document'])" size=3 sort=title reverse
  dtml-var sequence-itembr
/dtml-in
  /dtml-with
/dtml-with

But if I try that same code on 2.2b2 it doesn't work.
If the subfolder is down 1, then size=1 works, but size=2 returns
everything.
If the subfolder is down 2, then size=1 works, size=2 works, but size=3
returns everything.

By down 2 I mean like the example code above (folder I want to query is two
levels down).

Maybe it's a 2.2 bug?

Luke




___
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 or not ZODB?

2000-06-28 Thread Jim Fulton

(snip)
 The filesystem, imho.  This lets you spread things out over
 multiple disks and even (perhaps) multiple systems.  Worst case
 you've got 50k x 15k = 750M.  Big for a ZODB (?),

No.

Jim

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

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

___
Zope 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 or not ZODB?

2000-06-28 Thread Jim Fulton

Casey Duncan wrote:
 
 I am implementing a document Library using Zope. It has an exhaustive index
 with several thousand topics in an outline residing on a PostgreSQL
 database. This works well and I like it.
 
 My question is where is the best place to store the documents themselves?
 They will be static HTML documents ranging from 1-50Kb in size roughly.
 There will probably be at least 10,000-15,000 of these documents in the
 library once all is said and done.
 
 In my mind I have three options:
 
 1. Store them on the filesystem.
 2. Store them in a PgSQL table as blobs.
 3. Store them as DTML Docs in the ZODB.
 
 I would like to eventually have full text searching capabilities, so that
 makes #1 less attractive (I would likely need my own Python method to do
 it). #2 is somewhat of a pain to implement due to limitations in the PgSQL
 row size and text searching would be slow. With #3 I could in theory use a
 ZCatalog to implement the searching, so that is done for me.

In theory, you could use ZCatalog to catalog objects in the
file system or in a RDBMS, providing that you can provide 
paths for them. I don't think anyone's done this yet. There
are bound to be bumps from wjoever does it first. :)
 
 Is ZODB up to the task of storing this quantity of objects? What problems
 might I run into? Is it a wise idea, could a data.fs file of this size
 (~3-400MB) become too easily corrupted?

No. Zope.Org varies from 300MB to close to 2GB.

Jim

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

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

___
Zope 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 or not ZODB?

2000-06-28 Thread Jim Fulton

Andrew Kenneth Milton wrote:
 
 +[ Cary O'Brien ]-
 |
 | I'll let others speak to 3.  I've never had a problem with ZODB, but I've
 | never put 750MB in it.
 
 It'll take a fair amount of abuse :-)
 
 I've loaded the entire dmoz data into it (once only) just to see what
 would happen. Booting was slow, but, once it got up, it ran OK.

In addition, if you closed it explicitly, an index would
be written. The next "boot" would then be pretty fast.

Jim

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

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

___
Zope 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] Multiple Languages

2000-06-28 Thread Christian Zagrodnick

Hi all,

has anybody figured out how to make a zope website multilingual?

I have to make a website in German and English -
but the database stuff etc. is all the same.

Did anybody do that?


-- 
Christian Zagrodnick - Progressive Media Production
http://www.promp.de/   

Die Haftung ist auf das Gesellschaftsvermoegen beschraenkt.

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




Re: [Zope] Getting anonymous permissions

2000-06-28 Thread Oleg Broytmann

On Wed, 28 Jun 2000, J. Atwood wrote:
 But how do I test to see if ANONYMOUS has a permission?

   Anonymous is AUTHENTICATED_USER, too :)

Oleg.(All opinions are mine and not of my employer)
 
Oleg Broytmann  Foundation for Effective Policies  [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


___
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 performance: reads to writes

2000-06-28 Thread Jim Fulton

Jimmie Houchin wrote:
 
 I know this has been brought up before, but I don't remember if this
 question has been asked.
 
 I've been reading everything I could find on the ZODB. Currently I am
 reading 'Introduction to the Zope Object Database' by Jim Fulton at
 http://www.zope.org/Members/jim/Info/IPC8/ZODB3/index.html .
 
 Towards the end of the paper under Status, he starts referring to future
 features. Under 'Application-level conflict resolution protocols' he
 states this, 'Applications with much higher write to read ratios are
 likely to encounter frequent conflict errors which can seriously affect
 performance.'
 
 Is this pretty much the primary reason that it is generally said that
 the ZODB isn't as well suited to high write situations?

Yes. ZODB uses an optimistic concurrency control protocol, which
assumes that conflicts are rare.

 Or is there more
 to it than that?
 
 The reason I ask is this.
 
 My app by it's nature as a community/portal will have plenty of writes
 in certain areas. However, due to the structure of the website and the
 app most all writes are to unique objects, are appends to an object or
 the person editing the object is the owner and has no one to conflict
 with. In this case there should be little if any ConflictErrors due to
 different users trying to commit changes to the same object.

Right, assuming the objects aren't indexed. If they are indexed, then
modifications to the indexes could conflict. This is agrevated
by the current index design, at Ty pointed out in a later message.

 In the case
 of the appends, it would be like a bboard and there would be no
 conflict. Appends will be done in the order received.

Appends are still writes, so they would conflict. It's
possible that a conflict resolution protocol,
http://www.zope.org/Members/jim/ZODB/ApplicationLevelConflictResolution,
could be used to cause appends to be non-conflicting. I plan to 
implement this protocol on the database side for Zope 2.3. You'd
have to implement the application side of it.
 
Jim

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

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

___
Zope 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 performance: reads to writes

2000-06-28 Thread Jim Fulton

Toby Dickenson wrote:
 
 On Sat, 24 Jun 2000 12:43:05 -0400, "Evan Simpson" [EMAIL PROTECTED]
 wrote:
 
  Will an app as described above still suffer from problems with high
 writes?
 
 There are two independent attacks on this problem underway:
 
 2. Implement the application-level conflict handling you read about, so that
 Folders and Catalogs can decide that two writes don't conflict after all,
 and merge them into a single update.
 
 Yes, that will help
 
 1. Make Folders and Catalogs store meta-data about their contents in a data
 structure consisting of small persistent objects, like B-Tree nodes.  This
 reduces the scope of potential conflict (and the size of the update required
 by a write) to the size of one of these nodes.
 
 As I understand it, a BTreeFolder alone (ie without application-level
 conflict handling) will not help here.

Sure they will, because a BTree is the moral equivalent of
multiple subfolders. (This assumes that a problem in the current
BTree design is fixed, which it will be. ;)

 Folders have to ensure that all their contained elements have a
 different id. The hot-spot is the only way a Folder can achieve this.

But there is only a conflict if two transactions want to pick the 
same id.  Going to (fixed) BTrees doesn't prevent *all* conflicts, 
but it does prevent most conflicts, which will be good enough for many
applications.
 
Jim

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

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

___
Zope 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 performance: reads to writes

2000-06-28 Thread Jim Fulton

Ty Sarna wrote:
 
 In article 000d01bfddfb$4546f070$[EMAIL PROTECTED],
 Evan Simpson [EMAIL PROTECTED] wrote:
  - Original Message -
  From: Jimmie Houchin [EMAIL PROTECTED]
 
   Will an app as described above still suffer from problems with high
  writes?
 
  Possibly, but only if there are hidden hotspots.  For example, in your
 [...]
  2. Implement the application-level conflict handling you read about, so that
  Folders and Catalogs can decide that two writes don't conflict after all,
  and merge them into a single update.
 
 Unfortunately, this doesn't deal with cases where the conflicting state
 is contained in many objects (see note by PJE in the ZODB Wiki).

Yes it does. (See my response to PJE's note.)

 Also, there is a whole other area of difficulty for high-write-volume
 ZODBs, which is the ammount of IO that needs to be done.  First, by
 nature ZODB can't rewrite a single attribute of an object, it has to
 rewrite the entire thing.

Each object (that subclasses Persistent) is analigous to a database 
record. When you modify a part of the object (that isn't it's own
persistent object) then you write the entire record. This seems
pretty reasonable to me. Part of ZODB database design, where it
matters, is to balence the size of database objects. If objects are
too big, then the amount of data written on a change is larger.
If objects are too small, then you may incur too much persistence
overhead. Most apps don't need this level of tuning.
 
 Indexing is also a bear from an IO perspective.  First, BTrees currently
 keep a count at each level, so every change to a btree changes a node at
 each level of the BTree.  For a ZCatalog, there are a lot of btrees
 (something like 2n+4 for n indexes, I think -- don't quote me on that,
 it's been a while), and each one changes (last I looked, every index was
 updated even if the value indexed in a particular one hadn't changed.
 This may have been improved since).  Not only is this bad from a hotspot
 point of view (always a conflict on the root node of the tree), but you
 end up doing a *lot* of IO.  During my experiments that led to
 BerkeleyStorage, I was watching the Data.fs grow by 47K per transaction
 for adding indexed objects of ~1K in size.  Watching this with
 tranalyzer, this turns out to be 1K of object, and 46K of updated btree
 pages :). 

This is a significant problem. The current BTree implementation,
which predates Principia, was designed for very different applications
than it's being used for now. We are working on a new BTree 
implementation that does away with these counts. This should have
a huge impact. We are also looking at getting rid of other hot spots
in the current ZCatalog (e.g. internal id assignment).

 Note that BerkeleyStorage only prevents the file from growing
 that much -- it still has to do all that IO (in fact, it has to do ~2-3
 times that much IO, due to the nature of BerkeleyDB.  A relational
 storage would have similar issues.  For ammount of IO done, FileStorage
 is about as efficient as you can possibly be -- it's just that it trades
 that off against space reclamation).
 
 Also, with any kind of Berkeley or Relational storage, there is a second
 hidden IO and storage penalty: you're storing a btree inside a btree. In
 other words, the lower-level DB uses btrees to store your objects,
 including interior nodes of the higher-level ZODB btree. Every interior
 node of the ZODB Btree needs a leaf node (and supporting interior nodes)
 in the DB's btrees. so you get taxed twice, on both I/O and storage
 space used.

I don't agree with the conclusion of this analysis. The indexes
used in the underlying storage are indexing totally different information.
They are effectively using indexes to provide persistent memory management.
They aren't indexing the application keys.

OTOH, I have some sympathy with a related issue.  You and Phillip
have argued that the ZODB should provide indexes, rather than leaving
indexes to application level code to avoid maintaining undo information
for indexes. After all, indexes can, in theory, be recomputed from
data records after an undo. While I think that this idea has some
merit, I don't think it offers enogh benefit to make it a high
priority.
 
Jim

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

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

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

Re: [Zope] ZPatterns: Deleting objects from a Rack?

2000-06-28 Thread Scott Parish

Thus spake Chris Withers ([EMAIL PROTECTED]):

 Ty Sarna wrote:
  call the manage_delete() method on the object. That is, you ask the
  object to delete itself.
 
 This seems unnecessarily long-winded to me. What are the reasons for it
 being like this? (examples are good... ;-)
 
  However, once you have the object, operations on the object should be
  done as methods on the object.
 
 I'm sure it's against Demeter's Law (I've read the Wiki ;-) to work this
 way. You should ask the rack to delete an object and it can process this
 how it wants... most often this would be by asking the object to delete
 itself, but maybe it's be more efficient for the rack to just delete the
 object (for example, if the object is actually a row in an SQL table)
 

I could be mistaken about this, as I'm still having trouble following the
ZPatterns train of thought, but I think the reason that the object needs to
delete itself is that the object may not be stored in a single place.  For
instance, the object might be created from 5 rows from seperate tables in
an SQL db and 2 attributes gotten from LDAP.  I'm not entirely clear how
asking the object to delete itself in this case is going to improve the
situation over just asking the rack to, but I think that was the intent.

sRp

-- 
Scott Parish
http://srparish.net

 PGP signature


Re: [Zope] ZPatterns: Deleting objects from a Rack?

2000-06-28 Thread Chris Withers

Scott Parish wrote:
 I'm not entirely clear how
 asking the object to delete itself in this case is going to improve the
 situation over just asking the rack to, but I think that was the intent.

Okay, I see the intent now too, but I agree with you that I can't see
what advantage asking the object to delete itself provides. Could
someone explain please?

Furthermore, even if there was an advantage to this, why can't the
rack's delete method just be piped through to the object's delete
method? (which I thought was common practice with Specialists)

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] Re: [Zope-Moz] mozilla and zope play nicely again!

2000-06-28 Thread Christopher Blizzard

Anthony Baxter wrote:
 
 The basic auth problem of mozilla-on-linux that's been around since
 around the 1st or 2nd of June are now fixed, as of 2000-06-27-20-M17
 (note that I don't believe that straight M17 has the fixes applied.)

There is no M17 official release.  We still do nightly builds and they
are considered M17 candidate builds.  We will probably be doing that for
a while, like weeks.

--Chris

-- 

Christopher Blizzard
http://people.redhat.com/blizzard/
I wonder how much deeper the ocean would be without sponges.


___
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] 2.2b3 Tutorial issues

2000-06-28 Thread Luke Tymowski

Hello,

The tutorial included with 2.2b3 now "works"; however, the documents are in
the wrong order (9, 10, 11, 1, 2, 3, 4 etc). And every page generates a
JavaScript error on IE 5.01 (syntax error on line 74).

Luke




___
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] Adding Products Breaking Zope

2000-06-28 Thread Oleg Broytmann

On Wed, 28 Jun 2000, Craig wrote:
 Actually, I removed zope from my system and cleaned everything zope related
 off the system, then reinstalled and it worked.

   Oops! That's an idea...

Oleg.(All opinions are mine and not of my employer)
 
Oleg Broytmann  Foundation for Effective Policies  [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


___
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] Howto engineer a scientific paper system

2000-06-28 Thread Nils Kassube

[EMAIL PROTECTED] wrote:

 In short, I would like to have Zope assist me in producing a
 scientific paper.

Why do you want to use Zope for this? What's the expected
advantage against using e.g. LaTeX?

Cheers,
Nils
--
[EMAIL PROTECTED]   | [EMAIL PROTECTED] (preferred)
[EMAIL PROTECTED] | [EMAIL PROTECTED]




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




Re: [Zope] PowerMac 7500 with LinuxPPC and Zope?

2000-06-28 Thread Nils Kassube

Guten Abend.

 Should I consider a different linux distribution than PPC?

SuSE 6.4 is now also available for the Power Macintosh and other
PowerPC platforms. I'm very interested in knowing if Zope runs 
as good on SuSE/PPC as on SuSE/x86. Please try it... :-)

Cheers,
Nils
--
[EMAIL PROTECTED]   | [EMAIL PROTECTED] (preferred)
[EMAIL PROTECTED] | [EMAIL PROTECTED]



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




Re: [Zope] Re[2]: [Zope] CASE tools and Zope

2000-06-28 Thread R. David Murray

On Wed, 28 Jun 2000, Alexander Chelnokov wrote:
 As i realize, ZSQL methods are merely SQL statements for data
 manipulation - select, insert, delete and so on. But some application
 logic and data integrity rules may be IMHO wrapped into ZClasses
 instead of triggers and stored procedures. It looks promising for

I think what you are looking for here is the concept called
"pluggable brains".  As I understand it (never having used it
myself), it allows you to wrap the returned results up as instances
of a python class, thus supplying object logic to your rdbms
data.  Whether or not ZClasses can play the role of pluggable
brains I don't know, but I have a feeling they would be overkill
for that.

--RDM


___
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] Data.fs.lock?

2000-06-28 Thread Erik Enge

On Wed, 28 Jun 2000, Oleg Broytmann wrote:

 On Wed, 28 Jun 2000, Chris Withers wrote:
 
  So, how should we backup data.fs without stopping Zope and ensuring the
  integrity of our data all the while?
 
Pack and backup Data.fs.old.

But what if the site is incredibly busy and transactions
are going on _all the time_?  And can you automate the 
Pack function?  (If I wanted to do it during the night
for example)


___
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] Howto engineer a scientific paper system

2000-06-28 Thread [EMAIL PROTECTED]


 Why do you want to use Zope for this? What's the expected
 advantage against using e.g. LaTeX?
 
 Cheers,
 Nils
 --

Better integration into the Web, resources should be accessible on
the fly. I would like to have the sources of my ideas packed close
together with the actual content I am producing, delving into a
particular subject should then be straight forward. However,
I have never used LaTeX.

What about using YiHaW for that? There are  classes for different
types of resources available. And the Pointers might be used to
include references into a paragraph.

Christian


___
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] Adding Products Breaking Zope

2000-06-28 Thread Evan Simpson

- Original Message -
From: Oleg Broytmann [EMAIL PROTECTED]
  My problem is with SiteAccess 1.0.1 with Zope 2.1.6 on Debian Unstable
  (Woody). Is it simply that this version of SiteAccess was written for an
  earlier version of Zope and is no longer compatible? Or am I just doing
  something wrong?

Yes. Downgrading to 2.1.4 will help.

SiteAccess 1.0.1 is meant to work with Zope 2.1.6 (and does, for me).  I'd
like to get it working for you folks, as well.  Does a fresh, empty install
of Zope w/SiteAccess on your respective platforms have this problem?

Cheers,

Evan @ digicool  4-am


___
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] range with variables

2000-06-28 Thread R. David Murray

On Tue, 27 Jun 2000, Armin Wappenschmidt wrote:
 dtml-let start=Variable_from_Formular # -- that's the problem!!
 dtml-let stop="100"
 dtml-let period="5"
dtml-in "_.range(start,stop,period)"
   dtml-comment do something /dtml-comment
/dtml-in
 /dtml-let
 /dtml-let
 /dtml-let
 
 
 How can I set the variable "start" from a user given input?

If the user input is the value of a field in a form that was submitted,
just refer to the name of the form field:

dtml-in "_.range(fieldname,stop,period)"

You can use the special form name syntax to have Zope cast the
field value into the appropriate type:  input name="fieldname:int".
There's a howto on the various possabilities for what goes after
the ':'.

--RDM


___
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] Howto engineer a scientific paper system

2000-06-28 Thread [EMAIL PROTECTED]

(...why)

...and, of'course, teamworking.

 [EMAIL PROTECTED]   | [EMAIL PROTECTED] (preferred)

 Why do you want to use Zope for this? What's the expected
 advantage against using e.g. LaTeX?
 

___
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] HTML Editors that recognize DTML (was bastardized formofXML)

2000-06-28 Thread Jon Franz

This looks very cool - the HTMl jive, that is.  I'm going to mod it some,
and get permission from the author to incorporate it into Zope... I'll add
some features like search and replace also...


-Original Message-
From: Gidon Friedman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 28, 2000 6:12 AM
To: Jon Franz
Cc: [EMAIL PROTECTED]
Subject: Re: [Zope] HTML Editors that recognize DTML (was bastardized
formofXML)


 Does anyone know of a good (free!) java applet based text editor?
Something
 with basic color tagging abilities and maybe even (gasp) a spell checker,
 search/replace, etc?  If there is one, we could mod it to spit its output
as
 a form post, and hus have a great built-in editor for most browsers...

that would be nice, but you would have to build one yourself. Java Swing
has an HTMLEditorKit, but i never tried to use it. have a look at:
http://www.mokabyte.it/1999/12/htmleditor.htm
it explains in italian how to do it (untested).

or you could use javascript:
 http://www.cris.com/~raydaly/htmljive.html

Gidon


___
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[2]: [Zope] CASE tools and Zope

2000-06-28 Thread Chris McDonough

ZClasses can indeed be brains.

 -Original Message-
 From: R. David Murray [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, June 28, 2000 12:52 PM
 To: Alexander Chelnokov
 Cc: Dieter Maurer; zope
 Subject: Re: [Zope] Re[2]: [Zope] CASE tools and Zope
 
 
 On Wed, 28 Jun 2000, Alexander Chelnokov wrote:
  As i realize, ZSQL methods are merely SQL statements for data
  manipulation - select, insert, delete and so on. But some 
 application
  logic and data integrity rules may be IMHO wrapped into ZClasses
  instead of triggers and stored procedures. It looks promising for
 
 I think what you are looking for here is the concept called
 "pluggable brains".  As I understand it (never having used it
 myself), it allows you to wrap the returned results up as instances
 of a python class, thus supplying object logic to your rdbms
 data.  Whether or not ZClasses can play the role of pluggable
 brains I don't know, but I have a feeling they would be overkill
 for that.
 
 --RDM
 
 
 ___
 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] Howto engineer a scientific paper system

2000-06-28 Thread Nils Kassube

[EMAIL PROTECTED] wrote:

 Better integration into the Web, resources should be accessible on
 the fly. I would like to have the sources of my ideas packed close

You can have this with LaTeX _and_ an excellent quality
of the printed document. 

 together with the actual content I am producing, delving into a
 particular subject should then be straight forward. However,
 I have never used LaTeX.

You should change this :-)

A few URLs to get you started:

TeX User's Group 
http://www.tug.org/

A Guide to LaTeX: Third Edition
http://cseng.aw.com/bookdetail.qry?ISBN=0-201-39825-7

The LaTeX Web Companion: Integrating TeX, HTML, and XML
http://cseng.aw.com/bookdetail.qry?ISBN=0-201-43311-7ptype=0

Cheers,
Nils
--
[EMAIL PROTECTED]   | [EMAIL PROTECTED] (preferred)
[EMAIL PROTECTED] | [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] Re: [Zope-Moz] mozilla and zope play nicely again!

2000-06-28 Thread Jake Kauth

Martijn Pieters wrote:
 Slashdot has the journalistic integrity of a cod fish. One of the replies on
 the page scolds the writer for _another_ mistake about this. Personally, I
 have given up on slashdot.

around this part of town, we refer to it as "slash and burn". :)

jake
**

___
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 2.2b2: Adding ZClass Instances Programmatically

2000-06-28 Thread Gidon Friedman

hi

I can't add nested ZClasses in dtml  in 2.2b2 on aix 4.3.
It seems that new security model makes things more
complicated, so if sb could show me the light pls?

the same code worked fine in 2.1.6.  on win95.

thanks a lot

gidon
--

my calling method:

dtml-with "manage_addProduct['Surfguide']"
dtml-call "Stundenplan_add(_.None, _, NoRedir=1)"
/dtml-with

and in the Stundenplan_add it says:

dtml-with "Stundenplan.createInObjectManager(REQUEST['id'], REQUEST)"
   dtml-call "propertysheets.Properties.manage_editProperties(REQUEST)"
   dtml-with "manage_addProduct['Surfguide']"
  dtml-call "WTag_add(_.None, _, NoRedir=1, newid='Montag')"

snip -- some more code and another method to call ---  snip

i tried proxy roles and Permissions, but i just doesn't seem to
care what permissions i give, it keeps failing:

Traceback (innermost last):
  File /home/gfried/Zope-2.2.0b2-src/lib/python/ZPublisher/Publish.py, line 222, in 
publish_module
  File /home/gfried/Zope-2.2.0b2-src/lib/python/ZPublisher/Publish.py, line 187, in 
publish
  File /home/gfried/Zope-2.2.0b2-src/lib/python/ZPublisher/Publish.py, line 171, in 
publish
  File /home/gfried/Zope-2.2.0b2-src/lib/python/ZPublisher/mapply.py, line 160, in 
mapply
(Object: Stundenplan_add)
  File /home/gfried/Zope-2.2.0b2-src/lib/python/ZPublisher/Publish.py, line 112, in 
call_object
(Object: Stundenplan_add)
  File /home/gfried/Zope-2.2.0b2-src/lib/python/OFS/DTMLMethod.py, line 167, in 
__call__
(Object: Stundenplan_add)
  File /home/gfried/Zope-2.2.0b2-src/lib/python/DocumentTemplate/DT_String.py, line 
502, in __call__
(Object: Stundenplan_add)
  File /home/gfried/Zope-2.2.0b2-src/lib/python/DocumentTemplate/DT_With.py, line 146, 
in render
(Object: Stundenplan.createInObjectManager(REQUEST['id'], REQUEST))
  File /home/gfried/Zope-2.2.0b2-src/lib/python/DocumentTemplate/DT_With.py, line 133, 
in render
(Object: manage_addProduct['Surfguide'])
  File /home/gfried/Zope-2.2.0b2-src/lib/python/DocumentTemplate/DT_Util.py, line 333, 
in eval
(Object: manage_addProduct['Surfguide'])
(Info: manage_addProduct)
  File lt;stringgt;, line 0, in ?
  File /home/gfried/Zope-2.2.0b2-src/lib/python/DocumentTemplate/DT_Util.py, line 168, 
in careful_getitem
  File /home/gfried/Zope-2.2.0b2-src/lib/python/OFS/DTMLMethod.py, line 189, in 
validate
(Object: Stundenplan_add)
  File /home/gfried/Zope-2.2.0b2-src/lib/python/AccessControl/SecurityManager.py, line 
139, in validate
  File /home/gfried/Zope-2.2.0b2-src/lib/python/AccessControl/ZopeSecurityPolicy.py, 
line 158, in validate
Unauthorized


___
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: OT: Outlook sucks

2000-06-28 Thread Charlie Wilkinson - XM 202-283-3241

Test obviously failed.  :-/  Fine, I'll use a *proper* e-mail client.

(Did I mention Outlook sucks?)

Apologies again.  I've learned a valuable lession here today...

-cw-

-- 
|o|/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\|o|
|o|  Charlie Wilkinson   |o|
|o|  TRIS Development SysAdmin   |o|
|o|  [EMAIL PROTECTED] (w)   |o|
|o| [EMAIL PROTECTED] (h)   |o|
|o|/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\|o|


___
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 or not ZODB?

2000-06-28 Thread Jonothan Farr

 In theory, you could use ZCatalog to catalog objects in the
 file system or in a RDBMS, providing that you can provide
 paths for them. I don't think anyone's done this yet. There
 are bound to be bumps from wjoever does it first. :)

There's a patch to the Local File System product to allow indexing files in the
file system. This will incorporated into the next version.

--jfarr




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

2000-06-28 Thread R. David Murray

On Wed, 28 Jun 2000, Luke Tymowski wrote:
 If the subfolder is down 2, then size=1 works, size=2 works, but size=3
 returns everything.
 
 By down 2 I mean like the example code above (folder I want to query is two
 levels down).
 
 Maybe it's a 2.2 bug?

Maybe you need the 'orphan' parameter on your dtml-in?

--RDM


___
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 problem: Database and large clock skew

2000-06-28 Thread Chris McDonough

Jim,

It might be wise to just truncate the Data.fs at the point the
transactions occurred.

See http://www.zope.org/Members/itamar/CorruptedZODB



 -Original Message-
 From: Jim Flanagan [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, June 28, 2000 1:46 PM
 To: [EMAIL PROTECTED]
 Subject: [Zope] Urgent problem: Database and large clock skew
 
 
 Hi,
 
 In trying to fix a problem with Zope httpd server sockets 
 getting wedged in 
 TIME_WAIT state, I set my system clock ahead by a year, then 
 set it back. 
 Unfortunately, connections to the Zope httpd server occurred 
 while the 
 clock was set in the future, and now when I try to start 
 Zope, it dies with:
 
 DatabaseError: The database contains records, starting at position 
 189587919, that have time stamps 2540023.19965 seconds in the 
 future. This 
 could lead to database corruption.  Please double check your 
 system clock!
 
 I'm using a pre-2.0 version of Zope (Though I can't determin 
 exacly which 
 version...)
 
 Is there any way to correct insane timestamp values? I'm 
 pretty much dead 
 in the water.
 
 Alternatively, I have found the section in BoboPOS.py where 
 this exception 
 is generated. Is it really a problem to have future 
 timestamps? What if I 
 just snipped this portion of the code out?
 
 Please respond to [EMAIL PROTECTED]
 
 TIA
 
 --
 Jim Flanagan
 [EMAIL PROTECTED]   http://jimfl.tensegrity.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 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] mod_rewrite rule to close managmentscreensfromoutsiders

2000-06-28 Thread Bill Anderson

Ragnar Beer wrote:
 
 Ragnar Beer wrote:
 
   Ragnar Beer wrote:
   
I'm trying to deny external access to zope maintainance
 from elsewhere
   (just for  sure), with Zope behind apache. However, It
   just doesn't seem work... Sure It's more apache's problem,
 but I guess
   someone around there has a working solution?
 
   #/IfModule
   dule mod_rewrite.c
   RewriteEngine on
   RewriteCond %{HTTP:Authorization}  ^(.*)
   RewriteRule ^/Zope(.*) /usr/lib/cgi-bin/Zope/$1
 [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l]
 
   RewriteCond %{REMOTE_ADDR} !^193\.143\.156\.(.*)
   RewriteRule ^/Zope.*manage - [F]
   #/IfModule
 
--
   
 I'm using
   
 LocationMatch "/ssl|manage"
 Deny from all
 /LocationMatch
   
 to block any request from my virtual server on port 80 that is under
 the /ssl directory or has "manage" in it. You could then allow from
 localhost.
   
 I was thinking about extending this idea to protect myself from
 possible seccurity-holes in zope by denying everything and allowing
 only requests ending in _html or _img. Any opinions on that?
   
   What about callable objects that don't end in either of these?
   
 
   They wouldn't be callable from outside any more. This is the "deny
   everything that isn't allowed explicitly" policy. If I'd want them to
   be callable I'd have to put something in their names the makes it
   possible to identify them and then allow access.
 
 
 That's an awful lot of code to rewrite ;)
 
 Right, this is rather a strategy to follow from the beginning.
 Otherwise - arghh! (But it's very proactive, isn't it?)
 
 --Ragnar

Actually, I was referring to products you didn't write. For example,
ZStyleSheets. IIRC, they are callable objects, not using an index_html.
Likewise, I beleive for such products as YiHAW, KnowledgeKit, KMNet
News, WorldPilot, etc..

But hey, nobody ever said security was easy ;-)

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




[Zope] Problem with 1 ZCatalog search on same page

2000-06-28 Thread Jeff Sasmor

Hi Zopistas-

I have problem that I hope that there's an answer to.  Perhaps this has been
covered on this list already, but I couldn't find it by searching the NIP archives
and 800+ results for "ZCatalog" was mind-numbing.

I have two ZCatalog searches on the same page (in the same DTML method). Each
has different fields so they have different numbers of results displayed in two 
tables.  

This works just fine.

What's wierd is that the 'batch_size' code interacts between the two-- if the size of 
the 
first table's  set of  results is  batch size and the size of the second table's 
results
is  batch size then the second table has a "next N results" link.  If I click this 
then 
the second table dutifully displays the next data set.  BUT- the first table just 
displays the
LAST item it had displayed before.

From a quick glance at the way that ZCatalog works, it seems as if this behaviour 
could
be correct; and the batching code in the ZC can't handle more than one set of results 
associated with a single DTML method. But I am by no means sure of my interpretation
of the python code here.


Anyone have any insights?

TIA,

Jeff Sasmor
[EMAIL PROTECTED]


PS. For those Zopistas who are MontyPythonistas: I get to see "Eric Idle exploits 
Monty Python" tonite (weds 6/28) at Carnegie Hall in NewYawkCity.  They promise
lumberjacks, etc.  This goes on tour to some cities in the US this summer. Bought
these tickets months ago so have the 4th Row Orchestra!
I hope this is as good as seeing Monty at NYC's Civic Center 
dtml-more-years-ago-than-I'd-like-to-admit.  John Cleese
stepped on my foot whilst selling albatrosses (?) at that one.  But I digress...



___
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] Generating PDF: Use ZpdfDocument or Reportlab?

2000-06-28 Thread Dan Rusch

Yes we have written a faily extensively billing system that uses
reportlab to generate the equipment orders in pdf format. We have made a
few tweaks here and there to reportlab but in general it works quite
well.

Dan

Jonathan wrote:

 Hi all,

 I currently have ZpdfDocument installed but I just stumbled across
 the Reportlab package which seems to offer a much more extensive set
 of features. The advantage of ZpdfDocument is that it is already
 integrated with Zope, but since Reportlab is Python based it
 shouldn't be too hard to integrate that as well.

 Anyone using Reportlab with Zope yet?

 Thnx
 Jonathan

 ___
 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] KM|net News help

2000-06-28 Thread Kevin Dangoor

--- Wesley ---
Being a newbie, I've decided to use the KM|net News product as a base to get
my magazine/newspaper site off the ground. I've
found it OK so far, but one of the problems I'm having is adding old (ie
archived) articles to the database. I go in and create a new KMYear (1999)
and a new month (1). When I get to the "add KMArticle" and try and enter an
Id (even with 9 numbers), I get an Invalid date/time string error. How can I
create valid Id's? Once I have a valid Id, I assume I'll be able to create
an article (incoming.html?)
---

You've hit upon an "unimplemented" feature. I didn't need to be able to
create articles via the management interface, so I never added that
capability. Patches accepted :)

--- Wesley ---
I'd also like to get rid of the "By" (my authors don't identify themselves)
and the date/time stamp. Where do I find the code for this?
Also, is there any way of getting around the fact that you have to approve
an article. In the 'Editing Articles" section of the documentation, you're
told you "will recieve a message with a link to the edit page of that
article. As I don't have SMTP access, I can't specify the mailhost which
means I can't approve the article.
---

The "index.html" method is currently located in the Product itself, and that
controls the byline and date/time stamp display. This should probably be
moved into the KMArticleStore so that people can change it.

--- Wesley ---
Lastly, once I have the articles in there, how do I make them "belong" to a
particular section?
---

There is a category field on the article editing page. You set up your
categories in the KMArticleStore. When you go to the edit method of the
article, you can just select the category from the pull down menu.

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 )




Re: [Zope] ZODB or not ZODB?

2000-06-28 Thread Lalo Martins

On Wed, Jun 28, 2000 at 10:07:25AM -0400, Jim Fulton wrote:
 Casey Duncan wrote:
  
  Is ZODB up to the task of storing this quantity of objects? What problems
  might I run into? Is it a wise idea, could a data.fs file of this size
  (~3-400MB) become too easily corrupted?
 
 No. Zope.Org varies from 300MB to close to 2GB.

What about adding a box somewhere in zope.org telling us the
current size of the ZODB and perhaps some other stats (dunno,
RAM, number of processes)?

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




Re: [Zope] ZPatterns: Deleting objects from a Rack?

2000-06-28 Thread Bill Anderson

Chris Withers wrote:
 
 Scott Parish wrote:
  I'm not entirely clear how
  asking the object to delete itself in this case is going to improve the
  situation over just asking the rack to, but I think that was the intent.
 
 Okay, I see the intent now too, but I agree with you that I can't see
 what advantage asking the object to delete itself provides. Could
 someone explain please?
 
 Furthermore, even if there was an advantage to this, why can't the
 rack's delete method just be piped through to the object's delete
 method? (which I thought was common practice with Specialists)
 
 cheers,

What happens when the object is in multiple racks?
(Assuming it is possible)

___
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 the objects resulting from a ZSQL query to a Zope folder

2000-06-28 Thread Ivan Raikov


Hello, everybody,

Is there any way to programmatically add  the objects, returned from a
ZSQL method to a Zope Folder?

Thanks,
Ivan Raikov

___
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] Data.fs.lock?

2000-06-28 Thread addyd


Well, it's NOT a production environment at this point. I just thought I'd
see if I could play with it until my LinuxPPC 2000 CDs arrived and I could
put it on a Mac where it BELONGS.
:)

I'm looking forward to attempting some benchmarking of Zope on a 533mhz
Pentium III vs a Mac 200mhz PPC 604e.

Darren Addy
Internet Specialist
University of Nebraska at Kearney

PS...they MADE me get a IIS server for a proprietary (Follett Software)
package that one of our offices needed. I'm just trying to figure out
something else to use it for. That Dell Poweredge is taking up a lot of
rack space for the 10 hits per day the Folletts app is gonna get:
http://nvcrc.unk.edu
:)



   
Chris Withers  
chrisw@nipltTo: [EMAIL PROTECTED]  
d.com   cc: [EMAIL PROTECTED], [EMAIL PROTECTED]  
 Subject: Re: [Zope] Data.fs.lock? 
06/28/00   
06:03 AM   
   
   



But then, I'd say it's a problem running (Zope on) Windows in a
production environment ;-)





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




Re: [Zope] Getting anonymous permissions

2000-06-28 Thread J. Atwood

so

dtml-if "AUTHENTICATED_USER.has_permission('View', '')"
Do something
/dtml-if

Should work, but does not.

J



 From: Oleg Broytmann [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 Date: Wed, 28 Jun 2000 14:36:36 + (GMT)
 To: "J. Atwood" [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: Re: [Zope] Getting anonymous permissions
 
 On Wed, 28 Jun 2000, J. Atwood wrote:
 But how do I test to see if ANONYMOUS has a permission?
 
 Anonymous is AUTHENTICATED_USER, too :)
 
 Oleg.(All opinions are mine and not of my employer)
  
 Oleg Broytmann  Foundation for Effective Policies  [EMAIL PROTECTED]
 Programmers don't die, they just GOSUB without RETURN.
 
 


___
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 get email delivery errors

2000-06-28 Thread Dieter Maurer

Ben Leslie writes:
  On Tue, 27 Jun 2000, Dan Rusch wrote:
  
   Our site allows supervisors to email orders back to sales reps. We have
   this working very well. The problem is if the supervisor types in an
   non-existant email address we aren't getting Mail System Error -
   Returned Mail messages like you would from other email apps such as
   Netscape Messenger. Does anyone know how to accomplish this.
   
   Thanks,
DR
  
  
  AFAIK Returned Mail messages are generated by the SMTP server, not by the
  email client application. 
I do not think so.
If an SMTP server detects a problem, it rejects the SMTP request.
If the requester is an SMTP server, it sends an error message
back.
If the requester is something different, e.g. a Zope sendmail tag,
it must do something about the problem -- e.g. raise an exception.


Dieter

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




Re: [Zope] Re: Slow File Access With LocalFS

2000-06-28 Thread Dieter Maurer

Jonothan Farr writes:
  It sounds to me like the Apache server is just writing the data directly to the
  HTTP connection as it is read. I believe that's how HTTP "streaming" works. I
  also believe this is possible to do using the Zope HTTPResponse object. Does
  anyone have any ideas?
We use it to deliver images from a multimedia database.

In Zope 2.1.0, it was not at all easy to use the HTTP streaming.
Many proxies and IE require the Content-Length header
to be correct.
To set a correct "Content-Length" was not a problem.
However, ZPublisher.HTTPResponse reset it afterwards to 0,
leading to very strange effects in various situations (i.e.
with IE and some Proxies).

We finally settled it in the following way:

  RESPONSE.setHeader('Content-Length',length)
  RESPONSE.setHeader('transfer-encoding','binary') # to prevent RESPONSE.__str__ 
to overwrite "Content-Length"
  RESPONSE.headers['Content-Length']= length
  # now do several "RESPONSE.write"

I am not sure, whether 2.1.6 or 2.2 still requires this strange
code sequence.


For Zope 2.1.6, we detected a nasty ZServer bug with the
streaming protocol: missing thread synchronization.
As a result, browsers got a non-deterministic part of the image.
Very nice effects
DC told me, that this bug is fixed in the CVS and for Zope 2.2.


Thus, do not use the HTTP streaming protocol for the standard
Zope 2.1.6 distribution (or be ready to patch ZServer).


Dieter

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




Re: [Zope] DTML question

2000-06-28 Thread Dieter Maurer

Rik Hoekstra writes:
  
  
  Luke Tymowski wrote:
   
   Hello,
   
   I want to retrieve the last 3 filenames from a subfolder and display them in
   a document. If I set the size of the retrieval to 1, I get just 1 name
   returned. If I set the size to 3, I get everything in the folder. (if I use
   2 I also get everything in the subfolder )
   
   Here is my code (using 2.2b2):
   
   dtml-with Document
 dtml-in "objectValues(['DTML Document'])" size=3 sort=id
 dtml-var id dtml-var titlebr
 /dtml-in
   /dtml-with
   
  
  You could try (untested):
  
  dtml-with Document
dtml-in "objectValues(['DTML Document'])[-3:]" sort=id
dtml-var id dtml-var titlebr
/dtml-in
  /dtml-with
This will first select 3 elements and only then sort.
Maybe not, what on wants.

dtml-in "Document.objectValues(['DTML Document'])" sort=id reverse size=3 orphan=0

may do the trick.



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] Access object inside a folder

2000-06-28 Thread Dieter Maurer

Sin Hang Kin writes:
  dtml-in "_.getitem('tabledef').objectItems(['DTML Document'])" sort=id
  mapping
  dtml-var "_['sequence-item']" html_quote
  /dtml-in
  
  Error Type: AttributeError
  Error Value: __getitem__
This is as it should be:
  "objectItems" does not return a list of mapping objects.
  These objects do not have a mapping's "__getitem__"
  method. Therefore, you get the AttributeError.


  dtml-with tabledef
  dtml-in "objectItems(['DTML Document'])" sort=id
  dtml-var "_['sequence-item']"
  /dtml-in
  /dtml-with
  
  Error Type: AttributeError
  Error Value: __call__
  Traceback (innermost last):
.
File C:\Program Files\Zope2\lib\python\DocumentTemplate\DT_With.py, line
  132, in render
  (Object: tabledef)
  AttributeError: (see above)
That is very strange!

The error message (including traceback) tells that
Zope tried to access "tabledef.__call__". This
was impossible, because "tabledef" has no "__call__" attribute.

The strange thing: your DTML snipped does not contain
any place, where Zope must access "tabledef.__call__".
Both in the "dtml-with" as well as in "_['sequence-item']",
Zope will see, whether the objects are callable and if
so, it will call them.
It seems that "callable" returns true, but in fact one of
the objects is indeed not "callable".

  If I add mapping:
  dtml-with tabledef
  dtml-in "objectItems(['DTML Document'])" sort=id mapping
  dtml-var "_['sequence-item']"
  /dtml-in
  /dtml-with
  
  Error Type: AttributeError
  Error Value: __getitem__
That is the same as in the first example.


 Moreover, I would like to do the following:

 I have some properties of an object abc which have same name with the
  object
 ids in the tabledef folder, I would also lookup the objects' properties
  :

 dtml-in propertyMap mapping
dtml-with tabledef.id
   This will almost surely give a KeyError (tabledef.id).
   You must enclose it in "...".
  
   dtml-var help
  dtml-var taborder
   /dtml-with
 /dtml-in
  
 Assume abc have a property address, then there should be a dtmldoc call
 address in tabledef, which have properties "help" and "tableorder". I
  would
 like to retrieve them.
   I fear, I do not understand, what you want to do.
  
  I have a folder call tabledef which use dtmldocument to keep some field
  definition like its label, size, default value, help text etc. Which I would
  like to generate the data entry form for it. The data will be stored as
  object properties, so If I generate a edit form, then I should get the
  property, lookup the field information in tabledef folder, and get the
  label, size, information from there.
I am still not sure, what you are for.

But at least, I understand your partial problem: accessing the
content of a folder. I think I can help you with this.

When you look at the ObjectReference at URL:http://zdp.zope.org
(the Zope Documentation Portal), you will find that
"objectItems" returns a list of pairs "(id,subobject)".

"dtml-in" handles such list specially (- dtml-in reference):
it calls the first component "sequence-key" and the second
"sequence-item".

The following DTML code works for me (Zope 2.1.6):

dtml-in "tabledef.objectItems(['DTML Method'])" sort=sequence-key
h1dtml-var sequence-key-- the subobject's id--/h1
dtml-var sequence-item -- the subobject itself, rendered--
/dtml-in



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 problem: Database and large clock skew

2000-06-28 Thread Ty Sarna

In article 116492527.962189166@[172.20.20.1],
Jim Flanagan  [EMAIL PROTECTED] wrote:
 In trying to fix a problem with Zope httpd server sockets getting wedged in 
 TIME_WAIT state, I set my system clock ahead by a year, then set it back. 

Can't help you with the database problem, but thought I'd point out that
changing the system real time clock won't help you to time out
connections.  Network statcks use monotonic clocks or timers that are
immune to "time warps". 


___
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] ProxyPass Problems

2000-06-28 Thread Baker, Dennis [sjmr]

The idea was to have http://mysite.org go to one part of my site,  and
https://mysite.org go to a different section of my page.  When you request a
page using http:// the request comes in on port 80 is non-encrypted html.
https:// requests go to port 443,  and are encrypted.  So the idea is to
have Apache ProxyPass the secure pages (Port 443) to the Secured pages.  All
better now... I didn't pay attention to the existing VirtualHosts in
httpd.conf and paid for it.

 -Original Message-
 From: Peter Sabaini [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 27, 2000 6:12 AM
 To: Baker, Dennis [sjmr]
 Cc: '[EMAIL PROTECTED]'
 Subject: Re: [Zope] ProxyPass Problems
 
 
 
 i dont know much about ssl but wouldn't you want to pass / --
 https:// instead of / -- http:// ?
 but then again i dont know a thing about ssl...
 peter
 
 
 On Mon, 26 Jun 2000, Baker, Dennis [sjmr] wrote:
 
 :I'm having a problem with getting ProxyPass and SSL to work. 
  I followed the
 :How-to on Using Apache with ZServer,  and unfo's How-To on
 :Apache+ZServer+SSL.  And my setup is nearly identical to the 
 one listed on
 :the howto.  I have my main site in the root of my Zope 
 Setup,  and My SSL
 :site is in a subdirectory of the root called SecureSite.  
 :
 :After setting up the ProxyPass Directives in Apache (I have 
 the httpd.conf
 :section attached below) and Adding the SiteRoot objects on 
 Zope I can access
 :the main Site at http://mysite.org,  but if I try to access
 :https://mysite.org my web browser hangs until it times out.  
 Also,  it
 :becomes impossible to browse the SecureSite Folder unless I 
 delete the
 :SiteRoot Object. 
 :
 :It appears to be some kind of Apache issue,  however I can't 
 figure out why
 :it won't connect,  the directives are almost identical to 
 the ones on the
 :Howto.  Any Suggestions ??
 :
 :  Snippet from httpd.conf  ---
 :NameVirtualHost 206.171.167.101:80
 :
 :VirtualHost 206.171.167.101:80
 :ServerAdmin [EMAIL PROTECTED]
 :ServerName mysite.org
 :ProxyPass / http://mysite.org:8080/
 :ProxyPassReverse / http://mysite.org:8080/
 :ProxyPass /misc_ http://mysite.org:8080/misc_
 :ProxyPass /p_ http://mysite.org:8080/p_
 :/VirtualHost
 :
 :NameVirtualHost 206.171.167.101:443
 :
 :VirtualHost 206.171.167.101:443
 :ServerAdmin [EMAIL PROTECTED]
 :ServerName mysite.org
 :ProxyPass / http://mysite.org:8080/SecureSite/
 :ProxyPassReverse / http://mysite.org:8080/SecureSite/
 :ProxyPass /misc_ http://mysite.org:8080/misc_
 :ProxyPass /p_ http://mysite.org:8080/p_
 :/VirtualHost
 :
 :  End Snippet 
 :
 :Dennis Baker
 :Information Systems Manager, St. Joseph's Medical Resources 
 :
 :
 :___
 :Zope maillist  -  [EMAIL PROTECTED]
 :http://lists.zope.org/mailman/listinfo/zope
 :**   No cross posts or HTML encoding!  **
 :(Related lists - 
 : http://lists.zope.org/mailman/listinfo/zope-announce
 : http://lists.zope.org/mailman/listinfo/zope-dev )
 :
 
 -- 
 
 _
 peter sabaini, mailto: [EMAIL PROTECTED]
 -
 
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists - 
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )
 
 


___
Zope 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 and Cache Issues

2000-06-28 Thread Rogerio Atem de Carvalho

I am using a combination of Zope to create and maintain 
a MySQL database. This database is full of images files 
so I decided to keep them outside MySQL for caching 
facilities. My question are: 1)image files referenced 
by LocalFS objects are cached by Zope? and 2)In this 
situation do I need to use Apache or only Zope+MySQL?

regards,

Rogerio Atem
---
E-mail enviado pelo servidor do CEFETCampos

___
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 or not ZODB?

2000-06-28 Thread Dieter Maurer

Jim Fulton writes:
  In theory, you could use ZCatalog to catalog objects in the
  file system or in a RDBMS, providing that you can provide 
  paths for them. I don't think anyone's done this yet. There
  are bound to be bumps from wjoever does it first. :)
I use ZCatalog to catalog objects in the file system included into
the Zope world via LocalFS.
Minor patch to LocalFS needed. Everything works with the exception
of proximity searches.



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] [Newbie Question] Pertaining to Search Engines

2000-06-28 Thread Eddie Mosier

Is it possible for you to get a site that is built with zope to be found by 
search engines (other than those that are directory listings, like 
yahoo.com and dmoz.com)?  From what I have seen, I think zope would do what 
I would like, but I need to know this.   From what I have learned so far I 
doesn't really seen possible.

Eddie Mosier


___
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] Problem with 1 ZCatalog search on same page

2000-06-28 Thread Dieter Maurer

Jeff Sasmor writes:
  I have two ZCatalog searches on the same page (in the same DTML method). Each
  has different fields so they have different numbers of results displayed in two 
 tables.  
  
  This works just fine.
  
  What's wierd is that the 'batch_size' code interacts between the two 
You must understand, how batching works:

  "sequence-query" is the query string with any "query_start"
  parameter removed.
  A "dtml-in" uses the "query_start" parameter to decide
  where to start displaying the sequence (if not told
  otherwise with a "start=" argument.

  If you have several "dtml-in" on the same page, you
  need several start parameters, one for each "dtml-in".
  You can use the "dtml-in" argument "start" to tell
  it which variable should be used.
  The only remaining thing is to get a query string
  from QUERY_STRING that no longer contains unwanted
  "start=..." Elements. That is a task for a small
  external method.


Dieter

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




Re: [Zope] DTML question

2000-06-28 Thread Curtis Maloney

On Thu, 29 Jun 2000, Luke Tymowski wrote:
 Hello,

  Maybe you need the 'orphan' parameter on your dtml-in?

 Thanks. That did the trick.

 I really hope that O'Reilly book gets done sooner rather than later.

Well, to be honest, I've found the existing documentation on that topic to be 
very helpful.  My only problem with it has been seemingly erroneous (or at 
the very least, less than clear) example code.

 I wasn't seeing that problem on my production server (2.1.4) because it has
 70-odd documents in the folder I query. (I'm trying out things on a
 development machine with 2.2.)

Yeh, I thought so. (o8


 Luke

Have a better one,
Curtis.

dtml-var standard_work_disclaimer

___
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: Prototyped folders?

2000-06-28 Thread Hamish Lawson

I wrote:

  If a folder doesn't itself contain a required object or method, I'd
  like to have another folder looked in instead. The fall-back folder
  won't necessarily (and often can't) be higher in the hierarchy, so
  acquisition doesn't seem to be a solution. 

Steve Alexander wrote:

  Your requirements sound very much like those for Shane Hathaway's
  Transparent Folders product, except that instead of briefly diverting
  acquisition into the transparent folder, you want to briefly divert
  acquisition into some other arbitrary folder.

Steve, thank you very much for that information. I eagerly await the
re-release of Transparent Folders.

 If you don't have sufficient python-hacking-zope-hacking-Zen to do it
 yourself, I think I might have a go (and hopefully learn some Zope
 internals Zen in the process).

Though I have a reasonable amount of Python experience, I'm just
starting on Zope development. Depending on how I get on, I may take you
up on your offer!

Hamish Lawson



=
Hamish Lawson  [EMAIL PROTECTED]


Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

___
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/FSSession TransactionError

2000-06-28 Thread Brian McClain

 In my original Zope installation, I'm still getting the same EOFError
 when I try to view a document containing dtml-call FSSession.  I
 have been unable to reproduce the original TransactionError in the
 original Zope.  I have mucked around with the 1st Zope since receiving
 this initial TransactionError - mostly removing var/Data.fs, etc.. and
 reinstalling FSSession etc... so that I could start "fresh".

You can correct the first Zope installation by doing the following.  
Remove dtml-call FSSession and instead use dtml-var SessionUID. This
will give you the problematic unpicklable session uid file and just remove
it. It should be ok after that. Don't spend time on it , I have a pretty
good idea what is going on. I hope by tonight to have a fixed version out.

Pavlos

Joy! Following Pavlos's advice, my EOFError seems to be cured on my original
Zope installation.  Funny though, I fired up the original Zope and immediately
used dtml-var SessionUID which gave me a KeyError - understandable since I
had not started FSSession yet.  Realizing this I did a dtml-call FSSession
and Voila - it worked without having to remove any session files.  

Thanks for the help,
Brian

___
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] Howto engineer a scientific paper system

2000-06-28 Thread Ben Leslie

On Wed, 28 Jun 2000, [EMAIL PROTECTED] wrote:

 How to engineer a scientific paper system
 
 Are there products out for this, should we produce one?
 --
 
 In short, I would like to have Zope assist me in producing a
 scientific paper.
 
 So how can I produce pointers from within the text to objects holding
 more information about these pointers, i.e. a referene within a
 paragraph is linked to the bibliography.
 
 --
 
 My setup so far is a folder structure, with DTML Documents for
 content that have Properties holding the references in token
 (semi-colon) separeted lines.
 
 Methods are used to parse the folder (having chapter properties) and
 DTML Documents in order to get a table of content structure and
 html-styled reference list respectively. 


You might want to check out DocBook, (sorry don't have a URL handy).

DocBook is an SGML DTD which defines a lot tags used for making books and
articles. These might be applicable to scientific papers.

Once you write up the DocBook you can then convert it HTML, rtf, TeX (and then
to postscript). Or you could make up any other stylesheets to convert it to
other formats. (I'm stil new to this so my exact terminology might be a bit
off ;). 

There is also XML DocBook DTD for those who want to be buzzword compliant ;)

Then again I've used plain old LaTeX for writing up university reports and this
is also quite a nice markup language as well.

Anyway this might be something for you to look at, you could quite easily 
intergrate this into Zope (ie: have a docbook class, which lets you edit the
document and then methods to convert to other formats or something similar).

Anyway, just my 2c.

Benno

___
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] OT: MS Outlook sucks

2000-06-28 Thread Ben Leslie

On Wed, 28 Jun 2000, Wilkinson Charlie E wrote:

 ...but you already knew that didn't you?
 
 First, an apology for previously sending MIME/html crap to
 the list, even after being told about it and after I thought
 I had it turned off, and another apology for this OT message
 while I'm at it.
 
 I think I've got it now.  Using OL2k(CW) here, and I had set
 "plain text" everywhere I could find to set it.  After
 visiting the Zope mailing list archives today, I was alarmed
 to find that I was *still* sending out MIME/html attachments.
 (A hearty thanks to the list members for not beating me up
 about this.)  I checked the messages in my Sent box and these
 very same MIME/html attachement messages were listed as
 having been sent in plain text.  Grrr...
 
 After much bitching, whining and research, I stumbled across
 what is possibly a fix.  It seems that OL2k requires Outlook
 Express for some of its functionality, especially some aspects
 of handling SMTP (Internet) e-mail.  I've never used OE for
 anything (on purpose), but I fired it up and checked the
 format for sending messages.  It was set to html.  It's now
 set to plain text.  So maybe, just *maybe* its fixed now.
 (If it's not, then I've got some more bitching and whining
 to do...)
 
 I'm hoping this info might help anyone else here who may be
 having this problem.
 
 Sorry,
   Charlie


This one still seems to have an HTML attachment as well :(. I don't think
most people notice since Outlook does actually do the right thing and sent
a plain text version and an HTML version, as a result I never see the HTML
version (unless I go looking).

(Oh by right thing I mean per MIME spec, not right thing overall since they
end up chewing twice as much bandwidth, disk space etc etc).

Sorry I can't offer any hints on how to fix it (except to ssh to a linux box
and use mutt ;).

Cheers,

Benno

___
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] Prototyped folders?

2000-06-28 Thread Hamish Lawson

I wrote:

 If a folder doesn't itself contain a required object or method, I'd
 like to have another folder looked in instead. The fall-back folder
 won't necessarily (and often can't) be higher in the hierarchy, so
 acquisition doesn't seem to be a solution. 

Jeff Hoffman wrote:

 I assume your aim is to create a 'baseline' site with a number of 
 customized copies. If you change the baseline, the changes are 
 reflected in its instances, unless the instance has overloaded the 
 changed aspect.

Exactly so.

 I would be interested in pursuing and contributing to an effort to do
 the Hard Thinking this will require, done correctly.

That would be great! Have you seen Steve Alexander's reply to my post?
I'm relatively new to Zope development (though with a fair amount of
experience in Python), so I'd welcome the insights that others more
experienced than me would bring.

Hamish Lawson
University of St Andrews, Scotland




Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

___
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 update DTML built from Python level?

2000-06-28 Thread Andy McKay

Restarting will work (although it is not technically necessary for .dtml).
Perhaps there is another reason...

- Original Message - 
From: "Lalo Martins" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 28, 2000 3:48 PM
Subject: [Zope] How to update DTML built from Python level?


 If I, for example, edit .../lib/python/OFS/documentEdit.dtml,
 what kind of black magic do I have to do to make my changes
 take effect? I'd think it is only a matter of restarting Zope,
 but that doesn't work :-/
 
 []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 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] Creating PythonMethod from ZClass constructor/method.

2000-06-28 Thread Jeff Hoffman

Hello,

Using Zope 2.2b3, I am trying to create a PythonMethod from the
constructor of my ZClass and keep getting an authorization dialog. In my
MyZClass_add method, I have:

  dtml-with "MyZClass.createInObjectManager(...)"
  dtml-call "manage_addFolder(id='testFolder')" !-- works! --
  dtml-with "manage_addProduct['PythonMethod']"
  dtml-call "manage_addPythonMethod(
  this(),
  'testMethod',
  'Test Method',
  'self',
  'pass'
  )"
  /dtml-with
  /dtml-with

Every pemutation I have tried gives the same result: an Unauthorized
exception.

Adding the Python Method by hand works fine, as does adding one using the
following URL:

http://localhost/sandbox/myInstance/manage_addProduct/
  PythonMethod/manage_addPythonMethod?id=footitle=bar...

If there is one thing I am weak on in Zope, it's permissions. I am
assuming there is something wrong with the way mine are set up, but I have
no clue what the correct solution is.

I haven't had the time to try another Python product, but I am guessing
that this problem is not specific to Python Methods; I believe I would run
into this same situation trying to add an instance of any python product
to my ZClass instance.

Anyone have an idea?

--Jeff

---
Jeff K. Hoffman   704.849.0731 x108
Chief Technology Officer  mailto:[EMAIL PROTECTED]
Going Virtual, L.L.C. http://www.goingv.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] How to update DTML built from Python level?

2000-06-28 Thread Lalo Martins

If I, for example, edit .../lib/python/OFS/documentEdit.dtml,
what kind of black magic do I have to do to make my changes
take effect? I'd think it is only a matter of restarting Zope,
but that doesn't work :-/

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




Re: [Zope] LocalFS and Cache Issues

2000-06-28 Thread Jonothan Farr

 I am using a combination of Zope to create and maintain 
 a MySQL database. This database is full of images files 
 so I decided to keep them outside MySQL for caching 
 facilities. My question are: 1)image files referenced 
 by LocalFS objects are cached by Zope? 

No.

and 2)In this 
 situation do I need to use Apache or only Zope+MySQL?

Just Zope.

--jfarr



___
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: [Zope-Moz] mozilla and zope play nicely again!

2000-06-28 Thread Lalo Martins

On Wed, Jun 28, 2000 at 10:40:53AM +0200, Martijn Pieters wrote:
 On Wed, Jun 28, 2000 at 06:31:36PM +1000, Anthony Baxter wrote:
  
  *grumble* I'm sure I saw a post to slashdot saying M17 was out...
  yep, I did, 
  http://slashdot.org/article.pl?sid=00/06/26/1655250mode=nested
  
  "net of a million lies", indeed.
 
 Slashdot has the journalistic integrity of a cod fish. One of the replies on
 the page scolds the writer for _another_ mistake about this. Personally, I
 have given up on slashdot.

That's the kind of situation from which HackRoll was conceived
:-)

(Ok, that's half the reason... the more important half is that
it lost contact with Free Software philosophy - with both
articles about proprietary software that don't mean a thing for
a Free-Software-head, and clueless "you spoiled commie kids"
comments moderated up to the skies, but that's rather off-topic
here and now...)

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




Re: [Zope] How to retrieve content of a document?

2000-06-28 Thread Stuart Bishop

On Wed, 28 Jun 2000, Ben Leslie wrote:

 I think what you need is dtml-var sequence-item which will display the content
 of the document, iirc. Of course you probably _don't_ want to do this because it
 will likely have standard_html_header and standardh=_html_footer embedded in there.

Which is why my standard_html_header and standard_html_footer look
like the following:
dtml-unless renderedheader
dtml-call "REQUEST.set('renderedheader',1)"
blah blah blah
/dtml-unless

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


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