Re: [Zope] How to prime a selection?

2000-08-03 Thread Loren Stafford



> Hi all
> 
> I'm making a document class for a warehouse of papers.
> It's based on ZCatalogAware and ObjectManager (to wrap
> mainly PDFs and DOCs), and has fields:
> 
>   title   (string type)
>   origin  (string type)
>   format  No value for format_value.  
>   typeNo value for type_value.  
> 
> "format" and "type" are selections -- 
> 
> 1. where do I supply their initial values (filling in 
>'format_value' and 'type_value')?
> 2. is it possible to let a field offer presets and 
>previously entered values, but to allow users to 
>add new ones, which are remembered and offered to 
>subsequent users?
> 
> A RTFM-type answer to question 1. is perfectly OK, though a 
> page reference would be sorely appreciated.

http://www.zope.org/Members/lstaffor/zProperties




___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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: How to prime a selection?

2000-08-03 Thread RC Compaan

Hi Jean

The value for a selection list can be any zope object that returns a list
eg. MyDocClass can have a property "Format" with a value "FormatList", where
FormatList is a dtml-method that returns a list.

Practically:
1.Go to the property sheet for your new class and add the property Format
with value FormatList.
2.Go to the Folder where you want to add an instance of your ZClass and
create add a property "docformats" of type "lines" and enter the initial
formats.
3.In the Folder where you want to add your instance, create a dtml-method
called "FormatList" that will return the list, containing:


Hope this helps.

For more info on selection list see
http://www.zope.org/Members/AlexR/SelectionLists

Roché

> -Original Message-
> From: Jean Jordaan [mailto:[EMAIL PROTECTED]]
> Sent: 04 August 2000 07:10
> To: '[EMAIL PROTECTED]'
> Cc: RC Compaan (E-mail)
> Subject: How to prime a selection?
>
>
> Hi all
>
> I'm making a document class for a warehouse of papers.
> It's based on ZCatalogAware and ObjectManager (to wrap
> mainly PDFs and DOCs), and has fields:
>
>   title   (string type)
>   origin  (string type)
>   format  No value for format_value.
>   typeNo value for type_value.
>
> "format" and "type" are selections --
>
> 1. where do I supply their initial values (filling in
>'format_value' and 'type_value')?
> 2. is it possible to let a field offer presets and
>previously entered values, but to allow users to
>add new ones, which are remembered and offered to
>subsequent users?
>
> A RTFM-type answer to question 1. is perfectly OK, though a
> page reference would be sorely appreciated.
>
> --
> jean
>


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




[Zope] How to prime a selection?

2000-08-03 Thread Jean Jordaan

Hi all

I'm making a document class for a warehouse of papers.
It's based on ZCatalogAware and ObjectManager (to wrap
mainly PDFs and DOCs), and has fields:

  title   (string type)
  origin  (string type)
  format  No value for format_value.  
  typeNo value for type_value.  

"format" and "type" are selections -- 

1. where do I supply their initial values (filling in 
   'format_value' and 'type_value')?
2. is it possible to let a field offer presets and 
   previously entered values, but to allow users to 
   add new ones, which are remembered and offered to 
   subsequent users?

A RTFM-type answer to question 1. is perfectly OK, though a 
page reference would be sorely appreciated.

-- 
jean

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Upload applet in Java/JPython

2000-08-03 Thread Alexander Limi

Hi,

I tried posting this to the comp.lang.pyton group, but I never got any
answer, so I was hoping that you friendly Zope folks could offer me some
advice.

The setting is this:

My web site collects big files (typically 2-5 MB) that the users
upload via HTTP POST (yeah, I know - FTP is nicer, but not when you
have untrusted users). When a person submits his file, he has to wait
20-30 minutes for the upload to complete, without any visual feedback
at all.

This is clearly not desirable. What I imagine would be nice, is a
small applet to handle the file and provide the user with a visual
feedback on the progress of the upload. Just a simple progress bar.

What I want to know is: Has this already been written by someone?
Either in Java or JPython? If so, could you please provide me with a
URL?

If not, is this a big task? I am a Python newbie, and I haven't
touched JPython at all.

All help appreciated.


Alexander.



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] acquisition vs. inheritance

2000-08-03 Thread Jonothan Farr

> Is it possible to have just one top level object that refers to
> other objects that get overridden as you go into other folders?

Acquisition works the other way around. You can create objects in subfolders
whose contents are overriden higher up. You can't have an object at the top
whose contents get overridden as you go down.

Your solution was correct. Create another index_html in the subfolder, which
uses the 'contents' object in the subfolder, but the standard_html_header and
standard_html_footer from the parent folder.

--jfarr

"Perl is worse than Python because people wanted it worse."
Larry Wall, 14 Oct 1998



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Installation of 2.2.0 under Linux

2000-08-03 Thread Nick Garcia

Steve Sorenson wrote:
> 
> Hello,
> When I installed the source code of 2.2.0 on my Linux machine, I got an
> error message saying "Error 256" just after it began compiling the python
> modules.  The same thing happens when I attempt to install the linux2
> release.  Has anybody else experienced anything of thie nature?

I think that means that you don't have the python development
libraries.  If you use RPMs, you need the python-devel package.

-- 
Nick Garcia | [EMAIL PROTECTED]
CodeIt Computing | http://codeit.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] create DTML-Source-link like on zope.org

2000-08-03 Thread Bill Anderson

Chris Withers wrote:
> 
> Deryk Barker wrote:
> > > Try something like:
> > >
> > > http://www.mysite.com/folder/dtmlmethod/view_source
> >
> > 404 document not found...:-(
> 
> Of course it was, I made up the url as an example :P
> 
> > I'd like to view the source of my index_html.
> 
> So you go to:
> 
> http://www.yoursite.com/index_html/view_source.

Returns a 404 on my systems ...

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

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Installation of 2.2.0 under Linux

2000-08-03 Thread Steve Sorenson

Hello,
When I installed the source code of 2.2.0 on my Linux machine, I got an 
error message saying "Error 256" just after it began compiling the python 
modules.  The same thing happens when I attempt to install the linux2 
release.  Has anybody else experienced anything of thie nature?

Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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] Zope + Apache on FreeBSD 4.0 problems

2000-08-03 Thread Peter Haight

>
>Hi Peter,
>
>   Hmm... I've never seen this problem, and I've been using
>pcgi/FreeBSD since 2.2.8. I have however seen another problem:
>
>http://lists.zope.org/pipermail/zope/1999-December/016465.html
>
>that has never really been resolved. I'm going to try your
>net.local magic to see if that has an effect. I tried the
>FreeBSD lists at one time, and never got any response. Maybe
>it's time to try them again

I wasn't able to reproduce it on Zope. This is probably because I have since
switched to using fast cgi which has fixed all my problems. 

I was able to reproduce it using your test script and just piping it to
more. What's going on is that you are getting a broken pipe exception in
self.stdout.write in HTTPResponse.write(), but that exception is getting
masked somewhere which is why it seems mysterious as to what is happening.

I have no idea why we get a broken pipe when piping that to more. I made a
script:

import sys

file = open("fs.txt", "r")
data = file.read(1024)
while data:
result = sys.stdout.write(data)
data = file.read(1024)

And piped that to more. Same problem. If I do 'cat fs.txt | more' it works
fine. 

Upgrading my system from 4.0-RELEASE to 4.1-STABLE fixed this problem.



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Evaluating a string of DTML code?

2000-08-03 Thread Dieter Maurer

T.J. Mannos writes:
 > I have an ExternalMethod that processes an HTML file, extracts the contents
 > of the BODY tag, and wraps my site template around it.  (In other words, it
 > takes a plain vanilla HTML file and adds standard_html_header and
 > standard_html_footer).
 > 
 > [See http://www.zope.org/Members/unfo/howto_wrapper/index_html for more
 > background]
 > 
 > The problem is this: I can't have arbitrary DTML code in the HTML file.
 > Zope completely ignores it.  I tried fmt=structured-text, but that doesn't
 > work, either.  Since the file is essentially read in as a string, is there
 > any way to evaluate an arbitrary string of DTML code?
