[Zope] Zope is not a valid NT app

2000-09-22 Thread Marco Ribeiro



Hi
I tried Zope for a while in NT 4 Workstation, 
it worked smoothly after initial install.
I stopped and tried to restart the server from 
inside Zope, now there is no way to get the service back.
Even uninstalling (the service still appears in 
NT's services list, but can't be started, there is only a message "not a valid 
Windows NT application") and reinstalling.
Ideas?
TIA
Marco


Re: [Zope] HTML Widgets, In-place editing in Zope

2000-09-22 Thread Maik Roeder

Hi Phill !

Phill Hugo wrote:
> widgets is an external method which will be on Zope.org next week if all
> goes well.

Great, it looks very nice ! 
Perhaps this should go into the Zope core sometime/where ?

Best regards,

Maik Röder

-- 
Uzopia - Digging la vida Zopa - http://uzopia.editthispage.com

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




[Zope] Cookie pointer.

2000-09-22 Thread Steve Drees

I learned this one the hard way.


Had a python method
id: expireTime
parameters: self
body:
t = self.ZopeTime() + (1.0/192.0) # 7.5 minutes in the future
t = t.toZone('GMT')

return t.strftime("%A, %d-%b-%Y %H:%M:%S GMT")
--

Was trying the following



This does NOT work.

THe following works MUCH better





--
Steve Drees
SysAdmin/Software Developer/Web Geek/Chief Bottle Washer
"A problem well-stated is a problem half-solved."
http://www.christianmp3zone.com/savanna


___
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] What options exist for dealing with tracebacks?

2000-09-22 Thread Skip Montanaro


Having only recently upgraded from Zope 2.0 to 2.2.1 I see that the default
behavior for traceback reporting is still to embed them in an HTML comment
(or display them when debugging).  Are there other options for dealing with
tracebacks?  I'm just using ZServer to publish my own modules.  I'm not
using all of Zope.  

My users don't know Python from HTML from a hole-in-the-wall.  Asking them
to root around in HTML source or cut-n-paste tracebacks is a no-win
situation.  Besides, to ask them to do that I suspect I'd have to fiddle the
Zope source code directly.

I would love it if I could set some debug environment variable, run with
-D="[EMAIL PROTECTED]" or subclass some Error class and have tracebacks mailed
to me.  I wouldn't even care about the flood of email.  At least I'd have
all the inputs.

Thx,

-- 
Skip Montanaro ([EMAIL PROTECTED])
http://www.mojam.com/
http://www.musi-cal.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] Exporting

2000-09-22 Thread Andy McKay

How do I export a folder using the Import/Export tab with exporting all the
subobjects?

(Stupidest suggestion so far: delete all subjects, export, undelete)
--
  Andy McKay, Developer.
  ActiveState.


___
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] HTML Widgets, In-place editing in Zope

2000-09-22 Thread Phill Hugo

Hi All,

We've been working on this for a few days now and I think its about time
it was uncovered.

If you try these two URLs in Mozilla or IE, you'll see what it does.

It works in Netscape 4 but doesn't do the stylesheet magic to the form
which looks less impressive.

www.opencookie.org/widgets/index_html

www.opencookie.org/widgets/index_html?editmode=1

widgets is an external method which will be on Zope.org next week if all
goes well.

Have fun.

Phill Hugo

Fortune Cookie (UK) Ltd.
Its nice in here

___
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] Version Control in Zope / Managing releases

2000-09-22 Thread Casey Duncan


   1) "Code Collisions."  - Developers overwriting each other's work.
   2) Partial updates - Right now, we have new pages for marketing
   content that are held up because we don't have our new features for
   the application done yet.  So we can't update marketing pages without
   updating the app at the same time, (one ZODB) unless we directly
   update the production servers. (Eeek!)


Forgive me if this is overly simplistic, but these problems can both be
addressed or at least worked around by using versions, no?

Each developer should have his/her own version object. To lock the object
(and solve #1), a developer just needs to open it and click change. Then to
unlock whatever was worked on and commit it, save the changes to the
version. Granted this means only one person can work on an object at one
time. This can be worked around by proper modularization of your app. Also,
developers need to remember to save their version changes so that others can
work on those objects too. This also has a side benefit of letting you
document your changes in a more meaningful way. Also, an entire set of
changes can be rolled back if it breaks something.

#2 is more about what versions were designed for. Just work on the app code
in a version and don't commit it until it's ready. Granted this assumes that
you have sufficiently separated the data, layout and code and aren't using a
lot of external methods. If this isn't a possible solution, I would just
create a production version of the feature in one folder that might not be
complete but can be updated, and work on a second copy in another folder
that isn't accessible to everyone yet.

If this won't work please elaborate on your design and maybe someone will
have better idea.

Good Luck!
-Casey Duncan


___
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] FYI: Python product tutorial updated

