Re: [Zope] Poor Procedural Programmer Needs OOPish Enlightenment

2001-01-03 Thread Geoffrey L. Wright

[EMAIL PROTECTED] writes:

> Not sure if this is your problem, but since methods don't have namespaces,
> I'm not sure why your code could not be reduced to:
> 
> 
>  
> 
>  
> 

You're right -- this works just as well, and is much cleaner.  And I
figured out my problem while yanking out another unneeded reference to
PARENTS.  In my framset code I had a reference to PARENTS[1] (not
[0]!), so I was forcing Zope to look at the index.html method from the
namespace of the test_site folder.  DOH!

Zope is a funny thing -- it makes some things so much easier, but I
always find myself getting tangled up in stooopid namespace problems
of my own making.  I guess I'm just not used to thinking this way yet.

Many thanks for the assist.

> Sean

//glw


___
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] Non-ASCII-form-input -> HTML-entities?

2001-01-03 Thread Wolfgang Strobl

On 3 Jan 2001, at 22:53, Dieter Maurer wrote:

> I would instead include a "charset" declaration and
> no longer worry about HTML entities for latin 1 characters.
> 
>

This is rendundant. ISO-8859-1 is the default encoding for http, 
anyway, and has ever been.

-- 
Wolfgang Strobl

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

2001-01-03 Thread Michal Seta

Hello all.

I'm a total newbie to Zope (a few days).

I have a problem with getting some results throuh a ZSQL method.
(I've been playing with a sample baseball database that came with
PyGreSQL.)


I have a form that accepts multiple choice:  (generated by the wizard)



Home team

Indians
Blue Jays
White Sox
Red Sox







My ZSQL method, called get_all_from_game is the following:

select * from game
where home_team=


and I have specified 1 argument: home_team
--
the output page: search_data_result looks like that:  (it's been
generated by the wizard)



   

  


(Previous  results)


  

  

  Home team
  Visiting team
  Home team runs
  Visiting team runs
  Game date
  Game number


   


  
  
  
  
  
  


   

  
  

 
 (Next  results)
 

  
   



  There was no data matching this  query.



---

When I select one item in the list I get the results as specified in the
SQL query.  However, I get nothing when I select more than one item.
What am I doing wrong?

Thanks in advance.

MiS


___
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] Poor Procedural Programmer Needs OOPish Enlightenment

2001-01-03 Thread sean . upton

Not sure if this is your problem, but since methods don't have namespaces,
I'm not sure why your code could not be reduced to:


 

 


The namespace of index_html right now is 'edit' (or another folder that
acquires it)

...and...