What prevents you, to render the body? This should handle
DTML expansion, at least for simple cases.

def wrap(self,what):
REQUEST= self.REQUEST
return self.standard_html_header(self,REQUEST) \
   + what(self,REQUEST) \
   + self.standard_html_footer(self,REQUEST)

This will break, if one of the DTML objects needs arguments
not present in the current REQUEST.


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] Confusing aq - I don't get it, anyone know why?

2000-08-03 Thread Dieter Maurer

Brad Clements writes:
 > ... Name Error in called DTML method 

 > 

Here, you break the namespace propagation!

As a general rule:

  If you call a DTML object explicitely (i.e. inside "..."),
  then *always* use "_.None" (or an object or object tuple)
  and "_" as the first two positional parameters.
  Only after these two, use your parameters as keyword
  parameters.

  If you do not, you break the namespace propagation
  (passing the "_" down to your called DTML object).

If you use the DTML object outside "..." (or in _[...]), then
the DTML magic does automatic propagation.
Inside "...", you must do it explicitely.



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] Problem accessing property value

2000-08-03 Thread Chris Withers

David Riggs wrote:
> 
> This is a problem I'm running into using Zope 2.1.6 and PTK 0.7.1 on an
> NT machine...I plan on upgrading both as soon as the 2.2.1 bug fix is
> released...I believe the problem is just a syntax one...
> 
> I'm running into a snag trying to access the value of a property I've
> assigned to an instance of a ZClass...specifically, I've created a
> ZClass of meta-type Customize, and created an instance (also called
> Customize for simplicity) in each member's home folder. [for reference
> sake, PTK creates a folder in the path
> /ZopeRoot/PortalRoot/Members/UserName for each member] The instance has
> a long list of properties that I'd like to access and use as
> customization settings for each individual user.
> 

> Calling the property like this...
>"AUTHENTICATED_USER.getHomeUrl()+'/Customize.some_property'">
> Yields the following string literal (which isn't what I need)
> http://host:8080/Portal/Members/UserName/Customize.some_property

Try this instead (excuse mail wrapping ;-):


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] Batchpeocessing with multiple selection

2000-08-03 Thread Dieter Maurer

vikas writes:
 > 
 > For this i am using batch processing. But
 > it is giving me errors Such as key error [city],[state] and gives the url
 > of my page where i m using batchprocessing. Can someone help me out how to
 > overcome the problem this problem as this is very urgent for me.
 > ...

You may make one of two types of errors:

 * you have no navigation button or did not include
   "sequence-query" in it "href"
   
 * you used "method=post" to send your query.
   In this case "QUERY_STRING" is not defined, and
   "sequence-query" does not work


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] ZSearch generated default report file fails on result set cardinality greater 50 for content which contains www addresses

2000-08-03 Thread Dieter Maurer

Andreas Rippel writes:
 > I came across the situation, where the result rows of a Z SQL access
 > contained www strings like
 > www.uni-ko-ld.de/veranstaltungen/lehramt.html, see below.
 > Using ZSearch generated dtml-methods generated the following html code,
 > when the result set contains more
 > than 50 items. See the generated reference for the next items
 >  
 >href="www.uni-ko-ld.de/veranstaltungen/lehramt.html?fach=%25&hochschule=%25&SUBMIT=Submit+Query&query_start=51">,
 > which didn't refer to the running zope environment. Instead it merged
 > address stuff from a result row.

I expect that your table contains a column with the same name
as the DTML-variable used to build the navigation (URL, I think).

"dtml-in" brings the column names of your rows in the namespace.
they hide their other variables defined outside the "dtml-in".

If you can, rename your database column.


If you cannot, build your own DTML methods for testing by customizing
the DTML methods generated by the Z Search Interface.
Z SQL methods have the argument "src__" (in 2.2, there
is something for tests too). It gives you the generated SQL,
without executing it.


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] Problem accessing property value

2000-08-03 Thread David Riggs

This is a problem I'm running into using Zope 2.1.6 and PTK 0.7.1 on an
NT machine...I plan on upgrading both as soon as the 2.2.1 bug fix is
released...I believe the problem is just a syntax one...

I'm running into a snag trying to access the value of a property I've
assigned to an instance of a ZClass...specifically, I've created a
ZClass of meta-type Customize, and created an instance (also called
Customize for simplicity) in each member's home folder. [for reference
sake, PTK creates a folder in the path
/ZopeRoot/PortalRoot/Members/UserName for each member] The instance has
a long list of properties that I'd like to access and use as
customization settings for each individual user.

Calling the property like this...
  
Yields the following string literal (which isn't what I need)
http://host:8080/Portal/Members/UserName/Customize.some_property

And calling it like so...
 
Gives me this weird string (definitely not what I want)
  
Where the hex number varies between 11x - 13x each time I render

it.

I've tried calling the Customize method like this
 
And I get the value I need, but this way I'm hard coding the user's name

into the path, where I want it to not be user specific.

I've tried a few times with getAttribute and getProperty, but can't seem

to get the syntax correct...If any Zope Masters could offer a hand, it'd

be GREATLY appreciated!

Thanks,
David Riggs





___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] create DTML-Source-link like on zope.org

2000-08-03 Thread Chris Withers

Deryk Barker wrote:
> > Try something like:
> >
> > http://www.mysite.com/folder/dtmlmethod/view_source
> 
> 404 document not found...:-(

Of course it was, I made up the url as an example :P

> I'd like to view the source of my index_html.

So you go to:

http://www.yoursite.com/index_html/view_source.

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] 2.2 as a service and Zodbcda

2000-08-03 Thread Jim Sanford

Can you shed any insite?

***Result of testing Z SQL Method with Zope 2.2 running as a service:

 Z SQL Method at /scripts/Zope.pcgi / testing / test2


Error, sql.error: ('S0002', 173, "[Microsoft][ODBC Visual FoxPro Driver]File 
'names.dbf' does not exist.")

SQL used:

Could not render the query template!

Registry Parameter= start : REG_SZ : "C:\Progra~1\ATIAny~1\bin\python.exe" "C:\Program 
Files\ATIAnywhere\z2.py" -D -p
C:\InetPub\scripts\Zope.pcgi
=

Result of testing Z SQL Method with Zope 2.2 running from start.bat.:

 Z SQL Method at /scripts/Zope.pcgi / testing / test2


Company
ATMEL


SQL used:

select company
from names where val(id)=27000

Start.bat="C:\Program Files\ATIAnywhere\bin\python.exe" "C:\Program 
Files\ATIAnywhere\z2.py" -D -p C:\InetPub\scripts\Zope.pcgi


=
Both are running via pcgi through MS IIS 4.0

Here is Zope.pcgi:

#!C:\Program Files\ATIAnywhere\pcgi\win32\pcgi-wrapper.exe
#
# This PCGI info file was generated automatically by
# the Zope installer. See the file doc/WEBSERVER.txt
# for more information on setting up PCGI support.

PCGI_NAME=Anywhere
PCGI_PORT=8090
PCGI_MODULE_PATH=C:\Progra~1\ATIAnywhere\lib\python\Main.py
PCGI_PUBLISHER=C:\Progra~1\ATIAnywhere\pcgi\pcgi_publisher.py
PCGI_EXE=C:\Progra~1\ATIAnywhere\pcgi"
PCGI_SOCKET_FILE=C:\Progra~1\ATIAnywhere\pcgi\pcgi.soc
PCGI_PID_FILE=C:\Progra~1\ATIAnywhere\pcgi\pcgi.pid
PCGI_ERROR_LOG=C:\Progra~1\ATIAnywhere\pcgi\pcgi.log
PCGI_DISPLAY_ERRORS=1
BOBO_REALM=Zope
BOBO_DEBUG_MODE=1
INSTANCE_HOME=C:\Progra~1\ATIAnywhere


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] cc:Mail Link to SMTP Undeliverable Message: Unknown user: Gustin Kiffney