2000-09-22 Thread Shane Hathaway

The Python product development tutorial has been updated to reflect
current practices. It is accompanied by a working product that contains
all the sample code (which should also replace the "Boring" product.)

It will likely be included in the Product Developer's Guide.

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

Shane

___
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] Folderish DTML Document

2000-09-22 Thread Andy McKay

I would, I have a lot of objects.

- Original Message -
From: "Chris Withers" <[EMAIL PROTECTED]>
To: "Andy McKay" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, September 21, 2000 1:52 AM
Subject: Re: [Zope] Folderish DTML Document


> Andy McKay wrote:
> > Sure it works but Im creating 2 objects a folder and a index_html for
every
> > one occurence. Im doubling my database for every object. Ugh!
>
> I really wouldn't worry about that...
>
> 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 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 Loop, is there a 'continue'?

2000-09-22 Thread Daniel Rusch

I hope there is a dtml-continue, I also have not been able to find it
though. 

What I have done is resorted to an dtml-if (or some times an
dtml-unless) that catches the condition I want to short circuit and
wrapped the code in the dtml-else. The dtml-unless probably the better
choice.

dtml-in SomeLoop
dtml-if "Something==SomethingElse"
dtml-else
The code that normally executes
/dtml-if
/dtml-in

It ain't pretty but it works


Dan

"Spicklemire, Jerry" wrote:
> 
> Hi Zope Fans,
> 
> I'm about searched out trying to find any discussion about calling a normal
> "continue" statement, as in Python, from DTML. Any ideas?
> 
> I just want to short circuit a dtml-in loop for one pass, and then finish
> the rest of the loop, based on a parameter.
> 
> Thanks,
> Jerry S.
> 
> ___
> 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] DTML Loop, is there a 'continue'?

2000-09-22 Thread Spicklemire, Jerry

Hi Zope Fans, 

I'm about searched out trying to find any discussion about calling a normal 
"continue" statement, as in Python, from DTML. Any ideas?

I just want to short circuit a dtml-in loop for one pass, and then finish
the rest of the loop, based on a parameter.

Thanks,
Jerry S.

___
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] Q: External method processing (D/H)TML forms?

2000-09-22 Thread J.R. van Ossenbruggen


> > I want to pass input from a DTML form to an external method.  So far
> > the DTML is actually just a plain HTML page:

>  try passing it the REQUEST object:
> 
> def external-method(self, REQUEST):
>"""whatever"""
> 
> 


 Just what I needed!


Thanks,

-- Jacco 

___
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] Yihaw problem

2000-09-22 Thread Bill Anderson

neeloy_saha wrote:
> 
> Hi all,
> I am trying to use the yihaw folder. well I am able to import the
> YihawDirectory.zexp and also successfully add a yihaw folder while in the
> manage view. In side the yihaw folder Create a faq item. Done that
> for e.g : 968388000 (what is systems??)
> clicking on that item generates the following error.I am using zope 2.2.0
> Thx and regards.
> -neeloy
> Error Type: NameError
> Error Value: Catalog  Troubleshooting Suggestions This resource may be

You need a ZCatalog, named 'Catalog' somewhere in the path to your
YiHaw. Generally, you put it in the site root.

--
E PLURIBUS LINUX

___
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: Patch to let Authorized Exceptions use standard_error_message

2000-09-22 Thread Andy McKay

Well theres the thing, its not really a patch. I doesnt allow Authorized
Exceptions to use standard_error_message, thats a whole different kettle of
fish.

/lib/python/ZPublishers/HTTPResponse.py line 482 to 523 contains HTML text
for the error message. So you can rewrite that. Thats all I have done.

- Original Message -
From: "Chris Withers" <[EMAIL PROTECTED]>
To: "Andy McKay" <[EMAIL PROTECTED]>
Cc: "William JOYE" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; "Tom Deprez"
<[EMAIL PROTECTED]>
Sent: Friday, September 22, 2000 1:26 AM
Subject: Patch to let Authorized Exceptions use standard_error_message


> Andy McKay wrote:
> > Chris - you correct the comment says something about this could use
> > standard_error_message I did a quick hack of changing the source for
> > that file so it looks pretty (of course its totally static). Works for
me.
>
> Well can you please, please, please put it in the Collector as a 'bug
> with Patch' so everyone else can benefit. :-)
>
> ...or at the very least post the patch to the list...
>
> 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] tranalyzer patch

2000-09-22 Thread Bill Welch

Fixes a bug with records that have versions and a bug with records that
point to other records for data.