if the namespace of index_html is 'edit' than the namespace of index.html
will also be, and ergo, the namespace of chunk_dspPrimaryCol will also be
edit (index.html doesn't have a method unto itself), changing your code to:


  

  


Just keep in mind, that any object with a namespace (folders, documents,
certain class instances) that is in the acquisition path can have that
namespace explicitly invokes with .  This only
works for object with a namespace; methods are not acquirable objects, and
though you might call them objects (in a loose sense) they are not objects
in a Zopish sense.

I don't know if my sugestion will work for you, but hopefully it will help.

Sean

=
Sean Upton
Senior Programmer/Analyst
SignOnSanDiego.com
The San Diego Union-Tribune
619.718.5241
[EMAIL PROTECTED]
=


-Original Message-
From: Geoffrey L. Wright [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 03, 2001 3:16 PM
To: [EMAIL PROTECTED]
Subject: [Zope] Poor Procedural Programmer Needs OOPish Enlightenment



or...

"A Cry for Namespace Help"


I seem to have run into one of those Zope namespace issued that's
starting to make me dizzy.

I have a index_html method that displays content conditionally
depending on where it's called.  It looks like this:



  

  


The chunk_editFrameset method also displays the same index.html file in
one of two frames.  This works like a champ.  If I'm in a directory
called edit when this is called, it displays the frameset.  Otherwise,
it displays the index.html directly.

The index.html method is contains a bunch 'o static html plus another
method called chunk_dspPrimaryCol that also conditionally displays
information based on where it's called.  chunk_dspPrimaryCol looks like
this:


  

  


This doesn't work like I'd hoped, since I have to move back up the
namespace stack to find index.html, and by the time I do I'm no longer
in the edit folder.  So I _always_ end up displaying the
chunk_dspPrimaryColPublic method, even if I call the index_html method
from within the edit folder.

What I need (I think) is a way to keep all of this activity in the
edit Folder.  Or I need some other way of solving this problem.  Any
thoughts?  I hope my description was clear enough...


-- 
Geoffrey L. Wright
Developer / Systems Administrator

(907) 563-2721 ex. 4900
http://www.integritysi.com


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

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




[Zope] A bug in Membership product? (member password can be revealed by dtml method accessible by anonymous)

2001-01-03 Thread Dirksen

Hi Bill,

A dtml method with these lines:





will show the password, despite that the methode is accessible by anonymous. Members in
my site is allowed to use dtml method. How can I prevent them from reading others'
properties?

Dirksen

__
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.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] Poor Procedural Programmer Needs OOPish Enlightenment

2001-01-03 Thread Geoffrey L. Wright


or...

"A Cry for Namespace Help"


I seem to have run into one of those Zope namespace issued that's
starting to make me dizzy.

I have a index_html method that displays content conditionally
depending on where it's called.  It looks like this:



  

  


The chunk_editFrameset method also displays the same index.html file in
one of two frames.  This works like a champ.  If I'm in a directory
called edit when this is called, it displays the frameset.  Otherwise,
it displays the index.html directly.

The index.html method is contains a bunch 'o static html plus another
method called chunk_dspPrimaryCol that also conditionally displays
information based on where it's called.  chunk_dspPrimaryCol looks like
this:


  

  


This doesn't work like I'd hoped, since I have to move back up the
namespace stack to find index.html, and by the time I do I'm no longer
in the edit folder.  So I _always_ end up displaying the
chunk_dspPrimaryColPublic method, even if I call the index_html method
from within the edit folder.

What I need (I think) is a way to keep all of this activity in the
edit Folder.  Or I need some other way of solving this problem.  Any
thoughts?  I hope my description was clear enough...


-- 
Geoffrey L. Wright
Developer / Systems Administrator

(907) 563-2721 ex. 4900
http://www.integritysi.com


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




RE: [Zope] Using a multiple_selection property in a product

2001-01-03 Thread Randall F. Kern

Try this:

_properties = (
{'id':'classdays', 'type':'multiple selection','mode':'w',
'select_variable': 'days'},
...)

days = (
'Monday',
'Tuesday',
'Wednesday',
'Thursday',
'Friday'
)

-Randy


-Original Message-
From: Ronald L. Roeber [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 03, 2001 2:48 PM
To: [EMAIL PROTECTED]
Subject: [Zope] Using a multiple_selection property in a product


I am attempting to build a product that will contain some unique
information and access control for services in  support of college
classes. Many, many things are going well...better than expected.
However I am having problems getting the product to correctly recognize
a multiple selection property. The property is the days of the week that
the course is offered. ( Monday-Wednesday-Friday or Tuesday-Thursday, or
any combination thereof)

The DTML for the product creation form contains the following:
---
   Days Course Offered
   
   
Monday
Tuesday
Wednesday
Thursday
Friday
   


in the product class I have tried two tactics (actually more but I'll
confess to only these two)

_properties(
{'id':'classdays',
'type':'multiple_selection','mode':'w'}, ...

RESULT: product installs, but classdays in an "unknown property type"

so I try this:

_properties(
{'id':'classdays', 'type':'multiple
selection','mode':'w'}, ...

RESULT: product installs, however the Properties are unavailable,
furthermore trying to view the properties by clicking on the Properties
tab generates the following Zope error:

Error Type: NameError
Error Value: select_variable

[somewhat helpful troubleshooting suggestions]

Traceback (innermost last):
  File /home/Zope-2.3.0a1-src/lib/python/ZPublisher/Publish.py, line
222, in publish_module
  File /home/Zope-2.3.0a1-src/lib/python/ZPublisher/Publish.py, line
187, in publish
  File /home/Zope-2.3.0a1-src/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
(Object: Traversable)
  File /home/Zope-2.3.0a1-src/lib/python/ZPublisher/Publish.py, line
171, in publish
  File /home/Zope-2.3.0a1-src/lib/python/ZPublisher/mapply.py, line 160,
in mapply
(Object: manage_propertiesForm)
  File /home/Zope-2.3.0a1-src/lib/python/ZPublisher/Publish.py, line
112, in call_object
(Object: manage_propertiesForm)
  File /home/Zope-2.3.0a1-src/lib/python/App/special_dtml.py, line 120,
in __call__
(Object: manage_propertiesForm)
(Info: /home/Zope-2.3.0a1-src/lib/python/OFS/properties.dtml)
  File /home/Zope-2.3.0a1-src/lib/python/DocumentTemplate/DT_String.py,
line 528, in __call__
(Object: manage_propertiesForm)
  File /home/Zope-2.3.0a1-src/lib/python/DocumentTemplate/DT_In.py, line
691, in renderwob
(Object: propertyMap)
  File /home/Zope-2.3.0a1-src/lib/python/DocumentTemplate/DT_Util.py,
line 337, in eval
(Object: hasProperty(select_variable))
(Info: hasProperty)
  File , line 0, in ?
NameError: (see above)
-

I've also tried to use :list with much less success.  Any helpful
suggestions would be appreciated. The solution is not obvious to me.
TIA...

Ron Roeber
University of Nebraska






___
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] Core Session Tracking kudos & namespaces

2001-01-03 Thread Chris McDonough

You're right, Dieter.  I was thinking in Python terms and forgot about DTML
namespace lookup rules.  :-(  Yes, if we had a __getattr__ interface or used
the mapping keyword on the return value of a __getitem__-based session data
object, and if the name was not found in the namespace that is put on the
DTML stack by "with sessiondataobject", it would then be looked up in the
form and cookies namespaces, then it would attempt to be acquired, etc.
Sorry for the misinformation.

So the question becomes: do we want DTML namespace lookup magic or no DTML
namespace lookup magic for names that we attempt to look up in a session
data object?  I don't know the answer.  I'm so sick of magic at this point
that I'm apt to vote "no", but if it affords us some provable real-world
benefits, I could change this vote.  If someone would be kind enough to give
me an example where having DTML namespace lookup magic for names out of a
session data object would be very useful, I'd consider it carefully.

- Original Message -
From: "Dieter Maurer" <[EMAIL PROTECTED]>
To: "Chris McDonough" <[EMAIL PROTECTED]>
Cc: "Bob Sidebotham" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, January 03, 2001 4:50 PM
Subject: Re: [Zope] Core Session Tracking kudos & namespaces


> Chris McDonough writes:
>  > 
>  > Currently, nothing would be acquired, and the  call will
fail
>  > inside of a "with sessiondatamanager" even if we did have a __getattr__
>  > interface to session data objects
> Are you sure?
>
> As I understand it, at least a
>
>
>
> would make available all session data keys as variables,
> if they had a "__getattr__".
>
> If they had a "__getitem__" (maybe, the available "get" is
> already sufficient), then
>
>
>
>
>
> would 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 )
>
>


___
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] Using a multiple_selection property in a product

2001-01-03 Thread Ronald L. Roeber

I am attempting to build a product that will contain some unique
information and access control for services in  support of college
classes. Many, many things are going well...better than expected.
However I am having problems getting the product to correctly recognize
a multiple selection property. The property is the days of the week that
the course is offered. ( Monday-Wednesday-Friday or Tuesday-Thursday, or
any combination thereof)

The DTML for the product creation form contains the following:
---
   Days Course Offered
   
   
Monday
Tuesday
Wednesday
Thursday
Friday
   


in the product class I have tried two tactics (actually more but I'll
confess to only these two)

_properties(
{'id':'classdays',
'type':'multiple_selection','mode':'w'}, ...

RESULT: product installs, but classdays in an "unknown property type"

so I try this:

_properties(
{'id':'classdays', 'type':'multiple
selection','mode':'w'}, ...

RESULT: product installs, however the Properties are unavailable,
furthermore trying to view the properties by clicking on the Properties
tab generates the following Zope error:

Error Type: NameError
Error Value: select_variable

[somewhat helpful troubleshooting suggestions]

Traceback (innermost last):
  File /home/Zope-2.3.0a1-src/lib/python/ZPublisher/Publish.py, line
222, in publish_module
  File /home/Zope-2.3.0a1-src/lib/python/ZPublisher/Publish.py, line
187, in publish
  File /home/Zope-2.3.0a1-src/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
(Object: Traversable)
  File /home/Zope-2.3.0a1-src/lib/python/ZPublisher/Publish.py, line
171, in publish
  File /home/Zope-2.3.0a1-src/lib/python/ZPublisher/mapply.py, line 160,
in mapply
(Object: manage_propertiesForm)
  File /home/Zope-2.3.0a1-src/lib/python/ZPublisher/Publish.py, line
112, in call_object
(Object: manage_propertiesForm)
  File /home/Zope-2.3.0a1-src/lib/python/App/special_dtml.py, line 120,
in __call__
(Object: manage_propertiesForm)
(Info: /home/Zope-2.3.0a1-src/lib/python/OFS/properties.dtml)
  File /home/Zope-2.3.0a1-src/lib/python/DocumentTemplate/DT_String.py,
line 528, in __call__
(Object: manage_propertiesForm)
  File /home/Zope-2.3.0a1-src/lib/python/DocumentTemplate/DT_In.py, line
691, in renderwob
(Object: propertyMap)
  File /home/Zope-2.3.0a1-src/lib/python/DocumentTemplate/DT_Util.py,
line 337, in eval
(Object: hasProperty(select_variable))
(Info: hasProperty)
  File , line 0, in ?
NameError: (see above)
-

I've also tried to use :list with much less success.  Any helpful
suggestions would be appreciated. The solution is not obvious to me.
TIA...

Ron Roeber
University of Nebraska






___
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] Question: How to generate a core file in Solaris 2.6

2001-01-03 Thread Jon Prettyman

I had a similar problem quite some time ago.  I never could get a core
file to generate, but since the crash occured so often, I was able to
attach gdb (GNU debugger) to the process and was able to see the
segmentation violation that was occurring.  I never did figure out why
I couldn't get a core file generated.

-jjp

Michael Best <[EMAIL PROTECTED]> writes:

> I am running Zope 2.1.6 and 2.2.3 under Solaris, and we are having some
> stability problems.  With some previous posts from developers we seem to
> think that it might be a custom product that we are using that contains
> some c code.  We can't really be certain, although we are devising some
> tests to examine that possibility.
> 
> However, since the Zope crashes every few hours, and no core file comes
> out we are at a loss at how to get one.
> 
> We have tried increasing the ulimit in the startup script, but this
> doesn't appear to generate a core.
> 
> Primarily Zope 2.2.3 and Solaris 2.6 (Patched to a couple of months
> ago).
> 
> Help?
> 

___
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: Re: [Zope] Re: decline description (KMM499042C0KM)

2001-01-03 Thread Download.com Support

Thank you for your submission to CNET Download.com.


Unfortunately, we are unable to consider your software for inclusion in 
our library because the description does not give us enough information.
Feel free to resubmit your program with a more complete description, 
according to these guidelines: 

If your program has never been listed on Download.com, we recommend 3 to
5 sentences describing the program's features and functionality. If you 
are updating an existing Download.com title, please provide 1 to 2 
sentences describing specifically what is new in the update. 

For examples of model descriptions, visit the following pages:

http://www.download.com/pc/software/0,332,0-19608-g,1000.html
http://www.download.com/mac/software/0,332,0-48662-g,1000.html

Please do not respond to this message. When you are ready to resubmit 
your software, please do so through our online forms:

http://www.download.com/pc/help/0,331,0-1472,00.html?st.dl.support.sub



Regards,
CNET Support Services
http://home.cnet.com/?tag=st.cn.support.4

*Please include original message in your reply*


Original Message Follows:

WTF?

Chris :-)

"Download.com Support" wrote:
> 
> Hi there,
> 
> Thanks for writing to CNET.
> 
> Regards,
> CNET Support Services
> http://home.cnet.com/?tag=st.cn.support.2
> 
> *Please include original message in your reply*
> 
> Original Message Follows:
> -
> Subject: Sub: U | Zope.org | Zope | Cross-platform | PC:Internet:Site
> Management | cat10070
> 
---
> DOWNLOAD.COM Registration Form:
> 
---
> Title (Update of an existing title):
> 
> Zope
> 
> Version:
> 
> 2.2.2
> 
> Release date:
> ---
> 18-09-2000
> 
> URLs:
> 
> http://www.zope.org/Products/Zope/Products/Zope/2.2.2
> 
> Size:
> --
> 3952206
> 
> License:
> ---
> Free
> 
> Code License:
> ---
> Open source/free
> 
> Uninstaller:
> 
> Yes
> 
> Expiration:
> ---
> --
> 
> Publisher:
> ---
> Zope.org
> 
> Contact:
> ---
> Zope Community
> 
> E-Mail:
> -
> [EMAIL PROTECTED]
> 
> phone:
> -
> 
> Publisher URL:
> 
> http://www.zope.org/
> 
> Developer support link:
> ---
> http://
> 
> Price:
> ---
> 
> Price type:
> ---
> 
> Keywords:
> -
> internet,content management,application server,web development, python
> 
> Description:
> -
> http://www.zope.org/Products/Zope/Products/Zope/2.2.2/CHANGES.txt
> 
> Functionality limitations:
> --
> n/a
> 
> Platform:
> -
> Cross-platform
> 
> Program Type:
> -
> 
> Specific OS:
> -
> cross-platform
> 
> Other requirements:
> ---
> 
> Category:
> -
> PC:Internet:Site Management | cat10070
> 
> Optimized:
> 
> 
> On RegNow.com:
> ---
> 
> RegNow.com link:
> ---
> http://
> 
> 

> ==
> 
> ___
> 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] Core Session Tracking kudos & namespaces

2001-01-03 Thread Dieter Maurer

Chris McDonough writes:
 > 
 > Currently, nothing would be acquired, and the  call will fail
 > inside of a "with sessiondatamanager" even if we did have a __getattr__
 > interface to session data objects
Are you sure?

As I understand it, at least a

   

would make available all session data keys as variables,
if they had a "__getattr__".

If they had a "__getitem__" (maybe, the available "get" is
already sufficient), then


   


would 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] Non-ASCII-form-input -> HTML-entities?

2001-01-03 Thread Dieter Maurer

Markus Kemmerling writes:
 > I would like to have users being able to enter german vowels ä, ö, ü and other 
 >non-ASCII-characters for which HTML-entities exist (ISO 8859-1) into a 
 >form-input-field and have them rendered as HTML-entities by the corresponding var-tag 
 >in the form-handler.
 > 
 > The 'html_quote'-attribute only seems to convert &, <, and > (and quotes?). Of 
 >course I could write my own python-method with a lot of replaces. But that would 
 >probably mean to reinvent a wheel that already exists (this seems to be a rather 
 >common task to me). Or is there a way to do it in DTML?
 > 
 > Any help appreciated.
I would instead include a "charset" declaration and
no longer worry about HTML entities for latin 1 characters.

   


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] Leaking Oracle connections & processes

2001-01-03 Thread Dieter Maurer

Shai Berger writes:
 > We are trying to build a site with Zope and Oracle, and we see again
 > and again a situation where Oracle connections and processes are
 > being leaked: the more we work, the more there are, until we reach
 > Oracle's limit for number of processes. At this point, the Connection
 > objects close on their own, and you can't even open SQL*Plus until
 > Zope is closed or restarted.
We have had this problem, too.

Maybe we still have it but to a much lesser extend.
What we did:

 * increase ZODB's cache size.
   Formerly, Oracle connections have been flushed from
   the cache with a high frequency.

   Apparently, some connections was not closed,
   even though the objects had been flushed from the
   cache.

   This migh be in relation to the "Record" leak closed
   recently (Zope 2.2.5b1).

 * install the latest DCOracle.


I think, the two steps did not remove all our problems,
but had reduced it to an extend we can live with,
until we know more about the problem.

This implies, we are interested in what you may find out.


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] standard_error_message woes!