2000-08-03 Thread Administrator


Send Zope maillist submissions to
[EMAIL PROTECTED]

To subscribe or unsubscribe via the web, visit
http://lists.zope.org/mailman/listinfo/zope
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]
You can reach the person managing the list at
[EMAIL PROTECTED]

(When replying, please edit your Subject line so it is more specific than
"Re: Contents of Zope digest...")


Today's Topics:

  1. free client to map Zope-FTP to drive letters on Windows OR Alex File System AFS 
(Marcus Schopen)
  2. (no subject) ([EMAIL PROTECTED])
  3. Re: Packing with cron (Jason Spisak)
  4. Re: dtml-calendar question. (R. David Murray)
  5. Re: dtml-calendar question (still not working) (R. David Murray)
  6. Re: Zope Usage (R. David Murray)
  7. Re: free client to map Zope-FTP ([EMAIL PROTECTED])
  8. Re: How do I count children? (Kapil Thangavelu)

--__--__--

Message: 1
From: Marcus Schopen <[EMAIL PROTECTED]>
Subject: [Zope] free client to map Zope-FTP to drive letters on Windows OR Alex File 
System AFS
Date: Thu, 03 Aug 2000 18:11:31 +0100
To: [EMAIL PROTECTED]

Hi there,

I'm looking for a free(!) Windows 95/98 programm to map my Zope-FTP
to a drive letter on my Windows workstation. Commercial Versions are
ftpNetDrive or WebDrive. But these are not free.

Thank you
Marcus

