RE: [Zope] Current Year

2000-07-11 Thread Steve Drees

> I hate to sound like such a newbie, but I am having the darndest time
> trying to figure out how to get the current year.  I know that the
> current time is ZopeTime, but I have tried every way I can think of to
> get the year() function to work with it, and at last have given up.  The
> documentation I have found is vague at best (imagine).  Please help.



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




RE: [Zope] Your feedback: what should DateTime strftime() behavior be?

2000-07-25 Thread Steve Drees

> ...would be changed to apply the format to the current TZ 
> representation of the object rather than convert to GMT. 


+1

Actually +10 but that wasn't an option.



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

2000-07-28 Thread Steve Drees

> I would like to know if it is possible to send an email with 
> HTML code in the mail using zope ?

yes.

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Hey buddy can you spare some Zen?

2000-08-04 Thread Steve Drees

I have the following ZSQLMethod.

ID:
=
SQLAddRelease
=
Arguments:
=
releases.headline releases.author releases.email releases.body
=


Query Template:
=
INSERT INTO releases
(author,
email,
body,
timestamp,
headline)
VALUES
 (,
,
,
,
);

SELECT currval('releases_id_seq') AS Article_ID;
==

When I test this method zope is smart enough to show me what Article_ID is.
I can't for the life of me figure out how to get that value into the
namespace.

(Database is Postgres.)


-steve

[EMAIL PROTECTED]   http://www.the-bridge.net/~drees
"A problem well stated, is a problem half-solved." - C. Kettering


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Hey buddy can you spare some Zen?

2000-08-04 Thread Steve Drees

> I have the following ZSQLMethod.
>
> ID:
> =
> SQLAddRelease
> =
> Arguments:
> =
> releases.headline releases.author releases.email releases.body
> =
>
>
> Query Template:
> =
> INSERT INTO releases
>   (author,
>   email,
>   body,
>   timestamp,
>   headline)
>   VALUES
>  (,
>   ,
>   ,
>   ,
>   );
>
> SELECT currval('releases_id_seq') AS Article_ID;
> ==
>
> When I test this method zope is smart enough to show me what
> Article_ID is.
> I can't for the life of me figure out how to get that value into the
> namespace.
>
> (Database is Postgres.)


I found the answer.

http://zope.nipltd.com/public/lists/zope-archive.nsf/47ba74c812dbc5dd8025687
f0024bb5f/0249b255731f1729802568e700386b2f?OpenDocument&Highlight=0,currval

Special thanks to NIP for providing this wonderful resource!



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Newbie Question (Content Manager Tutorial)

2000-08-21 Thread Steve Drees

> With the advent of Zope 2.2, the first thing you need to do is to create a
> management user.  You cannot use the 'superuser' to manage content.  I
> know this is a little unfamiliar, but, for now, just suspend disbelief and
> create another user with the 'Manager' role (by visiting the acl_users
> User Folder and adding a user).  Then quit the browser, and log in as the
> user you created.  You'll then be able to follow the cmg.


Couldn't the zope install be modified to prompt for a 'Manager' username and
password
and then create that account from the outset?


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Search on ZCatalog or ZSQL in MySQL

2000-08-24 Thread Steve Drees

> the true decision however the current database news is about 350M and i
> would like to extend it to store images and file, so is possible that at
> the final year if everyting comes ok it outperforms the 1GB data

The limit I think you refer to is the 2GB file size limit on _some_
OSes. So you really have more room than you thought you did, and you may
have more room than you can imagine depending on your platform.

Some things I would suggest.

Store the stories in the ZODB.
Store URLs for the images in the ZODB as properties of the story.
Store the images on the filesystem and serve them out of apache or some
other static webserver.

That'll help keep your Data.fs size down and also give you a little better 
performance.


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

2000-09-08 Thread Steve Drees

Is anybody running zope on a Mac OS 8.x or 9?


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

2000-09-09 Thread Steve Drees

> you can write anything destructive, whether it is an external method, a
DTML
> Method, or basically anything.  At least if the only way you can import
.zexp's
> is from the import directory, then only people with access to the zope
file
> structure can import stuff...that will usually be restricted to system
> administrators or superuser people.