2001-01-03 Thread Dieter Maurer

Chris Withers writes:
 > Dieter Maurer wrote:
 > > 
 > >   You should be able to make "standard_error_message"s that
 > >   do not generate secondary errors.
 > >   If you fail, a crude minimal error handling should be okay
 > >   as a last resort.
 > 
 > Hmmm... maybe there should be an option on this then? ;-)
I think, someone like GvR would call it "feature bloat" ;-)


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] EVAL DTML?

2001-01-03 Thread Brian Withun


Is it possible to, say, retrieve DTML code from an external database (such
as Sybase) and then have that DTML code render itself?  As I recall there is
a security issue with Zope allowing Python to EVAL dtml..

I am not finding references to this kind of activity online.  Has anyone
accomplished something similar?


Brian Withun


___
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_quote in python methods?

2001-01-03 Thread Jim Washington

Thanks, Andy, Dieter, Chris, Evan for the discussion

What I ended up doing was making a DTML Method called
htmlquote_newlineToBr that looks like:



then calling it from a Python Method like so:

hqnl = self.htmlquote_newlineToBr
myitem=self.fixedLoc['varLoc1']['varLoc2']

print ''
print '%s' % hqnl(theitem=myitem.property1)
print ''

It turned out to be a bit better code than I thought I wanted :)

-- Jim Washington

> - Original Message -
> From: "Jim Washington" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, January 02, 2001 6:32 AM
> Subject: [Zope] html_quote in python methods?
> 
> > I am using Python Methods a lot now.
> >
> > Good:
> > no more  to get to the objects I need. Yay!
> > no more worrying about closing blocks. Yay!
> >
> > OK, when I make a syntax error, there is no help in the traceback.  My
> > Python is getting better and better as a result.
> >
> > To give something back, I have a hint that took me a while to figure
> > out:
> >
> > print '%s' % (self.thevariable)
> > will not work.  The first % needs to be escaped like so:
> >
> > print '%s' % (self.thevariable)
> >
> > Now, can I use html_quote in a Python Method?  I am letting people enter
> > data for redisplay, and I know some Bozo (TM) will somehow put in
> > ""
> > and break the page.
> >
> > Can I keep this from happening?  html_quote does not seem to be in the
> > Python Method namespace.

___
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] case insensitive search?

2001-01-03 Thread Robin Becker