P.S.: mounting Zope`s FTP with AFS (Alex FS to local directory on my linux-box and
sharing this mounted directory by SAMBA seems to be to much work. But
if someone has experiences with this serverside solution, please let me know.

__

 (0>   Marcus Schopen
 //\   Bielefeld, Germany
 V_/_
__


--__--__--

Message: 2
From: [EMAIL PROTECTED]
Date: Thu, 3 Aug 2000 10:13:03 -0700 (PDT)
To: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
Subject: [Zope] (no subject)


Greetings,

Is there a limit to the number of objects that may appear in a product?

The goal is to be search engine friendly:

http://www.myserver.com/us/ca/San_Francisco/mycategory/index_html

/myroot
  /us
/mycategory


Would it be unreasonable to have 42620 folders (one for each US city and town) in a 
zclass?

Regards,

Kevin Smith

--__--__--

Message: 3
From: "Jason Spisak" <[EMAIL PROTECTED]>
To: "Andy Dawkins" <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED]
Subject: Re: [Zope] Packing with cron
Date: Thu, 03 Aug 2000 08:21:09 GMT

Andy Dawkins writes:

Thank you Andy.  That was generous.
Have you ever used this from cron? Just so I know before I try it.

All my best,


> Jason
> 
> I'm not sure if it is worthy of putting up on Zope.
> Although I'm sure people will correct me if I am wrong.
> 
> But I have no problems in letting you have it
> 
>  is the main python script.
>   You will need to change the line that reads
>   s=xmlrpclib.Server('http://myserver:8080/', transport=None,
> username='username', password='password')
>   To reflect your correct server details.
> 
>  xmlrpc Library for python.
>   Place this in your python/libs directory, or the same directory as
> packDb.py
> 
>  This contains the code for the external Method.
>   Place this in your zope/Extensions directory.  Create it if it doesn't
> exist.
> 
> You will need to add an external method to the root of your ZODB that points
> to packExtensions.py script
> 
> If you have any problem then please let me know.
> 
> -Andy
> 


Jason Spisak
CIO
HireTechs.com
6151 West Century Boulevard
Suite 900
Los Angeles, CA 90045
P. 310.665.3444
F. 310.665.3544

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

--__--__--

Message: 4
Date: Thu, 3 Aug 2000 13:27:23 -0400 (EDT)
From: "R. David Murray" <[EMAIL PROTECTED]>
To: Chris Withers <[EMAIL PROTECTED]>
cc: Andrew Kenneth Milton <[EMAIL PROTECTED]>, zope <[EMAIL PROTECTED]>
Subject: Re: [Zope] dtml-calendar question.

On Thu, 3 Aug 2000, Chris Withers wrote:
> > In what way does it *not* follow Python (expression) syntax rules?
> 
> _['something'] doesn't just return the value from the dictionary which
> has the 'something' key, if it's callable, it'll try to call it and then
> return that... not nice :(
> 
> If you want to be safe, use _.getitem('something',0)...

True enough, that's a somewhat weird semantic, but it's still
following python *syntax* rules .

--RDM



--__--__--

Message: 5
Date: Thu, 3 Aug 2000 13:35:31 -0400 (EDT)
From: "R. David Murray" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: [Zope] dtml-calendar question (still not working)

On Thu, 3 Aug 2000, tom smith wrote:
> I'm still getting allsorts of errors. My code is like this...
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> I'm having trouble passing StartDateString to get_days_events. If I loo

Re: [Zope] How do I count children?

2000-08-03 Thread Kapil Thangavelu

"J. Atwood" wrote:
> 
> So In ZUBB (my discussion product) I want to be able to show how many
> replies there have been to any one main topic. All replies are 'children' of
> the main post and when I state it with
> 
> 
> Stuff
> 
> 
> It works and knows that each message is a child of the message.
> 
> When in go through a searchResult to list the message I want to  show many
> replies there are to that message.
> 
> Q: How do I count the 'children' of any one onject?



if children aren't nested




if children are nested you probably need a recursive dtml/python method.

in python 

def count_children(o):
x = o.objectItems(['childClass'])   
sum = len(x)
for child, child_name in x:
sum = sum + count_children(child)
return sum


Kapil

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] free client to map Zope-FTP

2000-08-03 Thread rgines


My first question is "Do you realy need a drive letter?".   If you don't
need a drive letter, but really just need a connection which is mapped
within the Windows drive space, there is a utility called Internet
Neighborhood from KnoWare.   It allows you to map FTP sites into the
Windows 'File Explorer'.  It is not free, but it is shareware.   I don't
use it personally, but I did run across it when I was testing some
utilities for a client.  Depending on what your underlying need is, it
should work well for you.

>I'm looking for a free(!) Windows 95/98 programm to map my Zope-FTP
>to a drive letter on my Windows workstation. Commercial Versions are
>ftpNetDrive or WebDrive. But these are not free.








___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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 Usage

2000-08-03 Thread R. David Murray

On Thu, 3 Aug 2000, Marc Dullien wrote:
> Q1: With what tool inside Zope do I program the HTML Templates ?

Read the DTML reference.

> Q2: I want to fill those templates with database entries

Read the ZSQL reference.

> Q3: How can I do the linkage

Isn't that the same as Q2?

> If you could send me a short Howto or something, that would be great, I can
> find ma way through from there !

Well, neither one is exactly short...so you might want to skim them
first and then go back and read in detail as you try things out.

--RDM


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




Re: [Zope] dtml-calendar question (still not working)

2000-08-03 Thread R. David Murray

On Thu, 3 Aug 2000, tom smith wrote:
> I'm still getting allsorts of errors. My code is like this...
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> I'm having trouble passing StartDateString to get_days_events. If I look at
> StartDateString using  it looks OK.

What kind of errors? 

--RDM


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




Re: [Zope] dtml-calendar question.

2000-08-03 Thread R. David Murray

On Thu, 3 Aug 2000, Chris Withers wrote:
> > In what way does it *not* follow Python (expression) syntax rules?
> 
> _['something'] doesn't just return the value from the dictionary which
> has the 'something' key, if it's callable, it'll try to call it and then
> return that... not nice :(
> 
> If you want to be safe, use _.getitem('something',0)...

True enough, that's a somewhat weird semantic, but it's still
following python *syntax* rules .

--RDM



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




Re: [Zope] Packing with cron

2000-08-03 Thread Jason Spisak

Andy Dawkins writes:

Thank you Andy.  That was generous.
Have you ever used this from cron? Just so I know before I try it.

All my best,


> Jason
> 
> I'm not sure if it is worthy of putting up on Zope.
> Although I'm sure people will correct me if I am wrong.
> 
> But I have no problems in letting you have it
> 
>  is the main python script.
>   You will need to change the line that reads
>   s=xmlrpclib.Server('http://myserver:8080/', transport=None,
> username='username', password='password')
>   To reflect your correct server details.
> 
>  xmlrpc Library for python.
>   Place this in your python/libs directory, or the same directory as
> packDb.py
> 
>  This contains the code for the external Method.
>   Place this in your zope/Extensions directory.  Create it if it doesn't
> exist.
> 
> You will need to add an external method to the root of your ZODB that points
> to packExtensions.py script
> 
> If you have any problem then please let me know.
> 
> -Andy
> 


Jason Spisak
CIO
HireTechs.com
6151 West Century Boulevard
Suite 900
Los Angeles, CA 90045
P. 310.665.3444
F. 310.665.3544

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

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




[Zope] (no subject)

2000-08-03 Thread weboats


Greetings,

Is there a limit to the number of objects that may appear in a product?

The goal is to be search engine friendly:

http://www.myserver.com/us/ca/San_Francisco/mycategory/index_html

/myroot
  /us
/mycategory


Would it be unreasonable to have 42620 folders (one for each US city and town) in a 
zclass?

Regards,

Kevin Smith

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] free client to map Zope-FTP to drive letters on Windows OR Alex File System AFS

2000-08-03 Thread Marcus Schopen

Hi there,

I'm looking for a free(!) Windows 95/98 programm to map my Zope-FTP
to a drive letter on my Windows workstation. Commercial Versions are
ftpNetDrive or WebDrive. But these are not free.

Thank you
Marcus

P.S.: mounting Zope`s FTP with AFS (Alex FS to local directory on my linux-box and
sharing this mounted directory by SAMBA seems to be to much work. But
if someone has experiences with this serverside solution, please let me know.

__

 (0>   Marcus Schopen
 //\   Bielefeld, Germany
 V_/_
__


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Packing with cron

2000-08-03 Thread Andy Dawkins

Jason

I'm not sure if it is worthy of putting up on Zope.
Although I'm sure people will correct me if I am wrong.

But I have no problems in letting you have it

 is the main python script.
You will need to change the line that reads
s=xmlrpclib.Server('http://myserver:8080/', transport=None,
username='username', password='password')
To reflect your correct server details.

 xmlrpc Library for python.
Place this in your python/libs directory, or the same directory as
packDb.py

 This contains the code for the external Method.
Place this in your zope/Extensions directory.  Create it if it doesn't
exist.

You will need to add an external method to the root of your ZODB that points
to packExtensions.py script

If you have any problem then please let me know.

-Andy



#!/usr/bin/python
# This module will pack zopes database
# Assuming you have placed the pack external method in the root
import sys, xmlrpclib

class packDb:
def __init__(self):
s=xmlrpclib.Server('http://myserver:8080/', transport=None, 
username='username', password='password')
# This is the external method.  If you haven't placed it in the root 
then adjust as required.
s.pack()

if __name__ == '__main__':
x = packDb()


def pack(self, REQUEST=None):
self.Control_Panel.Database.manage_pack()

return 'Done'

#
# XML-RPC CLIENT LIBRARY
#
# With Amos Latteier's Basic Authentication code added
#
# $Id$
#
# an XML-RPC client interface for Python.
#
# the marshalling and response parser code can also be used to
# implement XML-RPC servers.
#
# Notes:
# this version uses the sgmlop XML parser, if installed.  this is
# typically 10-15x faster than using Python's standard XML parser.
#
# you can get the sgmlop distribution from:
#
#http://www.pythonware.com/madscientist
#
# also note that this version is designed to work with Python 1.5.1
# or newer.  it doesn't use any 1.5.2-specific features.
#
# History:
# 1999-01-14 fl  Created
# 1999-01-15 fl  Changed dateTime to use localtime
# 1999-01-16 fl  Added Binary/base64 element, default to RPC2 service
# 1999-01-19 fl  Fixed array data element (from Skip Montanaro)
# 1999-01-21 fl  Fixed dateTime constructor, etc.
# 1999-02-02 fl  Added fault handling, handle empty sequences, etc.
# 1999-02-10 fl  Fixed problem with empty responses (from Skip Montanaro)
# 1999-06-20 fl  Speed improvements, pluggable XML parsers and HTTP transports
#
# Copyright (c) 1999 by Secret Labs AB.
# Copyright (c) 1999 by Fredrik Lundh.
#
# [EMAIL PROTECTED]
# http://www.pythonware.com
#
# 
# The XML-RPC client interface is
# 
# Copyright (c) 1999 by Secret Labs AB
# Copyright (c) 1999 by Fredrik Lundh
# 
# By obtaining, using, and/or copying this software and/or its
# associated documentation, you agree that you have read, understood,
# and will comply with the following terms and conditions:
#
# Permission to use, copy, modify, and distribute this software and
# its associated documentation for any purpose and without fee is
# hereby granted, provided that the above copyright notice appears in
# all copies, and that both that copyright notice and this permission
# notice appear in supporting documentation, and that the name of
# Secret Labs AB or the author not be used in advertising or publicity
# pertaining to distribution of the software without specific, written
# prior permission.
#
# SECRET LABS AB AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD
# TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANT-
# ABILITY AND FITNESS.  IN NO EVENT SHALL SECRET LABS AB OR THE AUTHOR
# BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
# DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
# WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
# OF THIS SOFTWARE.
# 

import string, time
import urllib, xmllib, base64
from types import *
from cgi import escape

try:
import sgmlop
except ImportError:
sgmlop = None # accelerator not available

__version__ = "0.9.8"


# 
# Exceptions

class Error:
# base class for client errors
pass

class ProtocolError(Error):
# indicates an HTTP protocol error
def __init__(self, url, errcode, errmsg, headers):
self.url = url
self.errcode = errcode
self.errmsg = errmsg
self.headers = headers
def __repr__(self):
return (
"" %
(self.url, self.errcode, self.errmsg)
)

class ResponseError(Error):
# indicates a broken response package
pass

class Fault(Error):
# indicates a XML-RPC fault package
def __init__(self, faultCode, faultString, **extra):
  

RE: [Zope] ZODBCDA fails under 2.2

2000-08-03 Thread Capesius, Alan
Title: RE: [Zope] ZODBCDA fails under 2.2





Thanks Petteri,
That did the trick nicely.


Alan


>>>-Original Message-
>>>From: [EMAIL PROTECTED]
>>>[mailto:[EMAIL PROTECTED]]
>>>Sent: Wednesday, August 02, 2000 2:18 AM
>>>To: [EMAIL PROTECTED]
>>>Subject: Re: [Zope] ZODBCDA fails under 2.2
>>>
>>>
>>>Hi,
>>>
>>>update RDB.py, restart zope
>>>
>>>See : http://www.egroups.com/message/zope/36392
>>>
>>>Regards, 
>>>
>>>Petteri Soikkonen
>>>Tietopalvelut / Media
>>>TietoEnator Oyj
>>>PL 403 / Tietotie 6
>>>FIN-02100 Espoo Finland
>>>p. 09-86252266
>>>0407 510 045
>>>
>>>





Re: [Zope] Packing with cron

2000-08-03 Thread Jason Spisak

Andy Dawkins writes:

Thanks you for your prompt reply.  I knew someone had to have a solution. 
Would you be willing to send me the script?  Better yet, put it up as
content on the Zope.org site.  I have a feeling a list of solutions to this
would help the community.

All my best,


> I have a python script which uses XMLRPC to call an External Method that
> packs the database.
> 
> Not ideal, but it does allow me to pack the database
> a) From Zope
> b) From the command line
> c) Whilst the server is running
> d) During very large imports which make ZCatalog Explode (I wish
> CatalogAware supported Sub Transactions)
> 
> -Andy
> 
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jason Spisak
> > Sent: 03 August 2000 16:37
> > To: [EMAIL PROTECTED]
> > Subject: [Zope] Packing with cron
> >
> >
> > Zopists,
> >
> > I am attemtping to use cron to pack my ZODB.  I am using lalo's cron
> > how-to and lynx.  However when I visit
> > http://myhost:8080/Control_Panel/Database/manage_pack nothing happens.
> > Here is the command I am using in Zope 2.1.6:
> >
> > lynx -auth superuser:superuserpasswd -source
> > http://myhost:8080/Control_Panel/Database/manage_pack
> >
> > Is there anything obviously skewed about this?  Has anyone else tried it
> > with success?
> >
> > Thanks in advance,
> >
> > Jason Spisak
> >
> > ___
> > Zope maillist  -  [EMAIL PROTECTED]
> > http://lists.zope.org/mailman/listinfo/zope
> > **   No cross posts or HTML encoding!  **
> > (Related lists -
> >  http://lists.zope.org/mailman/listinfo/zope-announce
> >  http://lists.zope.org/mailman/listinfo/zope-dev )
> >
> >
> 


Jason Spisak
CIO
HireTechs.com
6151 West Century Boulevard
Suite 900
Los Angeles, CA 90045
P. 310.665.3444
F. 310.665.3544

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

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




[Zope] How do I count children?

2000-08-03 Thread J. Atwood


So In ZUBB (my discussion product) I want to be able to show how many
replies there have been to any one main topic. All replies are 'children' of
the main post and when I state it with


Stuff


It works and knows that each message is a child of the message.

When in go through a searchResult to list the message I want to  show many
replies there are to that message.

Q: How do I count the 'children' of any one onject?

Thanks,
J


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




RE: [Zope] Packing with cron

2000-08-03 Thread Andy Dawkins

I have a python script which uses XMLRPC to call an External Method that
packs the database.

Not ideal, but it does allow me to pack the database
a) From Zope
b) From the command line
c) Whilst the server is running
d) During very large imports which make ZCatalog Explode (I wish
CatalogAware supported Sub Transactions)