But if there was a Can Import From Web role than you could control who
could import and who couldn't. Granular Security is a strong point of Zope.
We should strive to use it.


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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 login window: how to change the 'Zope' realm/resource??

2000-09-12 Thread Steve Drees

> ---
> Use Z_REALM env. var to set your HTTP
> mcdonc brings us this tip:
> 
> Set the environment variable "Z_REALM" to change the HTTP "authentication
> realm" in which your Zope server
> participates.
> Additional details:
> For example, under the Bourne or BASH shells (in UNIX):
> # Z_REALM="My Realm"
> # export Z_REALM
> The equivalent can be done under Windows NT by setting 
> environment variables
> in the startup environment under the
> System Control Panel.
> Created 1999/10/23
> ---

WHat if we want to change the realm dependent on the folder?

I.e. Is there a way to change this at run-time?

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




[Zope] Cookie pointer.

2000-09-22 Thread Steve Drees

I learned this one the hard way.


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

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

Was trying the following



This does NOT work.

THe following works MUCH better





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


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




RE: [Zope] FYI: Python product tutorial updated

2000-09-25 Thread Steve Drees

> But...on looking at it, a nagging thought keep recurring...this
> is a really
> quite long and complicated process for a Poll product. As much as I like
> Zope and thing it is a great platform on which to develop web
> applications,
> I often wonder about the complexity and obscurity of some of the
> procedures
> that need to executed while making what are, on the face of it,
> often quite
> simple web objects or applications. Consequently I have honestly
> had quite a
> hard time convincing PHP-savvy colleagues that the path to Zope Zen is
> something worth starting on.


You need to make a delineation between making products and using zope.
One can use the power of zope without building a zope product.
A couple of ZSQL Methods, some PythonMethods, and a little DTML go along
way in building a cool dynamic website.

So my methodology has been to show them the simple power of zope and then
later
expose them to building products.




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

