[Zope] ZSQL Method's Precision

2006-10-23 Thread Jason C. Leach

Hi:

In a PostgreSQL DB I have a Numeric data type with a precision of two
decimal places. If I have 1.33 in as the result from my query, it's
everything is good. However, if I have 1.30 it reduces the precision
to one decimal place and I get 1.3. Not so good when dealing with
currency ( I don't want to use the money data dype ).

Any ideas on how I can get my ZSQL method to keep two decimal places?

Thanks,
Jason.


--

.... Jason C. Leach
 PGP Key: 0x62DDDF75
 Keyserver: gpg.mit.edu
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Process uploaded text file.

2006-04-26 Thread Jason C. Leach
Hi,

Does anyone have an example (URL is fine) on how to processes a text
file via a Python script that has been uploaded from a web form?

Thanks,
Jason.

--

 Jason C. Leach
 PGP Key: 0x62DDDF75
 Keyserver: gpg.mit.edu
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] How to do this trick..

2006-03-27 Thread Jason C. Leach
Hi,I'm wondering how I can do this little trick (sp_info is a globaly devide var, it's a dictionary obj):        tal:content="group"
    tal:attributes="onmouseover string:doTooltip(event, '${sp_info/${group}/common_name}')"     >    
So based on my the value of 'group' from my repeat, I want to use the value to look up another value in a different dictionary.  It works if I do this:  (event, '${sp_info/whatever/common_name}') but does not like me using the embedded ${group}.
Thanks,Jason.--  Jason C. Leach PGP Key: 0x62DDDF75 Keyserver: gpg.mit.edu
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Double quote in ZSQL Method

2006-02-20 Thread Jason C. Leach
Hi,

In a ZSQL Method, I have tablename.
and I get tablename.'species_value', what I need is
tablename."species_value".  Any idea how I can get Zope/ZSQL to not
put in the single quotes (or use double quotes)?

Thanks,
Jason.

--
........
 Jason C. Leach
 PGP Key: 0x62DDDF75
 Keyserver: gpg.mit.edu
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Render image from external method.

2006-02-15 Thread Jason C. Leach
Hi,

I'm wondering how I can render an image from an external method
without creating a permanent image object in Zope?  What I have is a
python script I call in my ZPT.  The python script does some things,
and calls an external method that returns PNG image data. If I do
tal:attributes="src python:python_script()" What I get is the string
containing the PNG image data, but it's not rendered.

An example of what I get is: 

Any ideas?  I don't really want to create a permanent image object,
and I know that will work because I have used it to create thumbnail
images before.

Thanks,
Jason.

--
........
 Jason C. Leach
 PGP Key: 0x62DDDF75
 Keyserver: gpg.mit.edu
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Problem with strftime.

2005-10-13 Thread Jason C. Leach
Hi:

If I use this line in a Python script:
   print row['end_date'], row['end_date'].strftime('%d')
I get:
   2005/10/13 12

You can see the day is out by one. Should be 13, but is gets converted
as 12.  So I'm curious what's up with that?

  Zope Version
(Zope 2.8.1-final, python 2.4.0, freebsd5)
Python Version
2.4 (#2, Aug 25 2005, 15:17:08) [GCC 3.4.2 [FreeBSD] 20040728]

Thanks,
Jason.

--
........
 Jason C. Leach
 PGP Key: 0x62DDDF75
 Keyserver: gpg.mit.edu
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Uptime.

2001-01-26 Thread Jason C. Leach

hi,

I was reading in Linux Journal about the Netcraft survey.  They mention
some stats on Zope.  I think a few of the hosts with really good up-times
were using FreeBSD and Zope, if not that it was Linux and Zope.

j.

..
. Jason C. Leach
... University College of the Cariboo.
.. 


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

2001-01-22 Thread Jason C. Leach

hi,

I'm kind of surprised that Active State has such a big promo on Zope.org's
site considering they use IIS; and considering the blurb talks about how
much they do for Open Source.

j.

......
..... Jason C. Leach
... University College of the Cariboo.
.. 


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

2001-01-17 Thread Jason C. Leach

hi,

Ya.  I think there was one doing about 1M a day.  Some UK site.  Have a
look on Zope.org for the links to other sites.

Perhaps it was www.trouble.co.uk 

j.

..
. Jason C. Leach
... University College of the Cariboo.
.. 

On Wed, 17 Jan 2001, Vincent Stoessel wrote:

> Doh!
> I meant to say 200-300,000 pageviews per day.
> Thanks for all the responses so far.
> 
> Vincent Stoessel wrote:
> 
> > Hello All,
> > How does Zope respond under heavy load? can Zserver handle
> > serving out 200-300 zope pages per day on a busy website?
> > Would it be better to use pcgi to plug it into apache?
> > Thanks in advance.
> 
> 
> -- 
> Vincent Stoessel [EMAIL PROTECTED]
> Internet Applications Engineer
> IDEV http://www.idev.com
> V: 301 495 7345 x129
> 
> 


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

2001-01-17 Thread Jason C. Leach

hi,

Well. You can purchas support can you not?  I mean that is how the company
makes it's money right? Some companies charge for the product and give you
some service, other give you the product and you purchas support.

If you don't want to pay for a product or support they you get what is
avail.

I use Enhydra also because I do Java at Uni.  If somone came to me and
said I need a web app to do X I would do it in Zope.  

j.

......
..... Jason C. Leach
... University College of the Cariboo.
.. 

On Wed, 17 Jan 2001, Michael Bernstein wrote:

> Ron Bickers wrote:
> 
> I can give you a personal example. When I was trying to get
> LoginManager to display it's stored users in the local roles
> 
> After a week of crawling around in Zope's source (and a lot


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

2001-01-17 Thread Jason C. Leach

hi,

To comment on this part.  I suspect it's that way with any product.  I can
name plenty of producs Windows or Linux based that I have had to sit down
at as a novice, then that pases and I get better at it.  Zope, Linux,
Windows 2000 (ADO) all have done that to me.

j.

..
. Jason C. Leach
... University College of the Cariboo.
.. 

On Wed, 17 Jan 2001, Michael Bernstein wrote:

> However, for a programmer who had to come into the Zope
> environment 'cold', the problem would likely have seemed
> intractable. They wouldn't have even known where to look,


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

2001-01-17 Thread Jason C. Leach


hi,

I think ABC News New York also does Zope.

j.
..
. Jason C. Leach
... University College of the Cariboo.
.. 

On Wed, 17 Jan 2001, Chris Withers wrote:

> > Doh!
> > I meant to say 200-300,000 pageviews per day.
> > Thanks for all the responses so far.
> 
> I think www.zdnetindia.com (url?) takes about 800,000 hits a day on a single
> dual-PIII, but that might have been a while ago.
> 
> IIRC, there's a mailing list or wiki somewhere to do with high
> performance/availability Zope somewhere.
> 
> I wonder if that's still going?
> 
> 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] Postgresql Query.