-Andy

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jason Spisak
> Sent: 03 August 2000 16:37
> To: [EMAIL PROTECTED]
> Subject: [Zope] Packing with cron
>
>
> Zopists,
>
> I am attemtping to use cron to pack my ZODB.  I am using lalo's cron
> how-to and lynx.  However when I visit
> http://myhost:8080/Control_Panel/Database/manage_pack nothing happens.
> Here is the command I am using in Zope 2.1.6:
>
> lynx -auth superuser:superuserpasswd -source
> http://myhost:8080/Control_Panel/Database/manage_pack
>
> Is there anything obviously skewed about this?  Has anyone else tried it
> with success?
>
> Thanks in advance,
>
> Jason Spisak
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   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] Cache concerns (was zope/proxy_pass configuration problem)

2000-08-03 Thread T.J. Mannos

Ragnar,

Caching is a subject I'm not all that familiar with but one I need to learn
really fast.  My site is about to go live, and I have a monster of a query
that will bring my system to its knees if 100 students run it at a time.  So
I'm sending this off to the Zope mailing list wondering if anyone can give
us some caching/performance tips.

- T.J.

-Original Message-
From: Ragnar Beer [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 02, 2000 12:48 PM
To: T.J. Mannos
Subject: RE: [Zope] zope/proxy_pass configuration problem


Very good idea! I tried it and it works like a charm :) Thanks a lot!

One problem is left over: apache doesn't cache the documents although I have



in my standard_html_header. ab -n 100 -c 1
http://www.dummy.com/index_html shows 100 queries in Z2.log where
there should be only one.
What could I be doing wrong?

Ragnar

>Ragnar,
>
>If you're referring to my ZServer+Apache+SSL HOWTO, this would be a
problem.
>Going in through https will only give you access to the 'ssl' directory.
>The quick & dirty solution (while retaining the ability to distinguish
>between http and https) is to reverse the setup, i.e. place the https
>SiteRoot in the main folder and create a separate folder called, say,
>'http', which holds the http SiteRoot.  This solution will kill two birds
>with one stone: it will grant access to the entire site via https while
>restricting http users to an empty subdirectory.
>
>Hope this helps,
>T.J.
>
>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
>Ragnar Beer
>Sent: Wednesday, August 02, 2000 1:30 AM
>To: [EMAIL PROTECTED]
>Subject: [Zope] zope/proxy_pass configuration problem
>
>
>Hi Zope-Configuristas!
>
>I would finally like to say goodbye to pcgi but one thing keeps me
>hooked. I tried and tried but the solution just won't appear. Here is
>the problem:
>
>I have a site that is supposed to be reachable via http as well as
>via https. That's not a problem per se. Configuration of zope with
>proxy_pass is easy as can be. The problem is that management shall be
>possible via https _only_ (for obvious reasons). But as soon as I use
>site access to define the http-branch this branch is not
>managable/accessable via https any more. Is there a solution?
>
>Ragnar
>
>___
>Zope maillist  -  [EMAIL PROTECTED]
>http://lists.zope.org/mailman/listinfo/zope
>**   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] Packing with cron

2000-08-03 Thread Jason Spisak

Zopists,

I am attemtping to use cron to pack my ZODB.  I am using lalo's cron
how-to and lynx.  However when I visit
http://myhost:8080/Control_Panel/Database/manage_pack nothing happens. 
Here is the command I am using in Zope 2.1.6:

lynx -auth superuser:superuserpasswd -source
http://myhost:8080/Control_Panel/Database/manage_pack

Is there anything obviously skewed about this?  Has anyone else tried it
with success?

Thanks in advance,

Jason Spisak

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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

2000-08-03 Thread T.J. Mannos

Rodrigo,

Two ways I can think of, just off the top of my head:

1. If you want just certain directories to have a different
standard_error_message, create a standard_error_message method in those
directories.  (I've heard people complain of problems with this method,
though).

2. Encapsulate your document or method with  /  tags,
as such:

...
your DTML method here
...




Then let me know if it works, becuase I might try the same thing.  :)

- T.J.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Diego
Rodrigo Neufert
Sent: Thursday, August 03, 2000 8:40 AM
To: [EMAIL PROTECTED]
Subject: [Zope] standard_error_message


Hi.

Anyone know how to specify other error msg file?
I want the standard_error_message to still be my default error msg file but
for
some dtml's I want to change it...

Thanks

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

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


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




[Zope] Zope Usage

2000-08-03 Thread Marc Dullien

Hi,

I was taking a first look at Zope today. Now I am looking for a certain
feature and couldn't quite find it.If you could send me an URL where to look
for the Info I need, Thanks !

Q1: With what tool inside Zope do I program the HTML Templates ?
Q2: I want to fill those templates with database entries
Q3: How can I do the linkage

I want to seperate the Site developemant friom the content entry, so that
the content people don't have to know one word of HTML and the HTML guys
don't have to worry about the contetnt.

If you could send me a short Howto or something, that would be great, I can
find ma way through from there !

Marc

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Static X Dynamic

2000-08-03 Thread Rogerio Atem de Carvalho

Hi,

I have a site with 1,000 static HTML pages containing 
images and text (in portuguese and english). I need:

1) Enable full text search

2) Create a mechanism to automatically generate more 
pages and put everything together in Zope.

3)Work under Zope versions 2.1.6 and 2.2

I know some alternatives but I would like to have some 
advice about them:

1) Migrate everything to a DB like MySQL, using ZSQL 
methods to do search, insert etc...
(I'm doing it now and it works, but don't know if it 's 
the best solution...)

2)Use Metapublisher and Zcatalog- In this case how can 
I represent one to many relationships (one document to 
many images)???