2000-09-25 Thread Steve Drees



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Cesar
> A. K. Grossmann
> Sent: Monday, September 25, 2000 5:06 PM
> To: TMGB
> Cc: Zope@Zope. Org
> Subject: Re: [Zope] Cookie pointer.
> 
> 
> TMGB wrote:
> > 
> > Since cookies have been brought up, I tried the following code (Using
> > Steve's example):
> 
> I cannot use this code in a GUF/docLogin. I get the error:
> 
> "Unauthorized
> 
> You are not authorized to access ZopeTime. "
> 
> What can I do to this code works?

Can you cut and paste the offending code?


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

2000-09-29 Thread Steve Drees



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
> [EMAIL PROTECTED]
> Sent: Thursday, September 28, 2000 10:17 PM
> To: [EMAIL PROTECTED]
> Subject: [Zope] Deleting data using ZSQL
> 
> 
> Hi,
> 
> I am writing a dtml method that deletes data from a database, and I found
> myself unable to do this.  It seems that ZSQL is used to insert, update
> and query a database. but can not use
> "delete from table where var="


delete from this_table where var=  
is what I use (Changing type accordingly of course).

> 

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

2000-11-03 Thread Steve Drees

> However, I'd like to have this cookie set to expire one week from the date
> of the current visit. i.e., if its 12:30 on 11/3 when a surfer visits my
> site, I want Zope to set their lastVisited cookie to expire on 12:30 on
> 11/10.

Have a pythonmethod

ID expireIn1Week
Parameter List self
_BODY__
t = self.ZopeTime() + 7.0 # 1 week in the future
t = t.toZone('GMT')

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


On the page you want to set the cookie put





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

2000-11-10 Thread Steve Drees

> It might be that fixing one or both of the above would reduce the DTML
> pain factor quite a bit. Certainly, it's time to do whatever it takes
> to banish these "-"-named variables, IMHO.

Agreed. But DC always raises objections when this is brought up.

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

2000-11-15 Thread Steve Drees

> > 
> > DTML.  Document Template Markup Language.
> 
> alternatively if you want real templates that enforce separate logic and
> presentation take a look at hiperdom.



How are DTML documents and methods not "Real Templates"?


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

2000-11-22 Thread Steve Drees

> Zope Error
> Zope has encountered an error while publishing this resource. 
> 
> Error Type: ImportError
> Error Value: No module named PythonMethod.PythonMethod

You are missing PythonMethod.

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

2000-11-22 Thread Steve Drees

What's the PythonMethod equivalent of:




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


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




RE: [Zope] Ah, I found it -- Estimate of community size

2000-11-29 Thread Steve Drees

> But anyway, there's no concrete way to count zope users: estimation is 
> the best we'll ever get.

This is America. When people subscribe we count them.


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Why Not Zope? 'Cos I like to bitch! ;-)

2000-11-30 Thread Steve Drees

> > I found this article written by someone from Quixote concerning Zope,
> > describing its weaknesses and possible future development
> > http://www.amk.ca/python/writing/why-not-zope.html
> 
> No CVS is also a problem, but with the improvements in the History tab
> and the like, this less of an issue. Besides, it's again easy to work
> around by keeping CVS-ish stuff on the filesystem either by putting them
> in python products or HTMLFiles. There's even ZCVSMixing should you
> really be pedantic.


Or put the business logic methods in a LocalFS and use CVS on the files.




___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Why Not Zope? 'Cos I like to bitch! ;-)

2000-12-01 Thread Steve Drees

> 
> > > Zope's built in FTP server is one of it's huge stengths, IMO. 
> He hasn't
> > > realised this and so bitches about it. You can always turn it off you
> > > know! Likewise the HTTP server, run Zope as a CGI if you must! :P
>  
> > "Apache already exists and is highly flexible and configurable" 
> of course it
> > is, use it if you want, grrr. TMTOWTODI.
> 
> But cgi is slow. and using mod_proxy is not beatiful and adds latency. 

what isn't "beautiful" about using mod_proxy?

I have 8 sites using it. It works great. Latency? It's neglible. 
More time is spent publishing the objects than is spent pushing it through
the proxy.


> Besides, the zserver on 2.1.6 seems to have bugs that sometimes let 
> the page only 90% through. I've really wondered, why all the trouble 
> of using a own HTTP server, Apache is a great HTTP server and most 
> users run it anyway. which leads to the natural question:

1) I use 2.1.6 on 4 of my sites. I have never seen this problem.
2) You can always upgrade. 




> 
>   Why isn't there a mod_zope module?
> 
> 
> 
> 
> -- 
> Riku Voipio
> [EMAIL PROTECTED]
> 09-862 60764
> 
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   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] FTP in HTML-Kit? (Or other editor on MS-Windows)

2000-12-04 Thread Steve Drees

> http://www.zope.org/Members/cba/HTML_Kit
> 
> It says that HTML-Kit can edit files through FTP. I found that it 
> can only 
> retrieve files, without being able to browse directories, and 
> that it cannot 
> save back files with FTP. Absolutely not a competitor for GNU Emacs.

Get the latest beta. It has a workspace option that just plain ROCKS.

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] FTP in HTML-Kit? (Or other editor on MS-Windows)

2000-12-04 Thread Steve Drees

> Allaire Homesite 4.5.1 has proven very powerful for me and my 
> Zope FTP connection.
> There is a little patch (works great!) that customizes the code 
> for DTML great.
> Homesite is shareware, but believe me, nothing happens after the 
> 30 days pass.

Except that you become a criminal.


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




[Zope] What happened to worldpilot

2000-12-13 Thread Steve Drees

I can't seem to find worldpilot on zope.org anymore. 
Has it been killed?

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


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




RE: [Zope] Adding Users To Acl_users

2000-12-14 Thread Steve Drees

> Is it possible to add users to acl users from a form other than that in
the acl_users folder?
> I've tried replicating the form within a dtml-with acl_users tag with no
luck so far, has
> anyone actually done this and made it work?







Creates a user bill with password mypassword and role of RegisteredUser


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Best Zope way to split a textfield on 2000 char increments

2000-12-15 Thread Steve Drees

> I just realized I need to split a potentially pretty long textfield 
> input from a web form into 2000 character chunks, for input into a 
> database. I see a lot of string functions in DTML, but none that 
> looks like it will do this..