In article , Aleksander Salwa
<[EMAIL PROTECTED]> writes
>On Wed, 3 Jan 2001, Robin Becker wrote:
>
>> Is there an easy way to make the Find tab case insensitive. It seems
>> like a very common need, but I see that FindSupport.py is calling
>> string.find which makes it seem as though this is harder than it should
>> be.
>
>Now, I did it better way. No regular expressions. Just case-insensitive
>search. "Case insensitive" checkbox on "Find" form.
>If you need it - just take a look at an attachment.
>Maybe I will send it to the Collector...
>
>
>[EMAIL PROTECTED], [EMAIL PROTECTED]
>
>/--\
>| `long long long' is too long for GCC |
>\--/
>
>[ A MIME APPLICATION / x-gtar part was included here. ]
>
that looks like a nice way to do it, but I reckon we could make the lambda stuff a bit 
cleverer
ie modify the default find

eg
  if search_caseins:
FINDER = lambda ob,p=lower(obj_searchterm): 
find(lower(ob.PrincipiaSearchSource()),p)
  else:
FINDER = lambda ob,p=obj_searchterm: find(ob.PrincipiaSearchSource(), p)

and then we use

FINDER(ob)


-- 
Robin Becker

___
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] Advice on searching/indexing Word documents?

2001-01-03 Thread Jonothan Farr

This sounds pretty exciting. Sounds like someone should set up a proposal on
dev.zope.org.I'm afraid I wouldn't be able to contribute much development right
now but I'd be willing to help test and participate in discussions.

--jfarr

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, January 03, 2001 8:25 AM
Subject: RE: [Zope] Advice on searching/indexing Word documents?


> I really like the idea of extending OFS:File to support different file
> types, but what I would like to see is something that is
> format/filter/library agnostic.  That is to say, that perhaps the way we
> ought to go about this is to create an API framework that upon upload
> filters the file with a specified filter for its mime-type.

[snip]



___
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] Question: How to generate a core file in Solaris 2.6

2001-01-03 Thread Michael Best

I am running Zope 2.1.6 and 2.2.3 under Solaris, and we are having some
stability problems.  With some previous posts from developers we seem to
think that it might be a custom product that we are using that contains
some c code.  We can't really be certain, although we are devising some
tests to examine that possibility.

However, since the Zope crashes every few hours, and no core file comes
out we are at a loss at how to get one.

We have tried increasing the ulimit in the startup script, but this
doesn't appear to generate a core.

Primarily Zope 2.2.3 and Solaris 2.6 (Patched to a couple of months
ago).

Help?

-- 
Michael Best
Systems Administrator   ph 780-413-6397 x230
Emergence By Designfax 780-433-7548
#200, 11209 Jasper Avenue toll 866-860-2666
Edmonton, Alberta, T5K 0L5

___
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] case insensitive search?

2001-01-03 Thread Andy McKay

> > Is there an easy way to make the Find tab case insensitive. It seems
> > like a very common need, but I see that FindSupport.py is calling
> > string.find which makes it seem as though this is harder than it should
> > be.
>
> Now, I did it better way. No regular expressions. Just case-insensitive
> search. "Case insensitive" checkbox on "Find" form.
> If you need it - just take a look at an attachment.
> Maybe I will send it to the Collector...

The checkbox is good, but surely the patch should be in presentation layer
(dtml-in) and not just in Find Support. My patch fixes it throughout Zope...

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




Re: [Zope] case insensitive search?

2001-01-03 Thread Aleksander Salwa

On Wed, 3 Jan 2001, Robin Becker wrote:

> Is there an easy way to make the Find tab case insensitive. It seems
> like a very common need, but I see that FindSupport.py is calling
> string.find which makes it seem as though this is harder than it should
> be.

Now, I did it better way. No regular expressions. Just case-insensitive
search. "Case insensitive" checkbox on "Find" form.
If you need it - just take a look at an attachment.
Maybe I will send it to the Collector...


[EMAIL PROTECTED], [EMAIL PROTECTED]

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

 caseInsensitiveFind.tgz


Re: [Zope] Problem with SiteAccess

2001-01-03 Thread The Doctor What

* Leonardo Graf ([EMAIL PROTECTED]) [010103 09:16]:
> Hello,
> 
> I'm trying to use the SiteAccess Product as discribed in the HowTo: Using 
> Apache with ZServer (NOT Zope.cgi). Unforunately things don't work as 
> described.
> 
> My ZServer is listening on www.myserver.com:9080/somesite. I would like to 
> be able to access the ZServer through apache via the URL www.somesite.com 
> (to do virtual hosting).
> 
> The ProxyPass directives work well (the pages get served properly), but the 
> URL's in my pages still contain the complete URL's of the ZServer, like 
> http://www.myserver.com:9080/somesite/images/some.gif"> instead 
> of http://www.somesite.com/images/some.gif">. The same is true 
> for normal links. Ok, it's not so bad, things work (no broken links), but 
> it is a little bit ugly. I thought the SiteAccess Product should handle 
> these problems, by putting a SiteRoot object in the somesite folder.
> 
> Or do I have to write an AccessRule ? And how would that look like ?
> 
> Thanks a lot, regards, Leonardo Graf

It sounds like your SiteRoot object doesn't have "Base" (aka the
Base URL) set correctly.

It should be set to:
http://www.somesite.com

The SiteAccess Rule is only needed if you have *multiple* hosts
served out from one host.  You sound like you only have one.

Ciao!

-- 
There is no sweeter sound than the crumbling of your fellow man.
-- Groucho Marx

The Doctor What: A really hip dude   http://docwhat.gerf.org/
[EMAIL PROTECTED]   KF6VNC

___
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] case insensitive search?

2001-01-03 Thread Andy McKay

A less easy way is to patch dtml-in so its allows sorts where it is case
insensitive. Theres a simple patch for this here:

http://www.zope.org/Members/andym/IgnoreCase

Then patch the findResult.dtml, dtml source:

lib\python\OFS\findResult.dtml

line 44: 

This will allow you to fix any management screen/sort using dtml-in to be
case insensitive. There are other options of course.

--
  Andy McKay, Developer.
  ActiveState.


- Original Message -
From: "Robin Becker" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 02, 2001 5:16 PM
Subject: [Zope] case insensitive search?


> Is there an easy way to make the Find tab case insensitive. It seems
> like a very common need, but I see that FindSupport.py is calling
> string.find which makes it seem as though this is harder than it should
> be.
> --
> Robin Becker
>
> ___
> 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] Core Session Tracking & DTML

2001-01-03 Thread Chris McDonough

> Chris McDonough wrote:
>
> > > sessionmanager.SessionData.a
> > >
> > > ...or something similar?
> >
> > Yes.  That's what Bob S. suggested.  What are the benefits of this?
>
> More graceful code that's more 'pythonesque' in Python Scripts:
>
> if sessionmanager.SessionData.a['mykey'] == 1:
> ...as opposed to...
> if sessionmanager.SessionData.get('a')['mykey'] == 1:

The current way is:

if sessiondatamanager.getSessionData()['mykey'] == 1:
.. do something...

I suppose you'd rather see:

if sessiondatamanager.getSessionData().mykey == 1:
.. do something...

Is this really worth it?

> sessionmanager.SessionData.b = 1
> ...as opposed to...
> if sessionmanager.SessionData.set('b',1)

And this is currently:

sessiondatamanager.getSessionData().set('b',1)

You can't do assignment in DTML, and session-tracking needs to be usable
from DTML, so the "ob.attr = val" idiom is out from the get-go.  Another
assumption I'm making is that  "there should only be one way to do it".  I'd
rather not have both __setattr__ and .set work for session data objects,
because it's confusing and doesn't buy anything at all other than a couple
keystrokes.



___
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] Core Session Tracking & DTML

2001-01-03 Thread Chris Withers

Chris McDonough wrote:
> 
> You can't do assignment in DTML, and session-tracking needs to be usable
> from DTML, so the "ob.attr = val" idiom is out from the get-go.  Another
> assumption I'm making is that  "there should only be one way to do it".  I'd
> rather not have both __setattr__ and .set work for session data objects,
> because it's confusing and doesn't buy anything at all other than a couple
> keystrokes.

Fair enough :-)

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] Core Session Tracking & DTML

2001-01-03 Thread Chris McDonough

> Chris McDonough wrote:
>
> > > sessionmanager.SessionData.a
> > >
> > > ...or something similar?
> >
> > Yes.  That's what Bob S. suggested.  What are the benefits of this?
>
> More graceful code that's more 'pythonesque' in Python Scripts:
>
> if sessionmanager.SessionData.a['mykey'] == 1:
> ...as opposed to...
> if sessionmanager.SessionData.get('a')['mykey'] == 1:

The current way is:

if sessiondatamanager.getSessionData()['mykey'] == 1:
.. do something...

I suppose you'd rather see:

if sessiondatamanager.getSessionData().mykey == 1:
.. do something...

Is this really worth it?

> sessionmanager.SessionData.b = 1
> ...as opposed to...
> if sessionmanager.SessionData.set('b',1)

And this is currently:

sessiondatamanager.getSessionData().set('b',1)

You can't do assignment in DTML, and session-tracking needs to be usable
from DTML, so the "ob.attr = val" idiom is out from the get-go.  Another
assumption I'm making is that  "there should only be one way to do it".  I'd
rather not have both __setattr__ and .set work for session data objects,
because it's confusing and doesn't buy anything at all other than a couple
keystrokes.



___
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] Advice on searching/indexing Word documents?

2001-01-03 Thread sean . upton

I really like the idea of extending OFS:File to support different file
types, but what I would like to see is something that is
format/filter/library agnostic.  That is to say, that perhaps the way we
ought to go about this is to create an API framework that upon upload
filters the file with a specified filter for its mime-type.  Perhaps
creating a generic base class that implements a generic API for filtering a
file, from which to extend by inheriting more specific classes for files of
particular types or groups (fine grained to mime-type or grouped in
category, eg. "Illustration"). 

Having such a generic framework would enable Zope to be an excellent
platform for digital asset management; Suppose you had a class for all files
for a particular purpose, and those files would always be of a partiaular
set of mime-types, like Illustrator, PDf, or postscript. For example, if
someone working at a newspaper creates a new file class instance called
"DisplayAd," which is used for postscript files with embedded fonts,
containing specific text, a filter set up as part of the extended class for
DisplayAd file would detect the type of file, determine it was PDF, and
filter out the text, and the face names of the embedded fonts.  If the file
was a PDF or an AI file, it would then run the appropriate filter.

It might also be nice to have a extended class (inherited from file) that
works for all types, and keeps some sort of configurable plugin registry of
sorts, so that we can create plugin classes for specific mime-types, but
only have to use one class for the objects themselves.  This might be more
practical.

One thing that seems important: creating an API like this could allow us to
write filter "plugins" in a variety of Zope supported configs, like
completely in python, a python class extending a C shared library, something
written in a combination of C/Lex, or the python-based plex scanner that was
mentioned earlier - for that matter, even proprietary user-space binaries
called via python code might be fair game...

I really think that this idea has potential as a project, and would be
willing to contribute.

Sean

-Original Message-
From: Bjorn Stabell [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 02, 2001 10:07 PM
To: [EMAIL PROTECTED]
Subject: RE: [Zope] Advice on searching/indexing Word documents?


This is something I've been longing for a long time.  Wvare is cool, and
it should also be able to access properties of many Windows (OLE)
documents, not just Word documents.

I've been thinking about extending the File class so that it becomes
aware of the different file types and allows access to (read/write) meta
data and indexing of the files' content.  If we can setup a nice
framework for it, I'm sure a lot of people could contribute code for
specific file formats.

Bye,
-- 
Bjorn

-Original Message-
From: Jens Vagelpohl [mailto:[EMAIL PROTECTED]]
Posted At: Wednesday, January 03, 2001 11:28
Posted To: Zope List
Conversation: [Zope] Advice on searching/indexing Word documents?
Subject: Re: [Zope] Advice on searching/indexing Word documents?


if you're on linux check out WVWare:

http://www.wvware.com

it's a C library that handles all word doc formats since 6.0 or so

jens


On Tue, 02 Jan 2001, Bowyer, Alex wrote:
> Our company has a repository of staff CVs (Resumes) as Word Documents
and I
> am about to embark on creating a new feature for our Zope Intranet to
allow
> project managers to search those documents for keywords such as
particular
> skills or projects.
>
> I am thinking about several possibilities such as a skills/CVs
database
> linked in via ODBC, or some task that converts the Word documents to
text
> files which can then be searched by Zope (I think Zope can do this,
and I
> assume it can't search Word format directly?).
>
> Has anyone ever approached a similar problem, does anyone have any
tips on
> how to index/search a load of documents in Zope?
>
> Any tips/suggestions/comments would be most welcome.
>
> Thanks,
>
> Alex


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


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

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




RE: [Zope] (no subject)

2001-01-03 Thread Mohan Baro

If its not ZOPE hosting ... don't send it here!!

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
[EMAIL PROTECTED]
Sent: Wednesday, January 03, 2001 2:00 AM
To: [EMAIL PROTECTED]
Subject: [Zope] (no subject)


GET YOUR OWN 100 MEG WEBSITE FOR ONLY $11.95 PER MONTH TODAY!

STOP PAYING $19.95 or more TODAY for your web site, WHEN YOU CAN 
GET ONE FOR ONLY $11.95 PER MONTH!

DO YOU ALREADY HAVE A WEBSITE? ALL YOU HAVE TO DO IS TRANSFER THE 
DOMAIN TO OUR SERVERS AND UPLOAD YOUR DATA AND YOU ARE READY TO 
GO! YOUR NEW WEB SPACE CAN BE CREATED INSTANTLY WITH JUST A 
SIMPLE PHONE CALL TO  OUR OFFICE.

YOU CAN CHANGE THE DESIGN OF YOUR SITE AS MUCH AS YOU WANT with 
no extra charge!  UNLIMITED TRAFFIC -- no extra charge!

FRONT PAGE EXTENSIONS are FULLY SUPPORTED.

A SET UP FEE OF $40.00 APPLIES for FIRST TIME CUSTOMERS.

ALL FEES PREPAID IN ADVANCE FOR THE YEAR PLUS A $40.00 SET UP 
CHARGE.

FOR DETAILS CALL 1 888 248 0765  if you are outside the USA,
please fax 240 337 8325

Webhosting International

 
 
 
 
 
 
 
 
 
 
 
 
 

___
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] First Project

2001-01-03 Thread Michael Bernstein

Koch Marc wrote:
> 
> Please let me ask your advice on how to realize the following:
> 
> I would like to build an application for handling development requests.
> These requests should be submitted by our end-users through our Intranet to
> my team. We then look at each new request and dispatch it to one or more
> development team for approval (or rejection). At this stage:
> - The end-user should be able to see that his request has been dispatched
> - The concerned development team(s) should see that there is a new request,
> they could look at it and accept it or reject it and give a comment
> When all the teams have replied, my team would add a summarized comment to
> the request and the end-user should be able to see this. At this point, the
> request handling for my team is at its end.
> 
> Requests should be submitted by a Web-Form and may contain an arbitrary file
> (eg. Word Document).
> The end-user and the development team should see only what they are
> concerned with.
> My team needs a global overview.

Check out the Tracker product:

http://www.zope.org/Members/klm/TrackerWiki/FrontPage

HTH,

Michael Bernstein.

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




Re: [Zope] First Project

2001-01-03 Thread Marcin Kasperski

Koch Marc wrote:
> 
> Thank you,
> 
> ...for your tip with the PARENTS[0].objectValues('File')
> 
> Please let me ask your advice on how to realize the following:
> 
> I would like to build an application for handling development requests.
> These requests should be submitted by our end-users through our Intranet =
> to
> my team. We then look at each new request and dispatch it to one or more
> development team for approval (or rejection). At this stage:
> - The end-user should be able to see that his request has been dispatched
> - The concerned development team(s) should see that there is a new reques=
> t,
> they could look at it and accept it or reject it and give a comment
> When all the teams have replied, my team would add a summarized comment t=
> o
> the request and the end-user should be able to see this. At this point, t=
> he
> request handling for my team is at its end.
> 

Seems you search for the standard enhancement/bug management software

Before you start developing it yourself, take a look at the products
like bugzila, jitterbug or gnats (to mention just a few, open-source
solutions).



--
http://www.mk.w.pl /
 Marcin.Kasperski | Kącik porad dla programistów: 
   @softax.com.pl |   http://www.softax.com.pl/prywatne/marcink/porady
 @bigfoot.com  \

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




Re: [Zope] Lobbying (was: [Zope] html_quote in python methods?)

2001-01-03 Thread Chris Withers

Evan Simpson wrote:
> 
> From: Chris Withers <[EMAIL PROTECTED]>
> > 
> 
> Well, in Python Scripts at least, you can do::
> 
>   from Products.PythonScripts.standard import special_formats

Hmmm... can you do something similar to perform an XML-RPC call into
another Zope instance?

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] Lobbying (was: [Zope] html_quote in python methods?)

2001-01-03 Thread Evan Simpson

From: Chris Withers <[EMAIL PROTECTED]>
> 

Well, in Python Scripts at least, you can do::

  from Products.PythonScripts.standard import special_formats
  url_quote = special_formats['url-quote']
  return url_quote("")

It's not great, but it's something.

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 )




[Zope] Problem with SiteAccess

2001-01-03 Thread Leonardo Graf

Hello,

I'm trying to use the SiteAccess Product as discribed in the HowTo: Using 
Apache with ZServer (NOT Zope.cgi). Unforunately things don't work as 
described.

My ZServer is listening on www.myserver.com:9080/somesite. I would like to 
be able to access the ZServer through apache via the URL www.somesite.com 
(to do virtual hosting).

The ProxyPass directives work well (the pages get served properly), but the 
URL's in my pages still contain the complete URL's of the ZServer, like 
http://www.myserver.com:9080/somesite/images/some.gif"> instead 
of http://www.somesite.com/images/some.gif">. The same is true 
for normal links. Ok, it's not so bad, things work (no broken links), but 
it is a little bit ugly. I thought the SiteAccess Product should handle 
these problems, by putting a SiteRoot object in the somesite folder.

Or do I have to write an AccessRule ? And how would that look like ?

Thanks a lot, regards, Leonardo Graf


___
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] Leaking Oracle connections & processes

2001-01-03 Thread Shai Berger


Hi guys,

We are trying to build a site with Zope and Oracle, and we see again
and again a situation where Oracle connections and processes are
being leaked: the more we work, the more there are, until we reach
Oracle's limit for number of processes. At this point, the Connection
objects close on their own, and you can't even open SQL*Plus until
Zope is closed or restarted.

We use Oracle's default limit on the number of processes, which is 50.
We have about three users (developers), two Oracle connections in the
application (one for SqlSessions and one for other data), and although
we use some devious multithreading (some of our transactions call an
external method which essentially URLRetrieve()s a URL from our own
Zope server in a separate thread), 50 open connections should be more 
than enough. I have checked a little before the disaster, and it seems
that not all those processes actually have connections; the problem
may be unrelated to open connections, but just to processes.

We do one fishy thing that may also be related: We keep some long raw
data; we keep it all in one table, and other tables which need long
columns hold pointers (indices) into this table. To put data into this
table from Zope, we use an external method SaveLONG, which uses the 
database connection to access the DB (in order to use the 
transactionality of the whole thing). We use it in ZSQL methods as 
follows:


INSERT INTO items (
field, 
long_field_ptr
) VALUES (


)


SaveLONG saves the long value in the long data table and returns
its index in the table.
The source for SaveLONG is this. It relies on a DB trigger to
populate the LONG_ID field from a sequence.


long_table_name = 'LONG_DATA'
long_column_name = 'LONG_DATA'
long_seq_name = 'SEQ_LONG_DATA'
index_column_name = 'LONG_ID'

save_command = '''
INSERT INTO %s (%s)
VALUES (:content)
'''% (long_table_name,long_column_name)

get_key_command = 'SELECT %s.currval FROM dual' % long_seq_name

#
# Put a long raw on the DB
#
def SaveLONG(self,connection, content):
connection = connection._v_database_connection.db # the real DB
connection object
connection.execute(save_command, content=dbi.dbiRaw(content))
connection.execute(get_key_command)
return connection.fetchone()[0]


We're using Zope 2.2.4 with ZOracleDA 2.1.0 and DCOracle 1.3.2
with Oracle 8.0.5 on an intel-linux (RH).

Can anyone see anything wrong with what we're doing? Is anyone else
experiencing this kind of problems?

Thanks in advance,
Shai

___
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] Question on __roles__

2001-01-03 Thread Chris Withers

Cees de Groot wrote:
> 
> I've tried to trace down what happens, and found that ZPublisher.BaseRequest
> has a funny bit: when trying to find out the necessary roles on an object,
> it first tries to get the attribute '__roles__' on the subobject, and then
> combines the current entry name plus '__roles__' and tries to get that from
> the subobject. However, it seems to me that the latter getattr() needs to be
> done on the object, not the subobject - at least, my tracing seems to indicate
> that if it walks down, say 'Customer/53/index_html', that at a certain moment
> during the traversal
> 
> object = 
> subobject = 
> entry_name = 'index_html'
> 
> Here, looking up "index_html__roles__" in the subobject, the index_html
> method, doesn't seem to be very useful - it is expected to be found on
> the containing Customer instance. And indeed, if I change line 386 in
> BaseRequest.py from:
> 
> roles = getattr(subobject, entry_name+'__roles__', roles)
> 
> to:
> 
> roles = getattr(object, entry_name+'__roles__', roles)
> 
> things work as I expect them to work.
> 
> As this is such a core piece of Zope, it seems quite unlikely to me
> that I found a bug here (although an older version of ZPublisher does
> check object instead of subobject). The only thing I can think of is
> that Acquisition should work for the getattr() and somehow I managed
> to disable Acquisition on these instances.

This sounds like a bug to me. I've had very similar problems to this
with Squishdot.

> > Jim Fulton wrote:
> > >
> > > Chris Withers wrote:
> > > >
> > > > self.id = id
> > > > self.title = 'Title!'
> > > > self.anInt = 0
> > > > self.aString = 'testing'
> > > >
> > > None of the
> > > values above can have a __roles__ attribute, so they are covered
> > > by assertions made in their containers.

Jim,

This thread might well be the same problem, if it was looking for roles
on the subobject, and the subobject is Acquisition.Explicit or not
Acquisition subclassing at all, it wouldn't find any roles there and
wouldn't get the ones on the object through acquisition, hence raising
the Authentication box that was causign problems in Squishdot.

Here's the other threads on the problem for a bit more context:
http://zope.nipltd.com/public/lists/dev-archive.nsf/Main?SearchView=&Query=RFClarification
http://zope.nipltd.com/public/lists/dev-archive.nsf/Main?SearchView=&Query=__ac_permissions__
http://zope.nipltd.com/public/lists/dev-archive.nsf/ByKey/5177D01752683CA1

Does this all make any sense or have I lost the plot again?

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] Core Session Tracking & DTML

2001-01-03 Thread Chris Withers

Chris McDonough wrote:

> > sessionmanager.SessionData.a
> >
> > ...or something similar?
> 
> Yes.  That's what Bob S. suggested.  What are the benefits of this?

More graceful code that's more 'pythonesque' in Python Scripts:

if sessionmanager.SessionData.a['mykey'] == 1:
...as opposed to...
if sessionmanager.SessionData.get('a')['mykey'] == 1:

sessionmanager.SessionData.b = 1
...as opposed to...
if sessionmanager.SessionData.set('b',1)

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] Core Session Tracking & DTML

2001-01-03 Thread Chris McDonough

> Chris McDonough wrote:
> >
> >   
> > 
> >   
> > 
> >   
>
> I would have thought this stuff would be better in a python script:
>
> sessionmanager.getSessionData.get('a')

Yeah, I'm jus using DTML because it's the more pathological case and needs
to look pretty in DTML first.  :-)

>
> ...since it is definitely 'logic'
>
> Would it be posible to make that even nicer and have whatever
> getSessionData is implement __getattr__ so you could do:
>
> sessionmanager.SessionData.a
>
> ...or something similar?

Yes.  That's what Bob S. suggested.  What are the benefits of 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 )




Re: [Zope] standard_error_message woes!

2001-01-03 Thread Chris Withers

albert boulanger wrote:
> 
>  You should be able to make "standard_error_message"s that
>  do not generate secondary errors.
>  If you fail, a crude minimal error handling should be okay
>  as a last resort.
> 
> The Lisp system on Symbolics had both. It had a too-many-error-frame
> detector for the error reporter that used a crude system when
> triggered. It would be nice that the crude error messages be settable
> in a way that is hardended, perhaps env vars?

I like the idea of a text file for these, rather than being embedded in
the python source. Surely that can't be too hard?
(Squishdot does this already for some things ;-)

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] standard_error_message woes!

2001-01-03 Thread albert boulanger


 You should be able to make "standard_error_message"s that
 do not generate secondary errors.
 If you fail, a crude minimal error handling should be okay
 as a last resort.

The Lisp system on Symbolics had both. It had a too-many-error-frame
detector for the error reporter that used a crude system when
triggered. It would be nice that the crude error messages be settable
in a way that is hardended, perhaps env vars?

FYI,
Albert Boulanger
[EMAIL PROTECTED]
http://www.vpatch.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] First Project

2001-01-03 Thread Koch Marc

Thank you,

...for your tip with the PARENTS[0].objectValues('File')

Please let me ask your advice on how to realize the following:

I would like to build an application for handling development requests.
These requests should be submitted by our end-users through our Intranet to
my team. We then look at each new request and dispatch it to one or more
development team for approval (or rejection). At this stage:
- The end-user should be able to see that his request has been dispatched
- The concerned development team(s) should see that there is a new request,
they could look at it and accept it or reject it and give a comment
When all the teams have replied, my team would add a summarized comment to
the request and the end-user should be able to see this. At this point, the
request handling for my team is at its end.

Requests should be submitted by a Web-Form and may contain an arbitrary file
(eg. Word Document).
The end-user and the development team should see only what they are
concerned with.
My team needs a global overview.

Do I need a database or would basic Zope objects work? Where to begin? I
feel that there should be a 'Request' object (document or method?) with a
few methods for adding, dispatching, ...

Thanks for any advice

[One way of learning is by doing]

-

Un courrier électronique n'engage pas son émetteur. Tout message susceptible de 
comporter un engagement doit être confirmé par un écrit dûment signé.

An electronic message is not binding on its sender. Any message referring to a binding 
engagement must be confirmed in writing and duly signed.

Ein elektronischer Brief bzw. eine elektronische Nachricht ist für den Absender nicht 
verbindlich. Jede Nachricht,  welche eine Verpflichtung beinhaltet, muß schriftlich 
bestätigt und ordnungsgemäß unterzeichnet werden.

-



___
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] Lobbying (was: [Zope] html_quote in python methods?)

2001-01-03 Thread Erik Enge

[Chris Withers]

| Even if it did, what harm would it do?

Denial of Service attacks was what I though of.  But it's a non-issue
I guess.

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

2001-01-03 Thread Rik Hoekstra


I'm new to Zope and while 'playing' around I wondered about the following:

I've created a DTML method (called MyListFiles) that lists the 'File'
objects contained in a folder:

Now when I create a DTML document and call this method like this:



it produces no output.


Because DTML Documents are object of their own and DTML Methods are not.
THis means that if you are trying to get the 'objectValues' from the DTML
Method it will get them from the containing object, a Folder. If you try to
get them from a DTML Document, it will not return anything, as the DTML
Document holds no other objects. The solutions is to make the DTML Method
call its parent's (=containing object) objectValues. For example (untested):





Rik


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




RE: [Zope] objectValues Question

2001-01-03 Thread Cornelis J. de Brabander

By applying your MyListFiles method within the context of your DTML Document
you are asking for files that are contained by your DTML Document and there
are none. By 'viewing' your method in the management interface you are
applying your method within the context of the folder that contains it, and
that folder apparently contains file's. If you want to use your method
within a DTML Document with the very same result you could use for instance:



See also:
http://www.zope.org/Members/michel/HowTos/DTMLMethodsandDocsHowTo

Cornelis J. de Brabander
==
Department of Education, Leiden University
P.O.Box 9555, NL-2300 RB Leiden
+31 71 527 3422/3401
[EMAIL PROTECTED]
==

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Koch
> Marc
> Sent: woensdag 3 januari 2001 12:16
> To: '[EMAIL PROTECTED]'
> Subject: [Zope] objectValues Question
>
>
> Hi,
>
> I'm new to Zope and while 'playing' around I wondered about the following:
>
> I've created a DTML method (called MyListFiles) that lists the 'File'
> objects contained in a folder:
>
> 
> This works as expected when I run it using the 'View' tab.
>
> Now when I create a DTML document and call this method like this:
>
> 
>
> it produces no output.
>
> Why?
>
>
> Thank You for any help
>
> -
>
> Un courrier électronique n'engage pas son émetteur. Tout message
> susceptible de comporter un engagement doit être confirmé par un
> écrit dûment signé.
>
> An electronic message is not binding on its sender. Any message
> referring to a binding engagement must be confirmed in writing
> and duly signed.
>
> Ein elektronischer Brief bzw. eine elektronische Nachricht ist
> für den Absender nicht verbindlich. Jede Nachricht,  welche eine
> Verpflichtung beinhaltet, muß schriftlich bestätigt und
> ordnungsgemäß unterzeichnet werden.
>
> -
>
>
>
> ___
> 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] Lobbying (was: [Zope] html_quote in python methods?)

2001-01-03 Thread Erik Enge

[Chris Withers]

| 

What about security issues?  Wouldn't this also allow those methods to
be called TTW by any user?

___
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] Lobbying (was: [Zope] html_quote in python methods?)

2001-01-03 Thread Chris Withers

Erik Enge wrote:
> 
> [Chris Withers]
> 
> | 
> 
> What about security issues?  Wouldn't this also allow those methods to
> be called TTW by any user?

No.

Even if it did, what harm would it 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 )




Re: [Zope] Lobbying (was: [Zope] html_quote in python methods?)

2001-01-03 Thread Morten W. Petersen

[Chris Withers]

| I'll second this. It'd be _so_ nice...
| 
| ever wanted to do:
| 
| 

I totally agree.

-Morten

___
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] Industry customer lists

2001-01-03 Thread Luis Botelho




This email  is to request information on your company for our on line 
directory and introduce you to our company Repharm. 
Best Regards, Dianne Edwards Tel:  
905-721-8456 Fax:  
905-721-1471 email:  
[EMAIL PROTECTED] 
Repharm has the following installed customer databases and services 
available to increase your sales. 
ERP: 
BAAN JD Edwards 
Lawson Marcam 
Oracle Applications Peoplesoft QAD (Worldwide) 
SAP SSA 
Symix 
CRM: 
Clarify Pivotal 
Siebel 
SUPPLY CHAIN: 
I2 Manugistics 
Synquest 
HARDWARE: 
AS400 OS390 
HP SUN 
DESKTOP 
APPLICATIONS: Corel 
Lotus Notes Microsoft 
COMMUNICATIONS: 
ASP’s CLECS 
ISP’s 
E-COMMERCE: 
.com Directory Software 
Directory Consultant Directory 
CFO List CIO 
List 
INDUSTRY SPECIFIC 
LISTS: Agriculture, Forestry and 
Fishing Communications Construction Finance, Insurance and Real 
Estate Manufacturing Mining Public Administration 
Retail Trade Services Transportation 
Utilities Wholesale 
Trade 
FRONT OFFICE 
SERVICES: We offer the following 
Front Office Services: 

  Fax Campaigns 
  Telemarketing 
  Direct Mail Customer 
  Satisfaction Surveys


Re: [Zope] Non-ASCII-form-input -> HTML-entities?

2001-01-03 Thread Toby Dickenson

On Wed, 3 Jan 2001 10:33:20 +0100, "Markus Kemmerling"
<[EMAIL PROTECTED]> wrote:

>I would like to have users being able to enter german vowels

Your suggested solution is a good one if you know all your users are
german, all using the same browser, all with the correct german
configuraton.

If not, I strongly recommend using pages encoded in utf-8, and storing
your field values as unicode. Everything will then work happily for
non-germans too.

Standard Zope can't do this yet, you will need the patches at
http://www.zope.org/Members/htrd/wstring

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] Lobbying (was: [Zope] html_quote in python methods?)

2001-01-03 Thread Chris Withers

Dieter Maurer wrote:
> 
> Jim Washington writes:
>  > Can I keep this from happening?  html_quote does not seem to be in the
>  > Python Method namespace.
> Please help lobbying that the functionality of all
> "dtml-var" attributes are exposed as standard functions.
> 
> The functions are there already, just not exposed to DTML
> and PythonScripts.

I'll second this. It'd be _so_ nice...

ever wanted to do:



:-)

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] standard_error_message woes!

2001-01-03 Thread Chris Withers

Dieter Maurer wrote:
> 
>   You should be able to make "standard_error_message"s that
>   do not generate secondary errors.
>   If you fail, a crude minimal error handling should be okay
>   as a last resort.

Hmmm... maybe there should be an option on this then? ;-)

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] objectValues Question

2001-01-03 Thread Koch Marc

Hi,

I'm new to Zope and while 'playing' around I wondered about the following:

I've created a DTML method (called MyListFiles) that lists the 'File'
objects contained in a folder:


This works as expected when I run it using the 'View' tab.

Now when I create a DTML document and call this method like this:



it produces no output.

Why?


Thank You for any help

-

Un courrier électronique n'engage pas son émetteur. Tout message susceptible de 
comporter un engagement doit être confirmé par un écrit dûment signé.

An electronic message is not binding on its sender. Any message referring to a binding 
engagement must be confirmed in writing and duly signed.

Ein elektronischer Brief bzw. eine elektronische Nachricht ist für den Absender nicht 
verbindlich. Jede Nachricht,  welche eine Verpflichtung beinhaltet, muß schriftlich 
bestätigt und ordnungsgemäß unterzeichnet werden.

-



___
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] (no subject)

2001-01-03 Thread lcdsl

GET YOUR OWN 100 MEG WEBSITE FOR ONLY $11.95 PER MONTH TODAY!

STOP PAYING $19.95 or more TODAY for your web site, WHEN YOU CAN 
GET ONE FOR ONLY $11.95 PER MONTH!

DO YOU ALREADY HAVE A WEBSITE? ALL YOU HAVE TO DO IS TRANSFER THE 
DOMAIN TO OUR SERVERS AND UPLOAD YOUR DATA AND YOU ARE READY TO 
GO! YOUR NEW WEB SPACE CAN BE CREATED INSTANTLY WITH JUST A 
SIMPLE PHONE CALL TO  OUR OFFICE.

YOU CAN CHANGE THE DESIGN OF YOUR SITE AS MUCH AS YOU WANT with 
no extra charge!  UNLIMITED TRAFFIC -- no extra charge!

FRONT PAGE EXTENSIONS are FULLY SUPPORTED.

A SET UP FEE OF $40.00 APPLIES for FIRST TIME CUSTOMERS.

ALL FEES PREPAID IN ADVANCE FOR THE YEAR PLUS A $40.00 SET UP 
CHARGE.

FOR DETAILS CALL 1 888 248 0765  if you are outside the USA,
please fax 240 337 8325

Webhosting International

 
 
 
 
 
 
 
 
 
 
 
 
 

___
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] Bad Zope hack (was: [Zope] A subclass from PortalMember ofMembership Product and ObjectManager won't list contained objects) Membership Product and ObjectManager won't list contained objects)

2001-01-03 Thread Dieter Maurer

Dirksen writes:
 > My site is installed with the Membership system. I want to store some photos in each
 > member. So I create a new member ZClass, subclassing PortalMember and ObjectManager, 
 >and
 > set the 'manage_main' as the main view. Under the instance of this new member 
 >ZClass, I
 > can add images, but I can't find them! 'objectItems' always return None. Yet the 
 >image
 > file is there. I can edit their properties as in
 > '/test/acl_users/jay/photo1/manage_main', but '/test/acl_users/jay/manage_main' just
 > won't show a thing!
I fear this is an acquisition weakness or a bug in how it is used:

  I some cases, one does not want that a name is acquired.

  It would be nice, if there were some declaration telling
  the acquisition machinery about this fact.
  I do not know, whether there is such a mechanism.
  If it is, then some Zope developpers did not know about
  it.

  To prevent acquisition, many Zope objects provide
  new definitions for the unwanted attributes.
  For example, "SimpleItem.Item" defines "objectValues"
  (and friends) to prevent them from being acquired
  from the containing folder.

  This hack does not play well with inheritance, however!

  If in your case, "PortalMember" provides empty
  "object*" methods, the correct "ObjectManager"
  methods will not be found.
  You may try to switch the inheritance order.

  However, I fear, the problem is already in "ZObject",
  the order of which can not be changed.


Hope, that in some future time, this hack disappears.


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-in: total??

2001-01-03 Thread Dieter Maurer

Edwin Martin writes:
 > I'm making a generic DTML-method which shows a bar like
 > AltaVista does:
 > 
 > [ < previous] [1] [2] [3] [4] [next > ]
 > 
 > I need to know the number of rows the database returned.
 > 
 > In appendix A of the Zope book, I see I can use total-name etc.
 > 
 > How can I get the total number of rows, independent of
 > column names?
 > 
 > Can I do it without rewriting the SQL-queries?
You can.

It is even prepared for you:

  "dtml-in" defines variables "previous-batches" and
  "next-batches" describing all previous and following
  batches.

It you do not like this prepared solution, you
can use "sequence-length", another "dtml-in" defined
variable, to access the length of the sequence.


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] Zope eating CPU/RAM - how do I find the culprit?

2001-01-03 Thread Dieter Maurer

Cees de Groot writes:
 > Jon Prettyman <[EMAIL PROTECTED]> said:
 > >If you are using ZSQLMethods and your database returns column names in
 > >one case (UPPER) but you reference them with another (lower) it
 > >appears that instances of SQLAlias get leaked.
 > >
 > Thanks for the info (and another reason to keep SQL names in lowercase ;-)).
Be careful!

Some databases convert them to uppercase!
Oracle is a prominent example!

It took me once some ours to locate a bug resulting
from this "feature".


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] Lobbying (was: [Zope] html_quote in python methods?)

2001-01-03 Thread Dieter Maurer

Jim Washington writes:
 > Can I keep this from happening?  html_quote does not seem to be in the
 > Python Method namespace.
Please help lobbying that the functionality of all
"dtml-var" attributes are exposed as standard functions.

The functions are there already, just not exposed to DTML
and PythonScripts.


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] standard_error_message woes!

2001-01-03 Thread Dieter Maurer

Chris Withers writes:
 > John Chandler wrote:
 > > 
 > > As already mentioned, not all errors (unfortunately) get handled by
 > > standard_error_message - authorisation being the main culprit. In addition, if
 > > an error occurs in a standard_error_message it'll also cause the plain, default
 > > error page to be displayed.
 > 
 > Hurm... I would have thought/it would be nice if an error occurs in
 > standard_error_message then, the next standard_error_message up the
 > acquisition path would get used, resorting to the hard coded one only if
 > there isn't anything else...
I do not agree with you here.

  You should be able to make "standard_error_message"s that
  do not generate secondary errors.
  If you fail, a crude minimal error handling should be okay
  as a last resort.

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] UNEXPECTED: Acquisition.Explicit may acquire implicitly

2001-01-03 Thread Dieter Maurer

Pierre-Julien Grizel writes:
 > Dieter Maurer wrote:
 > > 
 > > This implies, that the idiom
 > > 
 > > 
 > > 
 > > cannot be used safely to test, whether "o" has attribute
 > >  itself (rather than acquired it).
 > > We probably should have a standard function for this kind
 > > of test.
 > 
 > 
 > 
 > Mhhh  Something like "" ?
"aq_base" is not considered safe and unavailable in DTML.

But you are right, that would be the implementation of the
function, I call for.


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] Editing the z2.py File

2001-01-03 Thread Paul Browning



--On 02 January 2001 17:23 +0100 Stephane Bortzmeyer 
<[EMAIL PROTECTED]> wrote:

> On Friday 22 December 2000, at 18 h 56, the keyboard of Michael Bernstein
> <[EMAIL PROTECTED]> wrote:
>
>> Umm, even if *everything* else fails, you can still manually
>> truncate the Data.fs file to remove the last transaction
>
> Well, this file is not human-readable so I do not really see how to
> truncate it properly?

See http://www.zope.org/Members/itamar/CorruptedZODB
for how to do this.

Paul

--
 The Library, Tyndall Avenue, Univ. of Bristol, Bristol, BS8 1TJ, UK
 E-mail: [EMAIL PROTECTED]  URL: http://www.bris.ac.uk/


___
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 write good docs

2001-01-03 Thread Chris Withers

Bob Sidebotham wrote:
> 
> The author obviously put himself in the position of
> someone who didn't know anything about the topic, and wrote the
> documentation to satisfy this person

This has gotta be the best description of how to write good docs I've
seen in a while :-)

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] Zope Projects in NL/Europe?

2001-01-03 Thread Jonathan

> Find out yourself at the EuroZopeCon on the LinuxExpo in Amsterdam
> January 23-24 2001 ;-)
>
> http://zdp.zope.org/projects/eurozope/events/linuxexpo2001

Gotta be there :)

> BTW: EuroZope is an initiative to better support Zope in Europe. The
> main topic
> right now is Internationalization and planning the next Zope events.
>
> http://www.eurozope.org
>
> The purpose of EuroZope is to develop a central European Zope
> community that is not only a meeting and information point for
> European Zope developers, but also a useful contact source for
> press, exhibition staff, editors, magazines and other entities
> from Europe interested in Zope. The EuroZope members goal is to
> publicize Zope throughout Europe by organizing press
> releases, writing articles and organizing events.

A lofty goal indeed. Worth investing time in. Need hosting? :)  I'll
have a look as soon as I get a chance to send this message.

Cya
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] Non-ASCII-form-input -> HTML-entities?

2001-01-03 Thread Markus Kemmerling

I would like to have users being able to enter german vowels ä, ö, ü and other 
non-ASCII-characters for which HTML-entities exist (ISO 8859-1) into a 
form-input-field and have them rendered as HTML-entities by the corresponding var-tag 
in the form-handler.

The 'html_quote'-attribute only seems to convert &, <, and > (and quotes?). Of course 
I could write my own python-method with a lot of replaces. But that would probably 
mean to reinvent a wheel that already exists (this seems to be a rather common task to 
me). Or is there a way to do it in DTML?

Any help appreciated.

Markus Kemmerling


___
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] Core Session Tracking & DTML

2001-01-03 Thread Chris Withers

Chris McDonough wrote:
> 
>   
> 
>   
> 
>   

I would have thought this stuff would be better in a python script:

sessionmanager.getSessionData.get('a')

...since it is definitely 'logic'

Would it be posible to make that even nicer and have whatever
getSessionData is implement __getattr__ so you could do:

sessionmanager.SessionData.a

...or something similar?

just my 2p,

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] Zope Projects in NL/Europe?

2001-01-03 Thread Jonathan

> > Just wondering: are there any Zope projects are available in the
> > Netherlands/Benelux/Europe?
>
> What do you mean by 'available'?

Ai, just spotted a grammatical error in my own message. By available I
mean projects that might need extra people/expertise in programming and
design. Most of our income is made by putting our people to work on
other people's projects (contract programming).

What I am interested in is the 'general state of the market'.

> What do you mean by 'hard to find' ? Where did you look?

On this list ;)  My own network is not large enough, our sales people
are not looking for it because we already have Perl in our 'open source
toolkit'. I can recommend Zope for use in our smaller projects, but the
larger projects tend to be Java based because that's what most of the
people around here have experience with and the client requires brand
names.

> It's a matter of convincing the
> client. Basically your client has to find Zope with your aid.

Try selling Zope to a large bank or an insurance company. Yes sir, we
would like to connect it to your mainframe. No sir, Python is not a
snake, it's a programming language ;)

> I think there is (lots of) money to make, but if your company has no
> strategy for Zope (only a, short sighted, strategy based, only on the
> major brand names) you are going nowhere with your Zope expertise
> within your company. Btw, if you have Zope knowledge you know that
Zope
> has no problems with Microsoft and Oracle.

It's a matter of analyzing your clients needs/wishes etc. and matching
the outcome of this process with the right tools, platform etc. :)  And
don't forget experience and expertise available within the company. Most
of our clients require brand name products that are well supported.
Don't get me started on the quality of support you get from Oracle
though ;)

We have large amounts of experience with Oracle and Microsoft
technologies. We have few content heavy projects, the emphasis is on
transaction heavy applications and backend connectivity.

> Btw Zope can be integrated with
> JSP/Java, SOAP/XML-RPC and Perl.

Yes I know. JSP/Java not that easy, but SOAP/XML-RPC and Perl are doable
;)

> My background,
> I''m co-president/owner of a Dutch based ICT consultancy firm
> (founded in
> 1987). Our strategy is now focussed on Zope webapplications
> based on our
> 'crystal ball' (content management is the keyword) and input from our
> clients.
> Besides that I'm one of the keymembers of a small team that developes
> webapplications, with Zope, for the Faculty of Social
> Sciences of the Leiden
> University. Part of this system is an advanced webbased
> learning system.

Impressive :)  Well, if you need any help, let me know ;)

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




Re: [Zope] Zope Projects in NL/Europe?

2001-01-03 Thread Maik Röder

Hi Jonathan !

Jonathan wrote:
> 
> Hi all,
> 
> Just wondering: are there any Zope projects are available in the
> Netherlands/Benelux/Europe? We did one last year but they seem hard to
> find. Are there commercial projects available or is Zope mostly used on
> internal projects? Is there any demand for Zope expertise around here?

Find out yourself at the EuroZopeCon on the LinuxExpo in Amsterdam
January 23-24 2001 ;-)

http://zdp.zope.org/projects/eurozope/events/linuxexpo2001

BTW: EuroZope is an initiative to better support Zope in Europe. The
main topic
right now is Internationalization and planning the next Zope events. 

http://www.eurozope.org

The purpose of EuroZope is to develop a central European Zope community
that is not only a meeting and information point for European Zope
developers,
but also a useful contact source for press, exhibition staff, editors,
magazines and other entities from Europe interested in Zope. The
EuroZope 
members goal is to publicize Zope throughout Europe by organizing press
releases, writing articles and organizing events. 

Best regards,

Maik Röder

___
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] case insensitive search?

2001-01-03 Thread Aleksander Salwa

On Wed, 3 Jan 2001, Robin Becker wrote:

> Is there an easy way to make the Find tab case insensitive. It seems
> like a very common need, but I see that FindSupport.py is calling
> string.find which makes it seem as though this is harder than it should
> be.

You can try my very quick patch, attached below.
But beware - it gives much more that you want - it is full regexp search.


--- FindSupport.py  Wed Jul 26 16:11:54 2000
+++ FindSupport_caseIns.py  Wed Jan  3 09:33:34 2001
@@ -92,7 +92,7 @@
 from Globals import HTMLFile
 from DocumentTemplate.DT_Util import InstanceDict, TemplateDict
 from DateTime import DateTime
-from string import find
+from re import search, IGNORECASE
 from AccessControl import getSecurityManager
 
 class FindSupport(ExtensionClass.Base):
@@ -177,7 +177,8 @@
 and
 (not obj_searchterm or
  (hasattr(ob, 'PrincipiaSearchSource') and
-  find(ob.PrincipiaSearchSource(), obj_searchterm) >= 0
+  search(obj_searchterm, ob.PrincipiaSearchSource(),
+   IGNORECASE) != None
   ))
 and
 (not obj_expr or expr_match(ob, obj_expr))
@@ -269,7 +270,8 @@
 and
 (not obj_searchterm or
  (hasattr(ob, 'PrincipiaSearchSource') and
-  find(ob.PrincipiaSearchSource(), obj_searchterm) >= 0
+  search(obj_searchterm, ob.PrincipiaSearchSource(),
+  IGNORECASE) != None
   ))
 and
 (not obj_expr or expr_match(ob, obj_expr))



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




Re: [Zope] Zope Projects in NL/Europe?

2001-01-03 Thread Rik Hoekstra

(Writing from the Netherlands)

>
> Just wondering: are there any Zope projects are available in the
> Netherlands/Benelux/Europe? We did one last year but they seem hard to
> find. Are there commercial projects available or is Zope mostly used on
> internal projects? Is there any demand for Zope expertise around here?

>From the (spontaneous) requests I have had over the last year about Zope
expertise, I can assure you that there is plenty of demand for Zope
expertise. The problem is mainly that it is harder to find (commercial)
expertise than to have projects available. Zope not (yet) being such a
widespread Web developing alternative, needs are less visible. We are using
Zope in our institution and there is too much work for me to handle, but I
have had a hard time finding developers who can help me out. I'm sure this
applies to more institutions and companies in the Netherlands (and Belgium
for that matter).

And, btw, not to be nitpicking, but how would people know you have Zope
expertise? Is it in your company profile, are you on the Zope service
provider page, have you offered your services somewhere visible.

The second point is of course that you could also prove Zope to be a viable
alternative over other web developing tasks, by just doing projects in Zope.
Or are all you customers asking for applications in specific technologies
rather than solutions with the highest quality/for the best price/in the
shortest time possible?


>
> Reason I'm asking is that I'd love to continue working with Zope, but
> it's hard to justify in a company focused on Microsoft and Oracle,
> especially if there is no money to be made. I can learn Perl on company
> time and Linux is our internet server OS of choice, but JSP/Java and
> .NET (the latter is not that bad, uses SOAP/XML-RPC) is next if we don't
> find a use for our Zope expertise.
>

I'd say: just do it and make yourself heard. You might be surprised.


Rik


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