3)Use Metapublisher and a RDBMS- same question above.

Or:

4)Use ZCatalog alone - In this case, how can I do full 
text search?

5)Use BTreeFolder - same question above.

6)Use LocalFS - same question above.

7)Put everything under Yihaw! structure (it would be a 
nice solution in terms of interface...)- same question 
above.

Is there another soluction not listed above, or a mix 
of solutions?

What is the best solution in terms of speed and 
maintenance?

Regards,

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

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




[Zope] anyone got a foolproof 2.1.6 -> 2.2.0 via import schema?

2000-08-03 Thread Tony McDonald

I get KeyErrors from 2.2.0 with an Error value of a rubbish character 
when trying to import a folder of various objects. This also happens 
when trying to import the XML version, except the Error Value is 'id' 
(but with no idea of where the error is in the XML file ... 
irritating).

any ideas? this is driving me up the bloody wall.
ta
tone
--
Dr Tony McDonald,  FMCC, Networked Learning Environments Project 
http://nle.ncl.ac.uk/
The Medical School, Newcastle University Tel: +44 191 222 5888
Fingerprint: 3450 876D FA41 B926 D3DD  F8C3 F2D0 C3B9 8B38 18A2

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




[Zope] standard_error_message

2000-08-03 Thread Diego Rodrigo Neufert

Hi.

Anyone know how to specify other error msg file?
I want the standard_error_message to still be my default error msg file but for
some dtml's I want to change it...

Thanks

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

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




Re: [Zope] How-To: Dropbox date entry for html forms

2000-08-03 Thread Loren Stafford


Your example in a How-To may well be useful. However, I think you have
maligned the DateTime method. It is quite flexible about the input formats
it accepts. Have you read the extensive documentation in
../lib/python/DateTime/DateTime.py?

-- Loren

- Original Message -
From: "Darran Edmundson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: August 03, 2000 12:49 AM
Subject: [Zope] How-To: Dropbox date entry for html forms


> In building my first Zope site and training content providers to use
> the management interface, I quickly encountered requests for an easier
> means of entering dates (as opposed to the default "1966/09/30" format).
>
> I've written up a quick How-to that contains a DTML utility method
> for incorporating droplist selectable dates in html forms.  Before
> I make it (more) public, I'd appreciate some feedback.  Any objections
> to the implementation?  What do you think about placing short
> utility methods in How-To's rather than Products?
>
>  http://www.zope.org/Members/darran/select_date
>
> Cheers,
> Darran.
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   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] Numeric Check

2000-08-03 Thread Diego Rodrigo Neufert

Thanks johan

Your trick about types worked!
Look:

try:
fone_res = string.atoi(fone_res)
except ValueError:
err = err + "ERR MSG"

On Thu, 03 Aug 2000, you wrote:
> I think extending the input-tag name with :float, :int, or :long and 
> test with type() from python would do the trick. 
> I havn't tested it but theoreticly it should work.
> 
> For more info on form field definitions check out Zen's
> How-To: Form Variable Types and Typechecking.
> 
> (I have used :tuple to submit a sequences of strings in a get request, e.g. url? 
>varname:tuple=first_string&varname:tuple=second_string...)
> 
> //johan
> 
> 
> 
> 
> > Hi..
> > 
> > What's the best way to check if self.REQUEST.form.get('int_field') just contains
> > numeric data in a external method?
> > 
> > Thanks...
> > 
> > -- 
> > ---
> > Diego Rodrigo Neufert
> > -webmaster
> > ---
> > (Magic Web Design)
> > (email) ([EMAIL PROTECTED])
> > (curitiba) (pr)
> > 
> > ___
> > Zope maillist  -  [EMAIL PROTECTED]
> > http://lists.zope.org/mailman/listinfo/zope
> > **   No cross posts or HTML encoding!  **
> > (Related lists - 
> >  http://lists.zope.org/mailman/listinfo/zope-announce
> >  http://lists.zope.org/mailman/listinfo/zope-dev )
> > 
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
-- 
---
Diego Rodrigo Neufert
-webmaster
---
(Magic Web Design)
(email) ([EMAIL PROTECTED])
(curitiba) (pr)

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




[Zope] User roles in different folder (Copy roles?)

2000-08-03 Thread Peter Bengtsson

I have given my friends a folder of their own on my Zope site.
/root
/friends
/friend_ONE
/friend_TWO
/friend_THREE

All my friends are Manager of their own folder.
Now, me and my friends have folder called /images. And I want everybody with
a friend folder of their own and me to have access to the /images folder.
All they can do is upload images.
/root
/friends
/friend_ONE
/friend_TWO
/friend_THREE
/images

How do I use the User permissions in each /friend folder to give them access
to the /images folder?
I don't have many friends so I can hand code it if I must. (prefer not to,
if the marry and change name later on)

[ Shame on my for I haven't read through the e-books I ordered from
Beehive.de ]

Peter Bengtsson - bloody good programmer




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




Re: [Zope] tree plus/minus url

2000-08-03 Thread Chris Withers

Ragnar Beer wrote:
> The idea is to "export" the piece of code that puts together the url
> to treeData['tree-item-clickurl'] so that you can access it with
>  within your tree-tag. I haven't checked
> this for unwanted side effects. Perhaps someone more familiar with
> the zope code could do that? For me it works fine!

Sounds cool, maybe post it in the collector?

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] acquisition vs. inheritance

2000-08-03 Thread Chris Withers

Bob Horvath wrote:
> I would have thought it would have gone up a layer for index_html,
> 
> but then would have discovered content at the lower layer.

Sounds like your index_html is a DTML Document when it should be a DTML
method...

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] tree plus/minus url

2000-08-03 Thread Ragnar Beer

I found quite an easy solution for Zope 2.1.6:

In lib/python/TreeDisplay/TreeTag.py you have to replace the "old 
code" with the "new code". (Blame me - I forgot to make a copy 
beforehands which keeps me from using diff.)

The idea is to "export" the piece of code that puts together the url 
to treeData['tree-item-clickurl'] so that you can access it with 
 within your tree-tag. I haven't checked 
this for unwanted side effects. Perhaps someone more familiar with 
the zope code could do that? For me it works fine!

Ragnar


Line 372:
 
 # Mostly inline encode_seq for speed
 s=compress(str(diff))
 if len(s) > 57: s=encode_str(s)
 else:
 s=b2a_base64(s)[:-1]
 l=find(s,'=')
 if l >= 0: s=s[:l]
 s=translate(s, tplus)
 

 script=md['SCRIPT_NAME']

# old code
#if exp:
#treeData['tree-item-expanded']=1
#output(''
#   '' %
#   (id, root_url, s, id, script))
#else:
#output(''
#   '' %
#   (id, root_url, s, id, script))
# end of old code

# New code
 if exp:
treeData['tree-item-clickurl']= '%s?tree-c=%s#%s' % 
(root_url, s, id)
 treeData['tree-item-expanded']=1
 output(''
'' %
(id, treeData['tree-item-clickurl'], script))
 else:
treeData['tree-item-clickurl']= '%s?tree-e=%s#%s' % 
(root_url, s, id)
 output(''
'' %
(id, treeData['tree-item-clickurl'], script))
# end of new code

 output('\n')

 else:
 if level > 2:   output(_td_colspan % level)
 elif level > 0: output(_td_single  * level)
 output(_td_single)
 output('\n')


>Ragnar Beer wrote:
>>
>>  Howdy!
>>
>>  I've been experimenting with trees for a while and discovered that
>>  almost all innocent first time clickers were clicking on the text
>>  _behind_ the plus and minus images instead on the images themselves.
>>  So I decided to make the text a link with the same url as the image
>>  has but I can't find the right variable. Where is that url stored?
>>  Can anybody help?
>
>Your best bet is to look in the source for the tree tag and see how it's
>done there:
>/lib/python/TreeDisplay/TreeTag.py
>
>cheers,
>
>Chris
>
>PS: Please post back to the list if you find out how ;-)
>
>___
>Zope maillist  -  [EMAIL PROTECTED]
>http://lists.zope.org/mailman/listinfo/zope
>**   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] acquisition vs. inheritance