2001-01-16 Thread Jason C. Leach

hi,

I'd like to learn a bit more on how to do a SQL query on a postgres DB
from Zope.  Like how to do it, what is better DTML or Python for it, and
how would I do it in DTML (I can probably get python working fine).

j.

..
. Jason C. Leach
... University College of the Cariboo.
.. 


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




Re: [Zope] Authentication problems on FreeBSD with Apache

2001-01-11 Thread Jason C. Leach

hi,

Did you create an Administrators account in zope and set the passwd for
it?

j.

..
. Jason C. Leach
... University College of the Cariboo.
.. 

On Thu, 11 Jan 2001, Drew Sanford wrote:

> I have recently installed Zope on FreeBSD running the Apache web server. 
> When I attempt to access the management page from 
> http://my.web.server/cgi-bin/Zope.cgi I get authentication failures. I'm 
> sure there are things that I've missed in what I've seen, and the 
> section on running Zope with Apache in the manual isn't done yet. Can 
> anyone point me towards some of the known issues here as far as what 
> someone clueless about Zope but reasonably familiar with Apache might 
> need to do to get authentication working?
> 
> 


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

2001-01-10 Thread Jason C. Leach

hi,

Is the Zope log file in Common Log File Format?

j.

..
. Jason C. Leach
... University College of the Cariboo.
.. 


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

2000-12-21 Thread Jason C. Leach

hi,

Has anyone ever seen an error like this while logging out of world pilot?
Or how I might be able to correct it by hand?

Thanks,
j.


AttributeError
Sorry, a Zope error occurred.
Traceback (innermost last):
  File /usr/local/www/Zope/lib/python/ZPublisher/Publish.py, line 222, in
publish_module
  File /usr/local/www/Zope/lib/python/ZPublisher/Publish.py, line 187, in
publish
  File /usr/local/www/Zope/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
(Object: RoleManager)
  File /usr/local/www/Zope/lib/python/ZPublisher/Publish.py, line 171, in
publish
  File /usr/local/www/Zope/lib/python/ZPublisher/mapply.py, line 160, in
mapply
(Object: logoff)
  File /usr/local/www/Zope/lib/python/ZPublisher/Publish.py, line 112, in
call_object
(Object: logoff)
  File /usr/local/www/Zope/lib/python/Products/WorldPilot/WorldPilot.py,
line 2199, in logoff
(Object: RoleManager)
  File /usr/local/www/Zope/lib/python/Products/WorldPilot/WorldPilot.py,
line 2153, in displayIfLoggedOn
(Object: RoleManager)
  File /usr/local/www/Zope/lib/python/Products/WorldPilot/WorldPilot.py,
line 369, in callResource
  File /usr/local/www/Zope/lib/python/Products/WorldPilot/Resource.py,
line 137, in callResource
  File /usr/local/www/Zope/lib/python/DocumentTemplate/DT_String.py, line
528, in __call__
(Object: )
  File /usr/local/www/Zope/lib/python/DocumentTemplate/DT_Util.py, line
337, in eval
(Object: logoffLogin(REQUEST))
(Info: REQUEST)
  File , line 0, in ?
  File /usr/local/www/Zope/lib/python/Products/WorldPilot/WorldPilot.py,
line 2081, in logoffLogin
(Object: RoleManager)
  File /usr/local/www/Zope/lib/python/Products/WorldPilot/WorldPilot.py,
line 2118, in getLogon
(Object: RoleManager)
  File /usr/local/www/Zope/lib/python/Products/WorldPilot/WorldPilot.py,
line 2045, in logon
(Object: RoleManager)
AttributeError: 'string' object has no attribute 'has_key'

......
. Jason C. Leach
... University College of the Cariboo.
.. 


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

2000-12-06 Thread Jason C. Leach

hi,

You shoud add it to the Zope site's list of Zope sites.

j.

..
. Jason C. Leach
... University College of the Cariboo.
.. 



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

2000-12-06 Thread Jason C. Leach

hi,

How long did it take?  And what level of Zope(xpertese) where you at whe
you started?  Did you have to do that shopping cart from scratch?

j.

..
. Jason C. Leach
... University College of the Cariboo.
.. 

On Wed, 6 Dec 2000, Brad Clements wrote:

> Just announcing this new e-commerce zope based site.
> 
> http://www.adirondackcraft.com
> 
> Come buy something, but don't whack it too hard, this site is still a 
> work in progress (aren't they all?)
> 
> --
> 
> This site was "thrown together" in about 5 days for a disorganized 
> customer, came online just 30 minutes before it's first sale. 
> 
> They had a big ad in the New York Times which pushed the deadline.
> 
> -
> 
> Zope 2.2.4 with Interbase, gvibDA and Wampum Generator running 
> behind Apache with mod_proxy and mod_ssl, on RH Linux 7.
> 
> I'm thinking of writing a white paper on this entire experience, from a 
> consulting point of view and a programmer's viewpoint. Not sure how 
> useful that would be to anyone.
> 
> There were 2 graphics/layout designers and myself working directly with 
> the customer to go from concept to completion in an extremely short 
> timeframe. 
> 
> 
> 
> Brad Clements,[EMAIL PROTECTED]   (315)268-1000
> http://www.murkworks.com  (315)268-9812 Fax
> netmeeting: ils://ils.murkworks.com   AOL-IM: BKClements
> 


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




[Zope] On DTML and Python Script.

2000-12-04 Thread Jason C. Leach

hi,

For Christmas I'd like a way to be able to use PHP or ASP type scripting
rather than DTML.

like:

%py>

My python Script or Code.



My DTML.



Having to manager all those dtml <> and tags is not as good as it could
be.  I suspect it's more of a deturant than anything else. I do agree that
DMTL should be use as little as possible with Python used for anything
over 10 lines.  But why have a scripting language for both methods over
and under 10 lines?

j.

..........
. Jason C. Leach
... University College of the Cariboo.
.. 


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

2000-12-03 Thread Jason C. Leach

hi,

So you think that because you can not get it going it's Zopes
fault? 

Why not ask a specific question, based on what you say below I have no
idea what you are doing or what your problem; this makes it difficult to
write a response. Throw in a few details so we know what you are doing.

I got Zope going on Linux and FreeBSD in under 10 mins each when I first
installed it as a novice.

..
. Jason C. Leach
... University College of the Cariboo.
.. 

On Sat, 2 Dec 2000, Norm LaDuke wrote:

> Can anyone out there tell me why anyone would use a product whose tutorial won't
> even run.  You guys are either INFINITELY more patient than I or you all have
> WAY too much time on your hands.  I'm about 7 hours into this thing and we do
> finally have zope up and running but of course the tutorial doesn't work.
> Requires you to put in an ID then blows up and goes no further.What a piece
> of garbage  (Does my frustration show??)
> 
> 


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

2000-12-03 Thread Jason C. Leach


IMAP is a mail server for the MTA.  It does not have anything to do with
Zope.

j.


..
. Jason C. Leach
... University College of the Cariboo.
.. 

On Sun, 3 Dec 2000, Cymen Vig wrote:

> I'm trying to setup WorldPilot on one server with IMAP running on another.
> The documentation for the install says simply:
> 
> "Set your corresponding IMAP and SMTP servers, if they are not on
> localhost."
> 
> I went ahead and added a MailHost (SMTP) server but how do I add an IMAP
> one?  Do I need to digup a product?
> 
> Thanks,
> Cymen Vig
> [EMAIL PROTECTED]
> 
> 


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




[Zope] Monitoring Zope.

2000-12-03 Thread Jason C. Leach

hi,

A while ago someone was asking about monitoring zope. This is a simple
python script I use to keep an eye on the server.

It's run in cron, every so often it fetches the last known zope PID, and
makes sure zope is still running on it.  If it's not, it runs the Zope
startup script.

I'll eventual improve upon it so it mails me a note and makes a log so I
know if zope starts to bail quite a bit.

j.

......
. Jason C. Leach
... University College of the Cariboo.
.. 


#!/usr/local/bin/python
#
# Simple Zope monitoring script.
# Jason C. Leach. Canada.
#


import string, os

def ScanLines(token, command):
#print 'in ScanLines'

Status = 0

# fetch data
Lines = PipeInput(command)

# cycle through the input
for line in Lines:
# if a line contains the 'daemons' name, just exit gracefully.
Status = string.find(line, token)
#print Status
#print line
# should exit
if Status >= 0:
Status = 1
break
else:
Status = 0

#print 'done ScanLines'
return Status

def PipeInput(command):
# check to make sure the disks are not to full.
#print 'int PipeInput'

# variable decleration
Lines = []

# open pipe to os command
pipe = os.popen(command, 'r')

# fetch input
Lines = pipe.readlines()

# close the pipe
pipe.close()

return Lines

def GetPid(FILE):

fin = open(FILE, 'r')

pid = fin.readline()

fin.close()

return pid



if __name__ == '__main__':

TOKEN = 'Zope'
ZOPEPID = '/usr/local/www/Zope/var/zProcessManager.pid'
CMD = 'ps -p ' + GetPid(ZOPEPID) + ' | grep Zope'
SCRIPT = ' /usr/local/etc/rc.d/zope.sh start'



Status = ScanLines(TOKEN, CMD)
if not Status:
os.system(SCRIPT)

#return 1





Re: [Zope] VHost logs.

2000-11-29 Thread Jason C. Leach

hi,

With Apache in front of zope, do you disable Medusa? And do you need to
set both Apache and Zope to have the vhosts (do I need to set up a vhost
twice?).

Thanks,
j.

..
. Jason C. Leach
... University College of the Cariboo.
.. 

On Wed, 29 Nov 2000, Rob Miller wrote:

> Jason C. Leach wrote:
> 
> > hi,
> > 
> > Has anyone implemented there own logging for Virtual Sites?
> > 
> > I was thinking in the site rules an External Method could be called,
> > passed the Request obj, and from that generate logs for virtual sites.
> > 
> > If anyone has done that, or knows of a better way I'd be interested in
> > hearing it.
> 
> I'm not exactly sure what your goal is... but if you're just trying to 
> generate separate log files for each of your virtual sites, I'm accomplishing 
> that by having my virtual sites proxied behind Apache (using SiteAccess and 
> the ProxyPass directive) and specifying the log files for each VirtualHost in 
> my httpd.conf file.  You can control the contents of the logs using the 
> LogFormat directive; I use the same format for all of my virtual hosts, but I 
> think you can specify a different log format for each host if you desire.
> 
> If you're trying to accomplish something else which requires you to handle the 
> logging on the Zope side of things, then it seems to me that your idea would 
> work, although I'd want to find out how my server performance would be affected...
> 
> Hope this is useful for you,
> 
> rob
> 
> 


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

2000-11-29 Thread Jason C. Leach

hi,

Has anyone implemented there own logging for Virtual Sites?

I was thinking in the site rules an External Method could be called,
passed the Request obj, and from that generate logs for virtual sites.

If anyone has done that, or knows of a better way I'd be interested in
hearing it.

j.
..
. Jason C. Leach
... University College of the Cariboo.
.. 



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

2000-11-29 Thread Jason C. Leach

hi,

In linux I would just whip up a cron job, or script to keep an eye on
it.  In Linux (Unix) in's much easier to do your own restart method that
it is with any of the windows so ...

j.

..
. Jason C. Leach
... University College of the Cariboo.
.. 

On Wed, 29 Nov 2000, Martin Winkler wrote:

> Hi listies,
> 
> maybe someone of you heard of a feature that Zope can restart itself when
> it dies abnormally. (Linux/Unix version). I found such a service for Windows
> NT, but not for Linux, although I am sure that I saw it a while ago
> somewhere... Is this just a parameter for z2.py or is there a special program for
> this task?
> 
> Hoping for help,
> 
> Martin
> 
> -- 
> Sent through GMX FreeMail - http://www.gmx.net
> 
> 


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




Re: [Zope] Help!!

2000-11-29 Thread Jason C. Leach

hi,

Create a user in acl_users, then use that person to manage the site.

j.

..
. Jason C. Leach
... University College of the Cariboo.
.. 

On Wed, 29 Nov 2000, Ot Ratsaphong wrote:

> Hi,
> I'm new to Zope and have just installed Zope on a Win98 PC.
> 
> I'm trying to install squishdot and TinyTable, but Zope tells me that
> superuser has no permission to install the above products.
> 
> I have created another user called 'admin' with Manager priviledges but I
> don't know how to logout of superuser and login as 'admin'.
> 
> I have tried shutting down Zope and closed off internet explorer and
> restarting again but I still get into superuser.
> 
> If I need to login as a non superuser, how do I do this?
> 
> I have looked for all relevant documentation but can't find anything on
> this.
> 
> Your help would be appreciated.
> 
> TIA
> Ot Ratsaphong
> Canberra, Australia
> 
> 


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

2000-11-28 Thread Jason C. Leach

hi,

Yes. Thats what I'm after. As it stands, during a long session with Zope I
can spend lots of time just interacting with the interface.

j.

..
. Jason C. Leach
... University College of the Cariboo.
.. 

On Tue, 28 Nov 2000, Chris McDonough wrote:

> Faster than HTTP access through a web browser you mean?  For development?
> No really viable way right now.
> 
> - Original Message -----
> From: "Jason C. Leach" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, November 28, 2000 10:19 PM
> Subject: [Zope] Fast Access.
> 
> 
> > hi,
> >
> > Is there a faster way to access Zope? I find I wate too long for page
> > refreshing and updates.
> >
> > j.
> >
> > ..
> > . Jason C. Leach
> > ... University College of the Cariboo.
> > ..
> >
> >
> > ___
> > Zope maillist  -  [EMAIL PROTECTED]
> > http://lists.zope.org/mailman/listinfo/zope
> > **   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] Fast Access.