211c211
< self.vstring = f.c(vl - 16)
---
> self.vstring = f.c(vl)
214c214
< data = f.c(dl - 8)
---
> data = f.c(dl)
216a217,218
> self.drpos = 0
> else:
218a221
> 
223c226,229
< s = "\tOID: %(oid)s len %(datalen)d\n" % self
---
> if self.drpos:
> s = "\tOID: %(oid)s position %(drpos)d\n" % self
> else:
> s = "\tOID: %(oid)s len %(datalen)d\n" % self
225c231
< s = s + """\t\t(version "%(vstring)s", vlen
%(verslen)d)\n"""
---
> s = s + """\t\t(version "%(vstring)s")\n""" % self




___
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] Q: External method processing (D/H)TML forms?

2000-09-22 Thread Rik Hoekstra


> 
> I want to pass input from a DTML form to an external method.  So far
> the DTML is actually just a plain HTML page:
> 
>   
>   
>   
>  
> 
> If I fill in "test" in the form, my external method is beging called
> correctly, e.g. the URL is ../external-method?foobar=test as I
> expected.
> 
> But how do I access that "foobar" value from Python in the external
> method?
> 
> It is currenly defined like:
> 
>  def external-method(self):
> # is there a self.foobar or something?
> ...
> 
> Any help will be highly appriciated by this Zope newbie!

 try passing it the REQUEST object:

def external-method(self, REQUEST):
   """whatever"""





___
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] Version Control in Zope / Managing releases

2000-09-22 Thread Steve Spicklemire


Hi Bob,

   I would be most interested to hear about your experience with
ZCVSMixin, or anyone elses! I've gotten very little feedback, and
what I have gotten, I've incorporated into the Product. The main
problems I see at this time are:

1) It doesn't handle recursion a lot of that has to be
don manually at this time this is close to the top of
my priority list... but time is very limited

2) The Container/Contianment problem: Right now with ZCVSMixin you can
check in an entire ZClass (or any folderish object really...)
including all it's methods/properties/etc as one monolithic
'zexp'. You can also check in the methods of a ZClass as individual
objects. There is no way (right now) to check in 'everything about
this object *except* it's contents .  I'm not even sure how to
approach the problem ideas about this are most welcome! Right
now... our project is running two 'development' servers, and a 'live'
server, all sharing objects and classes with ZCVSMixin, (and plain old
CVS for the Product level Python bits, but managed through the web
with ZCVSMixin.) 

Are there other major issues I'm missing?

thanks!
-steve



> "Bob" == Bob Crosley <[EMAIL PROTECTED]> writes:

Bob> As our development team grows, and our application grows more
Bob> complex, version control in Zope becomes more problematic.
Bob> I'm trying to do some research into the different techniques
Bob> people are using to manage application development.

Bob> Here's our current situation.  *We have a web application
Bob> that contains both your standard web site/marketing copy type
Bob> pages, and the application itself.  *We have a team of 7
Bob> developers including application developers and HTML
Bob> coders/Graphic Artists.

Bob> We have a number of problems we're trying to solve.  If you
Bob> have a solution that's worked for you for any of these
Bob> problems, I'd love to hear about it.

Bob> 1) "Code Collisions."  - Developers overwriting each other's
Bob> work.  2) Partial updates - Right now, we have new pages for
Bob> marketing content that are held up because we don't have our
Bob> new features for the application done yet.  So we can't
Bob> update marketing pages without updating the app at the same
Bob> time, (one ZODB) unless we directly update the production
Bob> servers. (Eeek!)

Bob> We looked at ZCVSMixin for a solution to problem 1, and it
Bob> shows a lot of promise but isn't quite there yet.  For
Bob> problem 2, we considered the idea of running two Zopes for
Bob> the app, using one to serve the marketing pages, and one for
Bob> the application pages so they could be updated independently.
Bob> Has anyone done that?  We have images and appearance
Bob> attributes stored in the ZODB and don't want to have to keep
Bob> seperate sets of those, so any solution would have to be able
Bob> to draw off the same images and appearance variables.

Bob> Any feedback anyone can provide would be very helpful.

Bob> Thanks, Bob




Bob> ___ Zope maillist
Bob> - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope
Bob> ** No cross posts or HTML encoding!  ** (Related lists -
Bob> http://lists.zope.org/mailman/listinfo/zope-announce
Bob> 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] Deleting Zaml breaks SQL Method Advanced Tab - Zope 2.2.2

2000-09-22 Thread Brad Clements

I'm not sure how SQL Methods are related to Zaml (XML widgets editor) 
but removing the XML Widgets and Zaml editor from the products 
directory has broken the advanced tab on my SQL Methods.

I had installed XML Widgets and Zaml and the sample.zexp files. 
Played with it, then deleted the product directory contents for these 
items and then deleted objects of that type from ZODB.