2000-08-03 Thread Bob Horvath


I am slowly getting the hang of Zope, but am confused about
something.

Either I don't understand how acquisition works, or there is
something special about how index_html is treated.

I had a folder with a index_html that had something like:





Then in the top level folder, I had a "content" object that
I filled in with text.

In a subfolder, I created a content object, but it didn't seem to
override the upper layer one unless I copied down a copy of
index_html.

I would have thought it would have gone up a layer for index_html,

but then would have discovered content at the lower layer.

It seems this would be very powerful, but I am guessing there is a

good reason.  I wondered why standard_html_header and
standard_html_footer seemed to be used everywhere, but I am
starting to see, I think why.

Is it possible to have just one top level object that refers to
other objects that get overridden as you go into other folders?




___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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 + Apache on FreeBSD 4.0 problems

2000-08-03 Thread Steve Spicklemire


Hi Peter,

   Hmm... I've never seen this problem, and I've been using
pcgi/FreeBSD since 2.2.8. I have however seen another problem:

http://lists.zope.org/pipermail/zope/1999-December/016465.html

that has never really been resolved. I'm going to try your
net.local magic to see if that has an effect. I tried the
FreeBSD lists at one time, and never got any response. Maybe
it's time to try them again

-steve

> "Peter" == Peter Haight <[EMAIL PROTECTED]> writes:


Peter> This is due to some sysctl settings:
Peter> net.local.stream.recvspace and
Peter> net.local.stream.sendspace. They are set to 8192.

Peter> I adjusted mine to 65536 using the following two commands:
Peter> sysctl -w net.local.stream.recvspace=65536 sysctl -w
Peter> net.local.stream.sendspace=65536


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Numeric Check

2000-08-03 Thread Zope

I think extending the input-tag name with :float, :int, or :long and 
test with type() from python would do the trick. 
I havn't tested it but theoreticly it should work.

For more info on form field definitions check out Zen's
How-To: Form Variable Types and Typechecking.

(I have used :tuple to submit a sequences of strings in a get request, e.g. url? 
varname:tuple=first_string&varname:tuple=second_string...)

//johan




> Hi..
> 
> What's the best way to check if self.REQUEST.form.get('int_field') just contains
> numeric data in a external method?
> 
> Thanks...
> 
> -- 
> ---
> Diego Rodrigo Neufert
> -webmaster
> ---
> (Magic Web Design)
> (email) ([EMAIL PROTECTED])
> (curitiba) (pr)
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
> 

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




Re: [Zope] different pages depending of the role....

2000-08-03 Thread Phil Harris

Vincent,

It's perfectly possible:


this is the management page

this is the normal members page

This is the joe public page


hth

Phil
[EMAIL PROTECTED]

- Original Message -
From: "Vincent" <[EMAIL PROTECTED]>
To: "[Zope Org] (E-mail)" <[EMAIL PROTECTED]>
Sent: Thursday, August 03, 2000 1:43 PM
Subject: [Zope] different pages depending of the role


> Hi,
>
> is it possible with Zope, to display different pages depending on the
roles
> of the logged people ?
>
> Thanks
>
> Vincent
>
> PS : If it is in a documentation, which one ? Thanks again
>
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   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] Numeric Check

2000-08-03 Thread Diego Rodrigo Neufert

Hi..

What's the best way to check if self.REQUEST.form.get('int_field') just contains
numeric data in a external method?

Thanks...

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

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




[Zope] different pages depending of the role....

2000-08-03 Thread Vincent

Hi,

is it possible with Zope, to display different pages depending on the roles
of the logged people ?

Thanks

Vincent

PS : If it is in a documentation, which one ? Thanks again


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] request for advice

2000-08-03 Thread Marcin Kasperski

> I started with popen2 and friends.. but that didn't seem to play well
> with Zope... probably mixing processes and threads is a bad idea... I
> dunno. Anyway I'm not sure of the best way to do this in Windows. Of
> course, ulitmately Shane Hathaway's idea of having a separate 'mini
> cvs servelet' process running that zope communicates with via tcp/ip
> could be the best way to add security and platform independence, but
> it sounds like a fair amount of extra complexity to me, esp when I
> don't have a lot of 'free time' to implement such a strategy.
> 
> Any thoughts about this?

Just the redirect idea: WinCVS (www.wincvs.org) uses some method of
embedding CVS inside Windows application (IIRC they even separate CVS
access methods into some DLL). The application is open source, maybe
there is some idea to borrow? 

Warning: to say the truth, I have never read WinCVS sources. But I used
WinCVS ;-)

--
 www.mk.maxi.pl  | People resist change, regardless of what it is.  
Marcin.Kasperski | (Michael Reed)   
  @softax.com.pl |  
@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] dtml-calendar question (still not working)

2000-08-03 Thread tom smith

on 3/8/00 10:14 am, Chris Withers at [EMAIL PROTECTED] wrote:

> "R. David Murray" wrote:
>> 
>> On Thu, 3 Aug 2000, Andrew Kenneth Milton wrote:
>>> | Well, yeah.  A restricted python environment.  The point being, it follows
>>> | python syntax rules .
>>> 
>>> kind of... :-)
>> 
>> In what way does it *not* follow Python (expression) syntax rules?
> 
> _['something'] doesn't just return the value from the dictionary which
> has the 'something' key, if it's callable, it'll try to call it and then
> return that... not nice :(
> 
> If you want to be safe, use _.getitem('something',0)...

I'm still getting allsorts of errors. My code is like this...













I'm having trouble passing StartDateString to get_days_events. If I look at
StartDateString using  it looks OK.

one last attempt anyone?

cheers

tom


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




Re: [Zope] Property Problem (type converting)

2000-08-03 Thread Chris Withers

Sven Hohage wrote:
> I like the property of a folder being a list, because new entries should
> be automatically updated(strings with the current month-name).
> I've tried tokens but it's not working correctly.
> 
> 
>  oldTime})">//months is the token-property
> 

What is MonthNow? Property? REQUEST variable?
What is oldTime? IS it also a property?

What do you actualyl want stored in 'months'?

> The problem is that every new entry is a single list.I've tried
> type-converting but it's not working for me.

Sorry, but that doesn't make a lot of sense to me, try rephrasing :S
What do you mean by a 'single list'?
What sort of type-conveting did you try?

Sorry for all the questions ;-)

Hope I can help,

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] LDAPAdapter?

2000-08-03 Thread Marko MARKOVIC

hi all,

have a little problem with LDAPAdapter.
I have a working directory server using LDAP protocol.
When i create the LDAPAdapter in Zope it works fine, but when a user want to
connect to my site, he gets an authentication error. But the user exists in
the directory server.

Can someone explain me how to use the LDAPAdapter correctly?

$Regards
MM



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




Re: [Zope] tree plus/minus url

2000-08-03 Thread Chris Withers

Ragnar Beer wrote:
> 
> Howdy!
> 
> I've been experimenting with trees for a while and discovered that
> almost all innocent first time clickers were clicking on the text
> _behind_ the plus and minus images instead on the images themselves.
> So I decided to make the text a link with the same url as the image
> has but I can't find the right variable. Where is that url stored?
> Can anybody help?

Your best bet is to look in the source for the tree tag and see how it's
done there:
/lib/python/TreeDisplay/TreeTag.py

cheers,

Chris

PS: Please post back to the list if you find out how ;-)

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




Re: [Zope] tree expand by date

2000-08-03 Thread Chris Withers

Sven Hohage wrote:
> 
> Hallo,
>  I've searched in the mailing archive about the question how to expand a
> 
>  particular branch but I didn't find anything.
>  That's my problem: I'm building a newsboard and when you want put a new
> 
>  message on it, the correct day should be opened.
>  Example->   + June
>  +July
>   - August
>  -16.
> 
>  I hope you've got an idea.