2000-11-28 Thread Jason C. Leach

hi,

Is there a faster way to access Zope? I find I wate too long for page
refreshing and updates.

j.

..
. Jason C. Leach
... University College of the Cariboo.
.. 


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

2000-11-26 Thread Jason C. Leach


hi,

Also, I'm not sure what this instruction ment:
- If you want to log in a user from another page, create a form which
posts fields called __ac_name and __ac_password to a method which
doesn't have anonymous user access.  (see the example loginForm for an
example)


Thanks,
j.

......
..... Jason C. Leach
... University College of the Cariboo.
.. 



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

2000-11-26 Thread Jason C. Leach


hi,

Those instructions got the ball roling. I have not got it going yet, but
am getting close.

Where do I put my login forms? In the same folder as the acl_users
(LoginManager), or inside the acl_users (LoginManager)?

I have just taken your example and hard coded a user in for now:
def userAuthenticate(self,REQUEST,username,password):
#if self.SQL_authenticate_user(username=username,password=password):
if username=='demo' and password=='demo':
return 1
else:
return 0

And pretty much just cut'n-pasted the example form into my own page for
testing.  I have also added those 4 external methods and Zope seems happy
enough with them.

What I get when I enter my username and password is, noting really. I just
get the same form asking for my user name and pw.


j.



......
. Jason C. Leach
... University College of the Cariboo.
.. 

On Mon, 27 Nov 2000, seb bacon wrote:

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] LoginManager Help.

2000-11-26 Thread Jason C. Leach

hi,