Now when I attempt to set the advanced options on an SQL Method, I 
get this traceback:


ImportError

Sorry, a Zope error occurred.

Traceback (innermost last):
  File E:\ZOPEST~1\lib\python\ZPublisher\Publish.py, line 222, in publish_module
  File E:\ZOPEST~1\lib\python\ZPublisher\Publish.py, line 187, in publish
  File E:\ZOPEST~1\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook
(Object: SQLPackage)
  File E:\ZOPEST~1\lib\python\ZPublisher\Publish.py, line 171, in publish
  File E:\ZOPEST~1\lib\python\ZPublisher\mapply.py, line 160, in mapply
(Object: manage_advancedForm)
  File E:\ZOPEST~1\lib\python\ZPublisher\Publish.py, line 112, in call_object
(Object: manage_advancedForm)
  File E:\ZOPEST~1\lib\python\App\special_dtml.py, line 120, in __call__
(Object: manage_advancedForm)
(Info: E:\ZOPEST~1\lib\python\Shared\DC\ZRDB\advanced.dtml)
  File E:\ZOPEST~1\lib\python\DocumentTemplate\DT_String.py, line 528, in __call__
(Object: manage_advancedForm)
  File E:\ZOPEST~1\lib\python\Shared\DC\ZRDB\DA.py, line 509, in 
manage_product_zclass_info
(Object: SQLPackage)
  File E:\ZOPEST~1\lib\python\ZODB\Connection.py, line 447, in setstate
ImportError: No module named ZamlBase


--

Also when starting Zope up, I get an oid not found error:

2000-09-22T15:47:53 ERROR(200) ZODB Couldn't load state for '\000\000\000\000\00
0\000\001E'
Traceback (innermost last):
  File E:\ZOPEST~1\lib\python\ZODB\Connection.py, line 447, in setstate
  File E:\ZOPEST~1\lib\python\ZODB\Connection.py, line 213, in _persistent_load
(Info:   ??)
  File E:\ZOPEST~1\lib\python\ZODB\Connection.py, line 154, in __getitem__