You need to manipulate a REQUEST variable called tree-e that may or may
not exist. It's not documented so you'll need to look in
/lib/python/TreeDisplay/TreeTag.py to find out how to do so. You'll also
probably need to do the manipulation in an external method :S

HTH,

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] form to a email in a correct presentation ?

2000-08-03 Thread Chris Withers

Vincent Maton wrote:
> Thank you a lot for your help, it's very kind of you.
> Now with your idea, I get the date separetely but I need to get the first
> date with
> 00-09-10    
> and the second date as the same
> 00-09-17    
> and the next as the same and always like that...
> Can you help me to correct this ???

I'm guessing this information is coming from an HTML form?
If so, can you post me the HTML of the form?

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

2000-08-03 Thread Chris Withers

Jean Jordaan wrote:
> Hmm, "Note: there are big bunches of bugs still." I guess
> I shouldn't try to premiere a snazzy intranet on this by
> Friday ..

Er, no ;-)

> Do you know if there are stable core features (basically
> users joining and submitting news items) that one could use?
> I.e. will I be OK if I stay off the bleeding edge? I suspect
> the answer is that the PTK is ALL bleeding edge still ..

The PTK is mainly bleeding edge but there are people using it for real
worl apps. If you want to do so, you will probably need to be
comfortable hacking the PTK python source.

There's a big change which I think Shane Hathaway is working on right
now which should make a lot of the needs to do this go away.

> Actually, looking at
>   http://www.zope.org//Products/PTK/ZWiki/PTKInstallation
> I think I better back off for a bit. I'm still on Zope 2.1.6
> (last I looked Squishdot didn't do 2.2) and it looks like PTK
> wants 2.2 ..

Don't think the PTK needs 2.2.
And I am working on Squishdot ;-)

Parting advice would be to join the [EMAIL PROTECTED] mailing list and
look out for any interesting developments.

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] create DTML-Source-link like on zope.org

2000-08-03 Thread Chris Withers

Svante Kleist wrote:
> Also, document_src() is a "Python method" function
> included in the "Python Method" product

Sorry but that simpyl isn't true :S

The method below works on a slightly patched Zope 2.1.6 with no Python
Methods product installed...

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] Change db connect string in python or dtml

2000-08-03 Thread Chris Withers

Craig Allen wrote:
> As a quick and dirty alternative (untested), just edit your connection
> parameters in your Mysql connector to point to the different server (you'll want
> to close the connection first, I expect).

I think this is probably the best way to do it :-)

The idea behind a database connector is that it abstracts the connection
information into a seperate object so you only have to change the
connection string in one place to change what DB a group of methods are
using.

As longs as the DBs have the same schema it should work just fine.

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] dtml-calendar question.

2000-08-03 Thread Chris Withers

"R. David Murray" wrote:
> 
> On Thu, 3 Aug 2000, Andrew Kenneth Milton wrote:
> > | Well, yeah.  A restricted python environment.  The point being, it follows
> > | python syntax rules .
> >
> > kind of... :-)
> 
> In what way does it *not* follow Python (expression) syntax rules?

_['something'] doesn't just return the value from the dictionary which
has the 'something' key, if it's callable, it'll try to call it and then
return that... not nice :(

If you want to be safe, use _.getitem('something',0)...

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] Security (proxy role??)

2000-08-03 Thread Sven Hohage

Hi,
I've got two questions.
1.Is Zope 2.2.0 masking the length of the passwords?
2. the more important->
I'm using a method to change properties by form. The user i.e. Tim has
the role manager in the highest user_folder and acquisition is kept but
Zope tells me that the user is not authorized.  Why???
 Thanks!




___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Security Problem

2000-08-03 Thread Sven Hohage

Hi,
I've got two questions.
1.Is Zope 2.2.0 masking the length of the passwords?
2. the more important->
I'm using a method to change properties by form. The user i.e. Tim has
the role manager in the highest user_folder and acquisition is kept but
Zope tells me that the user is not authorized.  Why???
 Thanks!


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Retrieving the week number with DateTime

2000-08-03 Thread Gijs Reulen

There is a standard for calculating weeknumbers. It is in an ISO standard,
but I do not know the number of it. I implemented it in another application
a while back. I got it from the NNI, the Dutch national 'ISO' which follows
the ISO standards on this.

The standard: the first day for calculating is the monday. If four or more
days are in the old year, then the week is the last week of the old year. If
four or more days are in the new year then it is the first week of a new
year.
I concluded from this that the Thursday is crucial: if it in a new year then
it is week 1.

Gijs Reulen

> -Oorspronkelijk bericht-
> Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Namens Tim Cook
> Verzonden: donderdag 3 augustus 2000 6:34
> Aan: David Coe; Zope List
> Onderwerp: Re: [Zope] Retrieving the week number with DateTime
>
>
> David Coe wrote:
> >
> > I suspect there is no 'standard' definition of week number.
> >
>
> I asked this on a list with a bunch of accounting types and got
> the same reply.  It is 'generally' associated with payroll or tax
> periods.
>
> Once you have a 'definition' for Jan 1 of the current year and
> the day of the week that 'your' week starts on then you could use
> David's suggestion(s).
> Either you or your customer has to define those two things first.
>
> -- Tim Cook --
> FreePM Project Coordinator - http://www.freepm.org
> OS Healthcare Alliance Supporter - http://www.oshca.org
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] ZODBCDA fails under 2.2

2000-08-03 Thread Diny van Gool

At 09:36 3-8-00 +0200, [EMAIL PROTECTED] wrote:
>> I'm trying to access data via the ZODBCDA latest build and Zope 2.2 
>> Whenever the ODBC query returns data, the user is challenged for
>authentication. 
>> Pages that do not use ODBC and database methods that return empty sets are
>not challenged. 
>>
>> Has anyone else encountered this? 
>Yes, I have the same problems with ZODBCDA and Zope-2.2. I still haven't
>found out what
>exactly causes this error.

Have you tried this patch? You can find it at:

http://zope.nipltd.com/public/lists/zope-archive.nsf/ByKey/1B0EA8EF64524A02

Diny


DIVA, Faculty of Veterinary Medicine
Utrecht University,  The Netherlands
http://www.vet.uu.nl 

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




[Zope] How-To: Dropbox date entry for html forms

2000-08-03 Thread Darran Edmundson

In building my first Zope site and training content providers to use 
the management interface, I quickly encountered requests for an easier
means of entering dates (as opposed to the default "1966/09/30" format).

I've written up a quick How-to that contains a DTML utility method
for incorporating droplist selectable dates in html forms.  Before
I make it (more) public, I'd appreciate some feedback.  Any objections
to the implementation?  What do you think about placing short 
utility methods in How-To's rather than Products?

 http://www.zope.org/Members/darran/select_date

Cheers,
Darran.

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] ZODBCDA fails under 2.2

2000-08-03 Thread a . wacknitz

> I'm trying to access data via the ZODBCDA latest build and Zope 2.2 
> Whenever the ODBC query returns data, the user is challenged for
authentication. 
> Pages that do not use ODBC and database methods that return empty sets are
not challenged. 
>
> Has anyone else encountered this? 
Yes, I have the same problems with ZODBCDA and Zope-2.2. I still haven't
found out what
exactly causes this error.

>
> In my configuration, anonymous has acquired "Access", "View" and "use db
methods" rights. 
> I've also tried with explicit rights. 
It doesn't work for me as a manager either...

Andreas
**
This email message has been swept by MIMEsweeper for the presence of
computer viruses.

Francotyp-Postalia AG & Co.


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] LDAP-Zope

2000-08-03 Thread Marko MARKOVIC

Hi all,

In LDAP i have an object with name and passwordobject. With Zope LDAP
method, can i see this password?

I have a login window created in Zope and when a user will login i must
control if the user exists. How can i do this?

Any ideas?


$Regards
MM


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