So I have LoginManager installed. The easy part.  Now I'd like to know how
to use it.  To start with, I'd like to authenticate against a standard
acl_users folder or a plane text file w/ username/passwords in it.

I just have no idea how to get cracking on this since the documentation
on LoginManager is pretty short.

I don't mind doing the SQL method, if I don't have to install a 3rd party
Database like mySQL or Postgres. It's a bit of an overkill so several
users.

Thanks,
j.

......
. Jason C. Leach
... University College of the Cariboo.
.. 


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

2000-11-25 Thread Jason C. Leach

hi,

How can I authenticate a user from a form. Pretty much exactly how
zope.org logges you in?

I have looked at both zope.org's login and logged_in (the action for
login) and don't see where it actually goes and checks the
username/password?

The only twist with my setup is, the are authenticating from a acl_users
that is in a sub-folder, not the main site's acl_users.

Thanks,
j.

......
. Jason C. Leach
... University College of the Cariboo.
.. 


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

2000-11-13 Thread Jason C. Leach

hi,

I have an external fs object called ftp, in a folder called ftp. I had to
put it in the folder so I could add users and what not. I would like to
call the object in my index_html so I can do:
http://www.bla.com/ftp rather than http://www.bla.com/ftp/ftp

Can somone help w/ the dtml call?

Thanks,
j.

..
. Jason C. Leach
... University College of the Cariboo.
.. 


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

2000-11-13 Thread Jason C. Leach

hi,

I might atribute any decline in this list to one of several things:

1. Documentation has much improuved, thus people can look up the answers
and not soly rely on this list.
- Zope Book specificaly.
- Training clases.
2. Many of the people are now way past the general skill level in this
list and have lost interest.
3. Alt. sources of info like: irc.zope.net #Zope

It's obvious when you see companies like www.cbsnewyork.com runing zope
that it is gaining in market penetration.

j.

..
. Jason C. Leach
... University College of the Cariboo.
.. 

On Mon, 13 Nov 2000, Max M wrote:

> From: Hung Jung Lu
> 
> >From the mailing list volume in the last 3 months, it is not hard to see
> >that there is a steady decline. This compared to the trend of last two
> years
> >(doubling volume every year), should probably raise a red flag.
> 
> My experience here is that the list isn't much help. It can be very hard to
> get a question answered!
> 
> Especially when it gets out of the "Hello World" level.
> 
> And when a question eventually do get answered it is often terse and hard to
> understand.
> 
> It would be nice if more of the devlopers would spend some time on this
> list, as it would really save those of us still learning a LOT of time.
> 
> Coming from the Python list this is really a big difference. If I have a
> Python question I get an answer very quickly from the top Python guys. On
> this list I hardly ever see the top guys, and it can be really frustrating
> sitting with a problem for hours or days knowing that somebody could solve
> it in a few minutes.
> 
> I am using the 2 minutes rule myself. Any qustion that I can answer in less
> than 2 minutes I will. 2 minutes isn't to much so I can answer a reasonable
> amount of questions and still get work done. When I get better I will be
> able to solve harder problems in 2 minutes.
> 
> If only somebody better would take 2 minutes to solve some of my questions
> :-)
> 
> Regards
> 
> Max M
> 
> 


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

2000-11-09 Thread Jason C. Leach


hi,

do you have these two:
http://www.zope.org/Members/michel/ZB/
http://zdp.zope.org/projects/zqr

j.
..
. Jason C. Leach
... University College of the Cariboo.
.. 



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

2000-11-09 Thread Jason C. Leach

hi,

I have the same prob. Although I have not implemented it yet, I was
thinking of doing a python method that I could pass all the info into and
stick in in the site rules.  That would probably only do the main hit
(perhaps if all pages go through the it will to all of them).

j.

..
. Jason C. Leach
... University College of the Cariboo.
.. 

On 9 Nov 2000 [EMAIL PROTECTED] wrote:

> We are using SiteAccess to have multiple virtual hosts on one Zope
> Server. We would like to provide our customers with stats reports
> based on the zope log. But entries in the log don't contain any
> distinguishing information about the virtual host to which the entry
> applies. Short of hacking zope, is there a way to modify our zope
> environment to to have the requested hostname included in the log
> entry?
> 
> We know that we can use PCGI thru apache and have apache do the
> logging. But I'm hoping to avoid that.
> 


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

2000-11-06 Thread Jason C. Leach

hi,

Sure they are.  If you ftp a jpg to the server it comes up with an id of
bla.jpg, you can then refrence it in html just like you would on an Apache
server or whaterver 

j.

..
. Jason C. Leach
... University College of the Cariboo.
.. 

On Mon, 6 Nov 2000, Chris Withers wrote:

> 
> 
> Pete Prodoehl wrote:
> > 
> > Is it possible to have an image named "image.gif" or "image.jpg" ? (Are file
> > extensions allowed? If so, how  are those objects addresses?)
> 
> 
>   
> 
> 
> or
> 
> 
> 
> cheers,
> 
> Chris
> 
> 
> > 
> > Pete
> > 
> > > --
> > > > "Farrell, Troy" wrote:
> > > >
> > > > 
> > > >   
> > > > 
> > >
> > > This also works:
> > >
> > > 
> > >
> > >
> > 
> > ___
> > Zope maillist  -  [EMAIL PROTECTED]
> > http://lists.zope.org/mailman/listinfo/zope
> > **   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] Zope for medium/large sites

2000-11-05 Thread Jason C. Leach

hi,

www.trouble.co.uk is suposed to get about 1M hits a day. For others check
out: http://weblogs.userland.com/zopeNewbies/zopesites/

j.