string slices.

somestring[:1999] is the first 2000 characters of somestring.


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

2000-12-16 Thread Steve Drees

Has anybody gotten GUF working on 2.2.4?


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


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




RE: [Zope] LoginManager

2000-12-20 Thread Steve Drees

> Where do I get a copy of cPersistance.h? I need it to compile DynPersist.c

You need to download the Zope src tarball if your going to build ZPatterns.
(This note really should be in the installation instructions of ZPatterns.)


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

2001-01-09 Thread Steve Drees

> I'd personally stay from Worldpilot since AFIAK its not open source.
> --
>   Andy McKay.

>From their website:

What's worldpilot's licence?
Worldpilot is open source. It's licence WPL (Worldpilot Public Licence) is
identical to the ZPL (Zope Public Licence). Please read it here.


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




RE: [Zope] Zope and Linux flavors

2001-01-16 Thread Steve Drees



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
> Jonathan (Listserv Account)
> Sent: Tuesday, January 16, 2001 11:21 AM
> To: Zope Mailinglist
> Subject: RE: [Zope] Zope and Linux flavors
> 
> 
> > Which Linux distributions are you using for running Zope and how easy
> > it was for you to maximize security of your server?
> 
> Red Hat Linux 6.2 here. After a standard install, download and install
> latest release of SSH. Open '/etc/inetd.conf', comment out all services.
> Save and do a 'killall -HUP inetd'. Do 'ntsysv' and disable everything
> you are not going to use on that machine (typically sendmail, nfslock,
> identd, portmap etc.). Reboot after that.


Actually, I burn a CD with the latest updates on it. Including autorpm.
Install autorpm, then use autorpm to upgrade everything from the CD.

I do all of this BEFORE connecting to the net.


I've had boxes rooted within 60 minutes of connecting to the net, before 
I started doing the above.

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




[Zope] ZSQL: postgres, SELECT INTO

2001-01-20 Thread Steve Drees

Has anybody selectively used SELECT INTO with zope/postgres?

Zope version: Zope 2.1.6 (binary release, python 1.5.2, linux2-x86)
Python version: 1.5.2 (#10, Dec 6 1999, 12:16:27) [GCC 2.7.2.3]
System Platform: linux2
ZPyGreSQLDA-0-0-3



I'm trying something like:

SELECT DISTINCT
  song, ipadress, date
INTO
TEMP d_requests
FROM
  requests
WHERE
  date > 

SELECT
  COUNT(*) AS num_requests,
  song
FROM
  d_requests
GROUP BY
  song

-
works fine under psql
zope raises an exceptions.ValueError
and the db connection dies.


traceback follows:



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

2001-01-20 Thread Steve Drees

> 
> Has anybody selectively used SELECT INTO with zope/postgres?

Make that succesfully.

> 
> Zope version: Zope 2.1.6 (binary release, python 1.5.2, linux2-x86)
> Python version: 1.5.2 (#10, Dec 6 1999, 12:16:27) [GCC 2.7.2.3]
> System Platform: linux2
> ZPyGreSQLDA-0-0-3
> 
> 
> 
> I'm trying something like:
> 
> SELECT DISTINCT
>   song, ipadress, date
> INTO
> TEMP d_requests
> FROM
>   requests
> WHERE
>   date > 
> 
> SELECT
>   COUNT(*) AS num_requests,
>   song
> FROM
>   d_requests
> GROUP BY
>   song
> 
> -
> works fine under psql
> zope raises an exceptions.ValueError
> and the db connection dies.
> 
> 
> traceback follows:
> 
> 
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   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] ActiveState on Zope.org

2001-01-22 Thread Steve Drees

> We use IIS for many reasons, it's fast and we use some of products in
> conjunction with it. To suggest that using IIS is somehow "wrong" confuses
> me, Zope.org doesn't use ZServer. For me the flexibilty of using Zope any


Doesn't every Zope site use ZServer? These statements always confuse me.
When I ./start zope aren't I starting ZServer?



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] porting from Python Methods to PythonScripts in 2.3.0; LoginManager too

2001-01-29 Thread Steve Drees