(Info: ('\000\000\000\000\000\000\036\035', '(cExtensionClass\012ExtensionCl
ass\012q\001(U\012ZamlViewerq\002(cZClasses.ZClass\012PersistentClass\012q\003cP
roducts.ZamlBase.ZamlViewerBase\012ZamlViewerBase\012q\004U\010\000\000\000\000\
000\000\036 q\005QcOFS.SimpleItem\012SimpleItem\012q\006tq\007}q\010(U\004iconq\
011U\000U\012_p_changedq\012K\001U\007__doc__q\013U\012ZamlViewerq\014U\006_p_oi
dq\015U\010\000\000\000\000\000\000<\036q\016U\011meta_typeq\017U\012ZamlViewerq
\020U\016propertysheetsq\021U\010\000\000\000\000\000\000\036"q\022QU\016manage_
optionsq\023(}q\024(U\005labelq\025U\010Securityq\026U\006actionq\027U\015manage
_accessq\030utq\031U\015render_helperq\032(U\010\000\000\000\000\000\000\036#q\0
33(U\017ZClasses.Methodq\034U\003MWpq\035ttq\036QU\022__ac_permissions__q\037)U\
006renderq (U\010\000\000\000\000\000\000\036$q!(h\034U\003MWpq"tq#tq$QU\011_p_s
erialq%U\010\0034/\301\222z\265\356q&U\012__module__q\'U\031*CaoR/kOGVoComHwx/uH
VTg==q(utq)t.N.'))
Could not load oid   ??, pickled data in traceback info mayconta
in clues

I can't find any Zaml related objects in my ZODB, but something still 
thinks it exists.. How can I be sure all references are deleted? (I haven't 
packed my .fs ever)

I suppose there needs to be a fix in DA.py .. or in  Connection.py, not 
sure.



Brad Clements,[EMAIL PROTECTED]   (315)268-1000
http://www.murkworks.com  (315)268-9812 Fax
netmeeting: ils://ils.murkworks.com   AOL-IM: BKClements

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




[Zope] ftp-acces to Zope: "rename" command

2000-09-22 Thread k . woelfel

Hi,
I have the following problem:
One great thing in Zope is the ftp acces to objects. And in combination
with the ftp-abilities of kfm and kwrite in kde1.2 it worked very nice for me
to edit DTML-Documents in kwrite.

But now in kde2 the the i/o System of kde (kio) has changed and when I
edit an DTML-Document with kwrite in kde2 and want to save, kwrite (in fact
kio) first creates a new file named file_name.part and then renames it to
file_name.

No the problem is that the ftp part of ZServer doesn't support to rename
an object. When I type "rename file file_old" in the linux terminal-ftp
client, he says: "500 'RNFR': command not understood."

So I'm asking if anybody knows how to solve this problem, or if there is
anybody who can tell me where in the source of Zope I have to look to
implement the "rename" command in ZServer. On the IRC Zope-cannel they told me that
this wouldn't be too difficult. But maybe it is already implemented an I
only have to activate it...

Bye,
Klaus

-- 
Sent through GMX FreeMail - http://www.gmx.net


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




[Zope] Q: External method processing (D/H)TML forms?

2000-09-22 Thread J.R. van Ossenbruggen

Hi, 

I want to pass input from a DTML form to an external method.  So far
the DTML is actually just a plain HTML page:

  
  
  
 

If I fill in "test" in the form, my external method is beging called
correctly, e.g. the URL is ../external-method?foobar=test as I
expected.

But how do I access that "foobar" value from Python in the external
method?

It is currenly defined like:

 def external-method(self):
# is there a self.foobar or something?
...

Any help will be highly appriciated by this Zope newbie!

Cheers,

Jacco

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

2000-09-22 Thread Steve Alexander

Danny William Adair wrote:
> 
> Unfortunately, yes he does.

Time to step through your site in the debugger then. Or, instrument
HTTPRequest.py and HTTPResponse.py to see what is getting called when.

--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net

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




Re: [Zope] standard_error_message confusion

2000-09-22 Thread Danny William Adair

Unfortunately, yes he does.

Danny

-Ursprungliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Im Auftrag von
Steve Alexander
Gesendet: Freitag, 22. September 2000 16:51
An: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Betreff: Re: [Zope] standard_error_message confusion


Danny William Adair wrote:
>
> My standard error_message is ok.
>
> I think my problem with LoginManager and Membership can be cut down to
this:
>
> If I take away all permissions from a dtml-document for Anonymous, he will
> be correctly prompted for Login using *my* standard_error_message
> ("LoginRequired" is raised) as soon as he tries to access it. _But_, if I
> take away the rights for Anonymous from a _folder_ under which a dtml
> document acquires these security settings, he'll get the hard-coded Zope
> error_message with the login field, instead of my (customized one).
Whassup?

In the latter case, does Anonymous have rights to view your
standard_error_message?

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




[Zope] Problem with properties in inherited ZClasses

2000-09-22 Thread Stephen Simmons

Hi,

I have got stuck with inheritance and properties while writing a simple task
tracking product as a way to learn Zope (using a brand new 2.2.0 with no
other products). My product AdminTools currently has two ZClasses, Folder
and Task.

The ZClass AdminTools:Folder inherits from CatalogAware and ObjectManager.
Folder has a property sheet 'data', with properties 'title' (string) and
'description' (text). The Folder class has methods for displaying info about
the folder and the objects it contains.

I have tried to create another ZClass, AdminTools:Task that inherits from
AdminTools:Folder that adds some task tracking functionality and
uses/overrides the AdminTools:Folder methods for displaying objects. Task
also has a property sheet named 'data' with properties 'title' (string), due
date (date) and owner (string). I tried to add a final property
'description' (text) to AdminTools:Task, but get this error saying it is
already in use:

Invalid property id, description. It is in use.
Traceback (innermost last):
  File D:\Dev\ZopeTestbed\lib\python\ZPublisher\Publish.py, line 222, in
publish_module
  File D:\Dev\ZopeTestbed\lib\python\ZPublisher\Publish.py, line 187, in
publish
  File D:\Dev\ZopeTestbed\lib\python\Zope\__init__.py, line 221, in
zpublisher_exception_hook
(Object: Traversable)
  File D:\Dev\ZopeTestbed\lib\python\ZPublisher\Publish.py, line 171, in
publish
  File D:\Dev\ZopeTestbed\lib\python\ZPublisher\mapply.py, line 160, in
mapply
(Object: manage_addProperty)
  File D:\Dev\ZopeTestbed\lib\python\ZPublisher\Publish.py, line 112, in
call_object
(Object: manage_addProperty)
  File D:\Dev\ZopeTestbed\lib\python\OFS\PropertySheets.py, line 427, in
manage_addProperty
(Object: Traversable)
  File D:\Dev\ZopeTestbed\lib\python\OFS\PropertySheets.py, line 235, in
_setProperty
(Object: Task)
Bad Request: (see above)

I don't understand why I can add the 'title' property to Task but not
'description'. Both 'title' and 'description' are defined in the inherited
class Folder, so they are being treated differently for some reason. A
little while ago, I had the same error while trying to create a property
named 'summary'. At the time, I thought it was because of a clash with the
summary() method of CatalogAwareness. But now I'm confused.

To conclude:

(i) What is going on and how can I fix it?

(ii) When using a ZClass as a base class, do instances inherit any
properties, or do they just get access to the base class's methods? If
ZClasses do inherit properties from parent ZClasses, how do I reach them via
the property sheets?

(iii) Is there a simple way to find out what methods and properties an
object has? I would like to see what it defines, what it inherits and what
it acquires.

___
Stephen Simmons
HealthArena B.V.
phone +31 20 486 0555
mobile +31 6 1505 3086
[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] standard_error_message confusion

2000-09-22 Thread Steve Alexander

Danny William Adair wrote:
> 
> My standard error_message is ok.
> 
> I think my problem with LoginManager and Membership can be cut down to this:
> 
> If I take away all permissions from a dtml-document for Anonymous, he will
> be correctly prompted for Login using *my* standard_error_message
> ("LoginRequired" is raised) as soon as he tries to access it. _But_, if I
> take away the rights for Anonymous from a _folder_ under which a dtml
> document acquires these security settings, he'll get the hard-coded Zope
> error_message with the login field, instead of my (customized one). Whassup?

In the latter case, does Anonymous have rights to view your
standard_error_message?

--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.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] Re: [Zope-PTK] Cannot import DemoPortal.zexp

2000-09-22 Thread Bill Welch

Bet you can't import Wizard.zexp either and the traceback shows the
identical pickled data.

I'm battling a very similar problem and so far I think it's subtle
corruption of the ZODB having to do with ZDiscussion. Note that the
pickled data contains references to ZDiscussion. The pickled data in my
traceback also contains references to ZDiscussion, although it's a
different oid (\023w) and, therefore, record. There're no ZDiscussion
records in DemoPortal.zexp or Wizard.zexp.

At one point, after the nth time removing and reinstalling ZDBase, etal;
DemoPortal and Wizard appeared *without me importing them*. I removed and
reinstalled everything one more time (bad move!). DP and W disappeared and
now import gives Duplicate Class Id.

I think your import actually worked, but ran over somehow and crashed
before the prodcuts could be registered.

I'm in the midst of analyzing my Data.fs. Fsrecover doesn't find any
problems. Tranalyzer has a couple of bugs with versions that I'm working
through. I'll let you know.

Bill.

On Fri, 22 Sep 2000 [EMAIL PROTECTED] wrote to zope-PTK:

>   File /usr/local/zope/lib/python/ZODB/Connection.py, line 154, in __getitem__
> (Info: ('\000\000\000\000\000\000\034\315',
> 
>'(cExtensionClass\012ExtensionClass\012q\001(U\006ZDItemq\002(cZClasses.ZClass\012PersistentClass\012q\003cProducts.ZDBase.ZDiscussions\012ZDItem\012q\004cOFS.SimpleItem\012SimpleItem\012q\005tq\006}q\007(U\004iconq\010UWControl_Panel/Products/ZDiscussion
> 
>s/ZDTopic/propertysheets/methods/ZDItem%20/ziconImageq\011U\012_p_changedq\012K\001U\007__doc__q\013U\021ZDiscussions
> 
>Itemq\014U\006_p_oidq\015U\010\000\000\000\000\000\000\002Lq\016U\011meta_typeq\017U\021ZDiscussions
> 
>Itemq\020U\016propertysheetsq\021(U\010\000\000\000\000\000\000\034\320q\022(NU\010\000\000\000\000\000\000\034\314q\023Qtq\024tq\025QU\012index_htmlq\026cZClasses.Method\012MW\012q\027NRq\030}q\031U$_ZClassMethodPermissionMapperMethod_q\032(U\010\000\000
> 
>\000\000\000\000\034\321q\033(U\016OFS.DTMLMethodq\034cOFS.DTMLMethod\012DTMLMethod\012q\035tq\036tq\037QsbU\016manage_optionsq
> 
>(}q!(U\005labelq"U\012Propertiesq#U\006actionq$U\025manage_propertiesFormq%u}q&am!
> !
> 
>p;(U\005labelq\'U\010Securityq(U\006actionq)U\015manage_accessq*u}q+(h\'U\004Viewq,h)U\012index_htmlq-utq.U\012ziconImageq/(U\010\000\000\000\000\000\000\034\322q0(U\011OFS.Imageq1cOFS.Image\012Image\012q2tq3tq4QU\022__ac_permissions__q5)U\011_p_serialq6U
> 
>\010\0030\226a\274;\204\314q7U\012__module__q8U\031*73biqpAI2QDa2iKPitv57g==q9utq:t.N.'))
> Could not load oid Í, pickled data in traceback info may contain
> clues: (see above)
> 
> -->



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

2000-09-22 Thread Danny William Adair

My standard error_message is ok.

I think my problem with LoginManager and Membership can be cut down to this:

If I take away all permissions from a dtml-document for Anonymous, he will
be correctly prompted for Login using *my* standard_error_message
("LoginRequired" is raised) as soon as he tries to access it. _But_, if I
take away the rights for Anonymous from a _folder_ under which a dtml
document acquires these security settings, he'll get the hard-coded Zope
error_message with the login field, instead of my (customized one). Whassup?

TIA Danny

-Ursprungliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Im Auftrag von
Steve Alexander
Gesendet: Dienstag, 19. September 2000 13:03
An: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Betreff: Re: [Zope] standard_error_message confusion


Danny William Adair wrote:

> Hi all!
>
> I'm using LoginManager to provide for a non-HTTP authentication. A role
> "Member" has access to a folder "Restricted", the
> role "Anonymous" doesn't have any rights at all in this folder. All
objects
> in this folder acquire these security settings.
> So far, so good.
>
> The login form from the LoginManager product raises "LoginRequired" and
> shows the login screen when necessary. Mysteriously, I don't get to see my
> (customized) standard_error_message, but *the* standard error message when
I
> try to access the folder unauthenticated. Now if I give Anonymous the
right
> to "View" in the "Restricted" folder (and therefore view all contained
> objects - which I naturally don't want to do) and explicitly take that
right
> away for index_html, any unauthenticated client trying to access the
folder
> (->index_html) will see *my* standard_error_message (containing the login
> screen).
>
> What is this all about?

Without looking closely at your system, it is hard to say. Perhaps your
standard_error_message is itself causing an error of some kind.
Therefore, you're getting the zope hard-coded error message.

Try commenting out most of your standard_error_message, so that there is
no possible way it could cause an error, then see if you see your
version or the Zope hardcoded version.

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




[Zope] Yihaw problem

2000-09-22 Thread neeloy_saha

Hi all,
I am trying to use the yihaw folder. well I am able to import the
YihawDirectory.zexp and also successfully add a yihaw folder while in the
manage view. In side the yihaw folder Create a faq item. Done that
for e.g : 968388000 (what is systems??)  
clicking on that item generates the following error.I am using zope 2.2.0
Thx and regards.
-neeloy
Error Type: NameError 
Error Value: Catalog  Troubleshooting Suggestions This resource may be
trying to reference a nonexistent object or variable Catalog.  The URL may
be incorrect.  The parameters passed to this resource may be incorrect.  A
resource that this resource relies on may be encountering an error.  For
more detailed information about the error, please refer to the HTML source
for this page.  If the error persists please contact the site maintainer.
Thank you for your patience.
Traceback (innermost last):
  File C:\PROGRA~1\WebSite\lib\python\ZPublisher\Publish.py, line 222, in
publish_module
  File C:\PROGRA~1\WebSite\lib\python\ZPublisher\Publish.py, line 187, in
publish
  File C:\PROGRA~1\WebSite\lib\python\Zope\__init__.py, line 221, in
zpublisher_exception_hook
(Object: CatalogAware)
  File C:\PROGRA~1\WebSite\lib\python\ZPublisher\Publish.py, line 171, in
publish
  File C:\PROGRA~1\WebSite\lib\python\ZPublisher\mapply.py, line 160, in
mapply
(Object: manage_baseproperties)
  File C:\PROGRA~1\WebSite\lib\python\ZPublisher\Publish.py, line 112, in
call_object
(Object: manage_baseproperties)
  File C:\PROGRA~1\WebSite\lib\python\OFS\DTMLMethod.py, line 167, in
__call__
(Object: manage_baseproperties)
  File C:\PROGRA~1\WebSite\lib\python\DocumentTemplate\DT_String.py, line
502, in __call__
(Object: manage_baseproperties)
  File C:\PROGRA~1\WebSite\lib\python\DocumentTemplate\DT_In.py, line 633,
in renderwob
(Object: Catalog(meta_type='Yihaw Pointer'))
  File C:\PROGRA~1\WebSite\lib\python\DocumentTemplate\DT_Util.py, line 337,
in eval
(Object: Catalog(meta_type='Yihaw Pointer'))
(Info: Catalog)
  File , line 0, in ?
NameError: (see above)



___
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] Stack overflow on DEC OSF1 alpha

2000-09-22 Thread Wolfgang Strobl

While browsing through the collector, I noticed 1515: ZServer Bug: Stack 
overflow on DEC UNIX 4.0 E
  
|  Compiled Python 1.5.2 from source using cc compiler(Configure-d with 
| option --with-dec-threads).
|  Compiled and installed from the source zope-2.2.0.
|  Started zope.
|  When trying to access the Quick_start or the Management screen 
| (with superuser and its password) zope stops and a message like 
| tihs is displayed:
|  Stack overflow: pid 19902, proc python, addr 0x140929f58, pc 0x12003a790
|  

About two months ago I got the very same stack overflow, when trying to install 
Zope 2.1.6 on one of our DEC servers.

I finally solved the problem by making the following change to the Makefile, after 
running ./configure:

146c146
< OPT=  -O -Olimit 1500
---
> OPT=   -D_REENTRANT -threads

Disabling optimization alltogether, i.e. removing "-O" finally made the difference 
and got rid of the aformentioned stack overflow. Fiddling with stack sizes didn't 
help in any way, as far as I remember.

This is in slight contradiction to the recommendation given by Brian Lloyd in
http://classic.zope.org:8080/Collector/1515/view and might hint at the slight 
possibility that the stack overflow is just a symtom of an optimizaitiion bug in 
gcc, instead of a too-small stack.  Perhaps somebody more knowlegeable 
about OSF1, alpha and gcc might investigate this further. Personaly, I'm happy 
with my solution: that specific zope instance has an uptime of 64 days now, 
and I don't care much about optimization for that not so heavily used internal 
server anyway.

Context: 

OSF1  V4.0 1229 alpha
gcc 2.95.2

-- 
Wolfgang Strobl, [EMAIL PROTECTED] or [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] Sounds like a good idea...

2000-09-22 Thread Chris Withers

Dennis Nichols wrote:
> 
> Since the standard root User Folder seems to hate being replaced by other
> much-needed-by-me types of UserFolders, I wondered if this would work well
> (using only ZServer) ...
> 
> 1. Use SiteAccess to map mysite.com/ to mysite.com/my/ for all users and
> sub-managers.
> 2. Put a {MySQL,etc,smb,...}UserFolder in /my for all users and sub-managers.
> 
> 3. Use SiteAccess to map big-guy.mysite.com to mysite.com/ for the site
> manager.
> 4. Use the standard root UserFolder only for the site manager login
> (index_html could redirect any errant users).
> 
> This would seem to keep those "other" UserFolders out of the root and allow
> the site manager to easily get at the manage views in the root.
> 
> I'm sorry to ask, but I've found that it takes me a long time to work
> through setting up and trying such things, and then not always knowing if
> it is sound or if I'll find the fatal flaw tomorrow.
> 
> Anybody tried this? Or have an opinion on its soundness?

Seems sensible. We use SiteAccess a lot in the same kindof way. I'm sure
a lot of people do...

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] Patch to let Authorized Exceptions use standard_error_message

2000-09-22 Thread Chris Withers

Andy McKay wrote:
> Chris - you correct the comment says something about this could use
> standard_error_message I did a quick hack of changing the source for
> that file so it looks pretty (of course its totally static). Works for me.

Well can you please, please, please put it in the Collector as a 'bug
with Patch' so everyone else can benefit. :-)

...or at the very least post the patch to the list...

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] FreeBSD and ZMySQLDA product

2000-09-22 Thread Marcos González Castro

Thanks a lot Chris.

I'm going to read it and try to solve the problem. I'm new in Zope but I
think that is a great and powerful tool to make portals in Internet.
Actually we are trying to make one, about alternative music in Spain. If I
have success I'll tell you with a link.

Thanks.

- Original Message -
From: "Chris McDonough" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, September 21, 2000 7:17 PM
Subject: Re: [Zope] FreeBSD and ZMySQLDA product


> Marcos,
>
> Please see http://www.zope.org/Members/mcdonc/PDG/6-1-Security.stx and
read
> the section entitled "The Superuser"...
>



___
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 And Workflow Tool

2000-09-22 Thread Vincent



Hi,
 
 
Does somebody have any 
information about any Zope Workflow Product ? Maybe is there some Work on the 
subject.
 
Thanks
 
Vincent
 


[Zope] evaluation within -tag

2000-09-22 Thread Stefan Doerig

hello 

i had to create a html form where the user can enter his email address
and select over a few check boxes several pdf-files which then get
attached to an email and finally sent to the users address.

1. the problem is a  or a  tag within the
 tag causes an error and so it does not seem possible to
me to evaluate the users input in dtml only. but i have to evaluate
because there are up to twelve files to select.

2. so i wrote an external method which does the job. it works and
creates an fine email with the selected files attached. the only problem
that the pdf files are presented on the web site as well and therefor
integrated in zope and the external method i wrote reads them from the
file system because i could not access the file data in zope from the
external method. so i have the pdfs twice once on the file system and
once in zope.

so, is it possible to access data which are actually in zope through an
external method? is there an easier way around this?


have a nice time

-- stef

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