..
. Jason C. Leach
... University College of the Cariboo.
.. 

On Sun, 5 Nov 2000, Tiago Antão wrote:

> Hi!
> 
> On Thu, 2 Nov 2000, Bill Anderson wrote:
> 
> bill.a> >   The question is: Is zope up to this?
> bill.a> 
> bill.a> Depends, would your site(s) be read-intensive, or write-intensive?
> 
>   We still don't know because the system now in production does not allow
> the same order of magnitude of dynamic content. But we're almost sure
> it'll remain read-intensive.
> 
> bill.a> If you have the hardware:
> bill.a>  o a dedicated SQL server to hold member authentication data
> 
>   We've Oracle as the backend.
> 
> bill.a>  o a dedicated ZSS, or two running in failover
> bill.a>  o multiple ZEO Clients to support end-users, preferably behind
> bill.a>some Linux Virtual Server failover/load balancing setups
> 
>   We've a High Availability architecture with more that 10 machines, a
> raid box, etc... We're thinking precisely in ZEO...
> 
> bill.a> That should be able to handle pretty much what you describe with ease.
> 
>  BTW, Do you know of any site with more than 10 registered users and
> lots of hits using zope?
> 
> Best regards,
> Tiago
> 
> 


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

2000-11-05 Thread Jason C. Leach

hi,

I did that. Set the / to some web site and could not get back to the
console.  I think you can just remove the product and it will restore
itself. You will then need to uninstall it from zope, and then reinstall
the product.

j.

..
. Jason C. Leach
... University College of the Cariboo.
.. 

On Sat, 4 Nov 2000, [Windows-1252] Jørgen Skogstad wrote:

> Kindest.. 
> 
> Of course I did something wrong. ;) I need to disable the SiteRoot
> i implemented.. because right now all is /&#% up.. ;)  Have you
> got any information about this? I am running this startup script
> as of now.. but it does nothing (esp. thinking of the env. variable
> that was stated on www.zope.org).
> 
> #! /bin/sh 
> #exec 2>&1
> SUPPRESS_ACCESSRULE=yahoo
> export SUPPRESS_ACCESSRULE 
> PATH=$PATH:/usr/local/bin
> PYTHONPATH=$PYTHONPATH:/usr/local/lib/python1.5/site-packages
> reldir=/usr/local/zope/Zope-2.2.1-solaris-2.6-sparc/
> PYTHONHOME=`cd $reldir; pwd`
> export PYTHONHOME
> export PYTHONPATH
> exec /usr/local/zope/Zope-2.2.1-solaris-2.6-sparc/bin/python \
>  $PYTHONHOME/z2.py \
>  -a 'localhost' \
>  -u 'zope' \
>  -m '' \
>  -f '' \
>  -p '' \
>  -F '8989' \
>  -d '' \
>  -w '' \
>  -D \
>  -Z '' "$@"
> 
> Would apriciate any input!
> 
> Kindest,
> Jørgen Skogstad
> 
> 


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

2000-11-03 Thread Jason C. Leach

hi,

How do you manually move to the next item in a sequence?

Also, how do you break one?

j.

..
. Jason C. Leach
... University College of the Cariboo.
.. 


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

2000-11-03 Thread Jason C. Leach

hi,

Ya. I'm developing a site (area really) for a client that must
automatically detect all images, displaying only thumbnale images, which
get linked to the large size.  Once I get referencing down, it should be
OK.

j.

..
. Jason C. Leach
... University College of the Cariboo.
.. 

On Fri, 3 Nov 2000, Andy McKay wrote:

>  gives you the object if sequence-item was actually an object.
> 
> Is there something else you are tyring to do like get the url to the object
> for an image tag? in that case try , 
> but since let also pops onto the namespace  should
> also work.
> 
> - Original Message -
> From: "Jason C. Leach" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, November 02, 2000 9:52 PM
> Subject: [Zope] Refrencing.
> 
> 
> > hi,
> >
> > if I do something like:
> >
> > 
> >
> > What is the sintax to refrence that object?
> > 
> > ?
> >
> > Thanks,
> > j.
> >
> > ..
> > . Jason C. Leach
> > ... University College of the Cariboo.
> > ..
> >
> >
> > ___
> > Zope maillist  -  [EMAIL PROTECTED]
> > http://lists.zope.org/mailman/listinfo/zope
> > **   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] Securing an FTP server.

2000-11-03 Thread Jason C. Leach

hi,

Thanks for the tip.  I was hoping, once a user loges on for them to get
deposited in a folder; mostly so they could not see who the other clients
were. 

And yes, that is indeed UCC of Kamloops.

j.

..
. Jason C. Leach
... University College of the Cariboo.
.. 

On Fri, 3 Nov 2000, Andy McKay wrote:

> Ive done a similar thing using SiteAccess rules. Its not that hokey, its a
> simple rewrite rule.
> 
> Or how about using the folders that each user is the Owner of. Each user can
> then only access the FTP folder they are the Owner of. That works for http
> access, is dont see why ftp should be any different.
> 
> BTW, Is that the University College of the Cariboo in BC?
> 
> - Original Message -
> From: "Jason C. Leach" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, November 03, 2000 12:02 AM
> Subject: [Zope] Securing an FTP server.
> 
> 
> > hi,
> >
> > I'd like to secure the FTP server so that when Bob loges in, he is sent to
> > folder X and can not exit X.  And when Jain loges in, she is put into Y
> > and can not exit that folder.
> >
> > Is this possible.  Someone once suggested working with site rules, but
> > that's a bit hokey; unless someone has implemented an elagent solution
> like
> > this.
> >
> > Thanks,
> > j.
> >
> > ..
> > . Jason C. Leach
> > ... University College of the Cariboo.
> > ..
> >
> >
> > ___
> > Zope maillist  -  [EMAIL PROTECTED]
> > http://lists.zope.org/mailman/listinfo/zope
> > **   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] Securing an FTP server.