> + Delete the PythonMethods product from the Control_Panel/Products
>   management folder. 
> 
> Will I have to manually convert each existing Python Method to
> a PythonScript, or are they essentially the same type?

It's my understanding from reading release ntoes that PYthonScripts
and PythonMethods will co-exist peacefully.


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

2001-01-31 Thread Steve Drees

Or is it a routing issue on my end?

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

2001-01-11 Thread Steve Drees

http://slashdot.org/articles/01/01/11/1318207.shtml

summary:
Backdoor user/password discovered.
Script Kiddies already probing for interbase.

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


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




[Zope] manage_users problem

2000-05-23 Thread Steve Drees

I have the following code stuffed away in a DTML Method





>

After that code excutes there is a user with the name 'steve3'
but if I try to edit 'steve3' via the web interface I get the following.


Zope has encountered an error while publishing this resource.

Error Type: TypeError
Error Value: string member test needs char left operand


[Zope] Calling PythonMethods from PythonMethods.

2000-05-25 Thread Steve Drees

How does one do this?



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




Re: [Zope] Plea: sequence-item and sequence_item in 2.2?

2000-06-08 Thread Steve Drees

At 6/8/00 11:43:00 AM, you wrote:
>Hi all,
>Can I make a plea that the .diff patch that Jonothan Farr posted a 
>while back be included into the 2.2 release?
>http://www.zope.org/Members/jfarr/Patches/dtml-in-sv

I have yet to hear a downside to this patch. I second that motion. 
The patch has allowed me to clean up my code signifigantly.




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

2000-06-21 Thread Steve Drees



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of T.J.
> Mannos
> Sent: Wednesday, June 21, 2000 9:42 AM
> To: IPM Return requested Receipt notification requested
> Subject: RE: [Zope] ZServer+SiteAccess+Apache+SSL
>
>
> I got Apache+mod_ssl+OpenSSL working, and I just threw it into the mix.  I
> have two virtual hosts, one HTTP on port 80 and one SSL on port 443.  Both
> do nothing but ProxyPass to the same http:// address on port
> 9080.  I don't
> know if I like that solution, though.
>
> This solution "looks" secure, but I'm not so sure.  It's a secure
> connection
> between the client and the server, and, since Zope and Apache are on the
> same machine, there's no insecure communication over our LAN.
> However, if I
> happen to have a hacker running a packet sniffer on my server,
> I'm screwed.

If you have a hacker running a sniffer on your server you are screwed
regardless of your system configuration.


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




RE: [Zope] HTML Editors that recognize DTML (was bastardized form ofXML)

2000-06-26 Thread Steve Drees

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

Haven't test any of these but here's some URLS

http://freshmeat.net/appindex/2000/02/17/950801940.html
http://freshmeat.net/appindex/1999/09/11/937058123.html




>
> Also, its not XML compliant either, but I have a shorter dtml syntax patch
> available for download at:
>
> http://www.zope.org/Members/Coventry/dtml_shortcut
>
> it is a really small patch, and just allows <: to replace  inside your documents, such as in the snippet below:
>
> <:var foo>
> <:if expr="la=lala">
> So you think la and lala are the same!?
> <:else>
> Ah, so you see a diffrence!
> 
>
> it just leads to less typing.  Comming from the asp/php world (as
> of late, I
> also do C and Perl), I got used to typing a lot less
> characters to switch
> from markup to scripting, and so figured I'd dive in and make
> this change...
> My 'wordfile.txt' for ultraedit will include this alternate syntax too.
>
>
> -Original Message-
> From: Eric L. Walstad [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 23, 2000 6:14 PM
> To: Jon Franz
> Cc: [EMAIL PROTECTED]
> Subject: RE: [Zope] HTML Editors that recognize DTML (was bastardized
> form ofXML)
>
>
> Hi Jon,
>
> Regarding Ultra-edit32
>
> // and the file 'wordlist.txt' it uses can be
> // edited easily to
> // add new tags or keywords, or to define whole new languages of tags and
> // keywords.
>
> Have you created a 'wordlist.txt' file that handles the DTML tags?  If so,
> would you mind sharing it?
>
> Thanks,
>
> Eric.
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   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 )