2000-11-02 Thread Jason C. Leach

hi,

I'd like to secure the FTP server so that when Bob loges in, he is sent to
folder X and can not exit X.  And when Jain loges in, she is put into Y
and can not exit that folder.  

Is this possible.  Someone once suggested working with site rules, but
that's a bit hokey; unless someone has implemented an elagent solution like
this.

Thanks,
j.

......
..... Jason C. Leach
... University College of the Cariboo.
.. 


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

2000-11-02 Thread Jason C. Leach

hi,

if I do something like:



What is the sintax to refrence that object?

?

Thanks,
j.

..
. Jason C. Leach
... University College of the Cariboo.
.. 


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

2000-11-02 Thread Jason C. Leach

hi

This is a bit of code I was working on, it may not be what you are after
but:








It scans through a Folder and displays all the images it finds. If that's
not what you want, then the last line  is
probably what you want.  With OOP Images know how to display themselves,
so all you need to do is call there ID.  Also, the PARENTS[0] allows you
to go backwards through parent folders 0 is the folder you script is in, 1
is one level back and so on.

j.


..
. Jason C. Leach
... University College of the Cariboo.
.. 

On 2 Nov 2000, CURTIS David wrote:

> Hi,
> I check the archives but could not find an answer.  How do you display images that 
>are burried in directories?
> For example,  
>  works with the image1 at same level
> but 
>  does not.  nor does
> 
> Any help would be apprechiated.  Thanks in advance
> 
>  
>  
>  
>  
>  
>  
>  
>  
>  
> 


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

2000-10-31 Thread Jason C. Leach

hi,

Is this correct:

Spam I am.


This is part of a larger loop, that prints all the images in a folder with
their titles. I'd like to search the object's title for the word Bridge,
even though I know it has it, still it does not print my test phrase.

Thanks,
j.



......
..... Jason C. Leach
... University College of the Cariboo.
.. 


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

2000-10-30 Thread Jason C. Leach

hi,

Gave that a shot, no luck.  I just dones nothing where as if I misspel the
object ID it screams (so it's finding it).  I can edit and View the object
fine, just not call it.

I'm running Zope/Zope 2.2.2 (source release,
python 1.5.2, linux2) ZServer/1.1b1 on FreeBSD A


j.
......
..... Jason C. Leach
... University College of the Cariboo.
.. 

On Tue, 31 Oct 2000, Erik Enge wrote:

> On Mon, 30 Oct 2000, Jason C. Leach wrote:
> 
> > hi,
> 
> Hi.
>  
> > How do I get a TinyTable to display it's contents?
> > 
> > All I find in the docs is  and that does not
> > seem to work for me, unles I am lacking a tag?
> 
> Try this:
> 
>
> 
> (and next time, post the error message, Zope version and OS you are
> running :-)
> 
> 


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

2000-10-30 Thread Jason C. Leach

hi,

So I'm almost done my first zope project. Pretty small. I must say, I have
done in 4 lines of DTML what would have taken pages in ASP.

How do I get a TinyTable to display it's contents?

All I find in the docs is  and that does not
seem to work for me, unles I am lacking a tag?

j.

......
..... Jason C. Leach
... University College of the Cariboo.
.. 


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

2000-10-30 Thread Jason C. Leach

hi,

What is ment by a meta type?

Is that like 'Image' in the case of images, and Folder in the case of
folders?

j.

......
..... Jason C. Leach
... University College of the Cariboo.
.. 


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

2000-10-29 Thread Jason C. Leach

hi,

If I have a mail folder Projects, and in it Proj1, Proj2, ... I'd like to
pass the folder to an external method, and have the method get a list of
all the files inside (bla.jpg, bla_large.jpg).  Can somone help w/
fetching a list of the folder contents?

Thanks,
j.

..
. Jason C. Leach
... University College of the Cariboo.
.. 


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

2000-10-29 Thread Jason C. Leach

hi,

That's exactly what I'm hoping to do.  But for my method, it does not know
what read() is, or read_raw(); I get:

  Zope Error

  Zope has encountered an error while publishing this resource. 

  Error Type: AttributeError
  Error Value: read

If I try you method I get:

  Zope Error

  Zope has encountered an error while publishing this resource. 

  Error Type: AttributeError
  Error Value: manage_addTinyTable


It would probably bail on the read also if it got that far.

Perhaps I am caling it wrong, or not pasing the correct object.  I jest
pass in a Zope File opject, which hapens to be a few lines of text.

Thanks,
j.


......
..... Jason C. Leach
... University College of the Cariboo.
.. 

On Sun, 29 Oct 2000, Steve Spicklemire wrote:

> 
> Hi Jason,
> 
>Here's an external method that I've used to populate a TinyTable
> from a comma separated text file. You might at least get some ideas
> about how to extract stuff from the file using this
> 
> -steve
> 
> --
> 
> #
> # ReadFile is an external method that reads data from a file uploaded from
> # the users computer and produces a TinyTable based on that data.
> #
> 
> import string
> 
> def ReadFile(self,
>  infile, # input file.
>  outTableName='defaultTable',# name of output table
>  outTableTitle='',   # title of output table
>  outTableColumns='', # columns for output table
>  REQUEST=None,   # Pass in REQUEST
>  RESPONSE=None): # and response...
> 
> if not hasattr(self, outTableName):
> self.manage_addTinyTable(id=outTableName, title=outTableTitle, 
>columns=outTableColumns, REQUEST=REQUEST)
> 
> newTT = getattr(self, outTableName)
> newTT.manage_edit(title = outTableTitle, columns = outTableColumns, 
>REQUEST=REQUEST)
> data = infile.read()
> data = string.replace(data,'\r','\n')
> data = string.replace(data,'\n\n','\n')
> lines = string.split(data,'\n')
> newLines = []
> for i in range(len(lines)):
> line = string.strip(lines[i])
> if line:
> sl = string.split(line,',')
> sl = map(lambda x:'"%s"' % x, sl)
> newLines.append(string.join(sl,','))
> 
> data = string.join(newLines, '\n')
> 
> return newTT.manage_editData( data, REQUEST )
> 
> 
> def main():
> class foo:
> 
> def manage_addTinyTable(self, *args, **kwargs):
> pass
> 
> def manage_edit(self, *args, **kwargs):
> pass
> 
> def manage_editData(self, data, REQUEST):
> print "In manage_editDdata"
>     print data
> 
> import StringIO
> 
> f = StringIO.StringIO()
> f.write('a,b,c,d\n')
> f.write('d,e,f,g\n')
> f.seek(0)
> 
> print f.read()
> f.seek(0)
> 
> rf = foo()
> rf.defaultTable = foo()
> 
> ReadFile(rf, f)
> 
> if __name__=='__main__':
> 
> main()
> 
> >>>>> "Jason" == Jason C Leach <[EMAIL PROTECTED]> writes:
> 
> Jason> hi,
> 
> Jason> I pass a zope file object (just plane text) to an external
> Jason> method.  The file consists of a list of lines of text.  I'd
> Jason> like to extract those lines from the file and put 'em in a
> Jason> list. Can anyone help with the extraction method?
> 
> Jason> Thanks, j.
> 
> Jason> ..  . Jason C. Leach ... University
> Jason> College of the Cariboo.  ..
> 
> 
> Jason> ___ Zope
> Jason> maillist - [EMAIL PROTECTED]
> Jason> http://lists.zope.org/mailman/listinfo/zope ** No cross
> Jason> posts or HTML encoding!  ** (Related lists -
> Jason> http://lists.zope.org/mailman/listinfo/zope-announce
> Jason> 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] Get file contents.

2000-10-29 Thread Jason C. Leach

hi,

I pass a zope file object (just plane text) to an external method.  The
file consists of a list of lines of text.  I'd like to extract those lines
from the file and put 'em in a list. Can anyone help with the extraction
method? 

Thanks,
j.

......
..... Jason C. Leach
... University College of the Cariboo.
.. 


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

2000-10-28 Thread Jason C. Leach

hi,

What does the load_site.py expect as a URL?

Thanks,
j.

..
. Jason C. Leach
... University College of the Cariboo.
.. 


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

2000-10-28 Thread Jason C. Leach

hi,

Thanks. I'll look into it.

j.

..
. Jason C. Leach
... University College of the Cariboo.
.. 

On Fri, 27 Oct 2000, Tim Cook wrote:

> "Jason C. Leach" wrote:
> > 
> > hi,
> > 
> > I'm looking for a Zope calander kind of like you see on the ZopeNewbies
> > page.  Anyone seen a product like this hanging around.
> > 
> 
> There is a ZCalendar tag. But the EventFolder is much more full
> featured.
> 
> -- Tim Cook --
> Cook Information Systems | Office: (901) 884-4126 8am-5pm CDT
> Free Practice Management | http://FreePM.org
> Censorship: The reaction of the ignorant to freedom.
> 
> 


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

2000-10-28 Thread Jason C. Leach

hi,

I'd like to set up a ftp site so a specific client gets sent to a specific
folder when they log in, and they can not back out of that folder.

Thanks,
j.



..
. Jason C. Leach
... University College of the Cariboo.
.. 


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

2000-10-26 Thread Jason C. Leach

hi,

I'm looking for a Zope calander kind of like you see on the ZopeNewbies
page.  Anyone seen a product like this hanging around.

If not, perhaps I'll have to whip one up. :)

Thanks,
j.

......
..... Jason C. Leach
... University College of the Cariboo.
.. 


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

2000-06-10 Thread Jason C. Leach

hi,

I would do with a hand getting zope working w/ FreeBSD 4.  I make it by
going to the /usr/ports, and why I try and start it with './start' I get
the errors at the end of this msg.  Also, Zope seems to have installed
the SSL mod for Apache. Do I need to make any modificatons to get that
working or does the install script do it all. I see I have a
apache.conf.Zope-Changes and am wondering if I need to add them by hand?

Thanks,
J.

su-2.03# cd /usr/local/www/Zope-2.1.6/
su-2.03# ls
LICENSE.txt access  start   w_pcgi.pyc  zpasswd.py
README.txt  doc stopwo_pcgi.py
zpasswd.pyc
ZServer instutilities   wo_pcgi.pyc
Zope.cgilib var z2.py
Zope.cgi.orig   pcgiw_pcgi.py   z2.pyc

su-2.03# ./start 
Traceback (innermost last):
  File "/usr/local/www/Zope-2.1.6/z2.py", line 493, in ?
logger_object=lg)
  File "/usr/local/www/Zope-2.1.6/ZServer/medusa/http_server.py", line
552, in __init__
self.bind ((ip, port))
  File "/usr/local/www/Zope-2.1.6/ZServer/medusa/asyncore.py", line 205,
in bind
return self.socket.bind (addr)
socket.error: servname not supported for ai_socktype
su-2.03# 



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