Re: [Zope] python nigglettes

2000-05-23 Thread Luis Cortes

On Tue, 23 May 2000, you wrote:
 
 hi all, I'm currently experimenting with zope and noodling with
 pythoncan anyone give me an answer on these?
  
 Python is beautiful (nearly as beautiful as Prograph (but that's another
 story)).
  
  I'm a BIG fan of human readable code, I loved HyperCard and
 pathelogically refused to get my head past Perl. But there a few
 irritants that I really need to know why they're there.
  
 1. ":" This smacks of geek...surely the interpreter could figure out
 if this wasn't there...couldn't it? Surely there's a workaround for
 someone like me. Isn't there? What if I "promised" never to write
 one-line functions, could I do without it then?
  
 2."elif" Boy this is awkward, I though "elseif" was bad but "elif"
 !! Can I use/implement alternatives "elseif" would be a start "else if"
 would be better...more natural.
  
 I love the fact that with Python it's OK (nay encouraged) to document
 code. I can live with the "__whatever__" methods but ":" and "elif" are
 so ugly that as I'm showing someone how cool Python is, I get
 embarrased...and make excusesalong the lines of"yes, yes, I
 know, but look how easy it is to create a subclass of Animal..."
  
 cheers
  
 tom
  
  
  
 

Even if the elif was not there, there would be something else to complain about
it.  My advise take the bad with the good.  Also,  there is more power in the
"else" , for example, you can do an else to a "for" statement - which is nice
and can't even be done in C.

Regards,
Luis.

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

2000-05-24 Thread Luis Cortes

Hello,

Is anybody bold enough to try Zope with ODBC to an ACCESS database?

How about a Micosoft's SQL?

Have you had any success with either?

What would you recommend??

Regards,
Luis.



-- 
==

Luis Cortes

Pollak EPD (915) 621-6113

==


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Testing the Waters ( Job Hunting )

2000-05-30 Thread Luis Cortes

Hi,

Is there a short term position for me out there - anywhere?  I have a
masters in C.S., 5 years experience in C/C++ programming (and a little UML ).  
Recently I have taken the Zope training course, and used python and zope to do
some projects at work, but now I am looking to see what else is out there with a
bigger scope.  If you hear of anything can you drop me a line and let me know.


Thanks ahead of time,

Luis.

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

2000-05-31 Thread Luis Cortes

Hi,

I'm trying HomeSite HTML Editor - which is really slick for somethings.
 I was wondering if there was some easy way to turn off the mangling of dtml
tags when switching between design view and edit view???

Thanks ahead of time for your help,
Luis.

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

2000-06-01 Thread Luis Cortes

Hello,

Does anybody know how to change the Port that Zope uses on Windows NT
when it is installed as a Service???  I know how to change it when it is
installed as standalone - but that doesn't work when I run it as a service. 


Thanks for your help,
Luis.

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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 ZCatalog DTML documents and/or HTML files automatically?

2000-06-03 Thread Luis Cortes

In the Zope howto Document (you can download it from the zope document site),
there is a howto to use unix's cron with zope.  

hope this helps,
Luis.







On Sat, 03 Jun 2000, you wrote:
 Hello,
 
 this is probably a stupid question, But I'm damned if I can find
 a solution :-(
 
 We have an internal site to store technical documents (in HTML
 or as DTML documents).
 We are using ZCatalog to provide an index for it.
 
 Now, we want to have some mechanism that updates the index every
 night (including pages added during the day).
 
 On this list, I have read that the obvious solution, ZScheduler,
 "does not work". I take it "does not work reliably for all
 conceivable uses". 
 Does this mean it is likely to work for what I have in mind? Are
 there any other ways to achieve it? I am running this on Unix
 (Solaris 7, in fact).
 
 Confused,
 Jan
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   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] DCOracle hit by new [].append() behavior?

2000-06-05 Thread Luis Cortes

From what I understand ( reading what has changed in Python 1.6 ), you can make
the arguements a tuple and you should be okay.  like so:

 out.append( (buf,dbsize,dbtype,ind,alen,arcode, f) )


Let me know,
Luis.


On Mon, 05 Jun 2000, you wrote:
 I have successfully built DCOracle 1.3.1b1 under Python 1.6a2, and
 connected to an Oracle database.
 
 However...
 
  cursor1.execute('select * from sometable')
 Traceback (most recent call last):
   File "stdin", line 1, in ?
   File "/home/justin/py/DCOracle/ociCurs.py", line 299, in execute
 r = self._execute(params__, kw)
   File "/home/justin/py/DCOracle/ociCurs.py", line 241, in _execute
 out=self._describe(self._ft)
   File "/home/justin/py/DCOracle/ociCurs.py", line 201, in _describe
 out.append(buf,dbsize,dbtype,ind,alen,arcode, f)
 TypeError: append requires exactly 1 argument; 7 given
  
 
 Looks to me like DCOracle doesn't comply to the definition of
 [].append(), and has thus been bitten by Guido's changes to make this
 behavior more strictly enforced.
 
 Has anyone already done the necessary patches, or shall I do it myself?
 
 -Justin
 
  
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists - 
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )
-- 
======

Luis Cortes

Pollak EPD (915) 621-6113

==


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

2000-06-06 Thread Luis Cortes

On Tue, 06 Jun 2000, you wrote:
 Hey all,
 
 How can I get the current date  time (preferably as a
 DateTime.DateTime object) in DTML? I cannot instantiate a DateTime
 object, because the DateTime module is not imported.
 
 Thanks,
 Ivan Raikov



I saved this answer, because I thought I might need it -- might be what you
need:

==
From: "Eric L. Walstad" [EMAIL PROTECTED]To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]


I think I've got the syntax, Jeff:

dtml-var "_.DateTime(birthday)" fmt=aCommon

- birthday is a field returned from my Z SQL Method
- The "_.DateTime(birthday)" part creates a DateTime object
- The '_' is a reference to the DTML namespace
- The DateTime() function creates the DateTime object
- The fmt=aCommon part formats it to look like: "May 7, 1966 12:00 am"

You can change the format by changing the fmt= so that  is the
format you want from Appdx A of the Zope DTML reference.

Eric.

===



If the you the current time, you might also try using  ZopeTime instead of
"_.DateTime(birthday)".  

have fun!
Luis.

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

2000-06-14 Thread Luis Cortes

Hi,

I would like to continue to program in python and zope ( don't make me
go back to C/C++,  please ).  Does anyone have some short term contract work
for me.   I will be happy to send my resume in response to this email.

Regards,
Luis.

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] left(string, n) equivalent (newbie q.)

2000-06-15 Thread Luis Cortes

You should be able to use python's slice like so:

dtml-if "word[:4] == 'help'" 
...

where "word" is the variable you want to use only 4 characters of.

Hope this helps,
bye.

- Original Message -
From: joel grimes [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 15, 2000 3:18 PM
Subject: [Zope] left(string, n) equivalent (newbie q.)


 Pardon my ignorance, I'm coming from a VB/Access background.

 I need to find an equivalent to using left(string, 4) in a zope SQL
method's
 select query.  My SQL book
 says I can use SUBSTRING(string, 1, 4) in a query but no luck.  I'm
 connecting to an Access database.

 btw - this mail list ROCKS!  I've never waited more than 10 minutes for a
 response.

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


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Arrg! dtml-in can't handle lists of pairs!

2000-07-01 Thread Luis Cortes

I have confirmed that this is strange behavior can be reproduced on 2.1.6 --
why I don't know.  A work around may be to convert your tuples to lists (easy to
do in python)  sample working code:

dtml-var standard_html_header


h4Iterate over 3.tuples/h4
dtml-let list="[('a','b','c'),('d','e','f')]"
dtml-in list
dtml-var sequence-itembr
dtml-in sequence-item
dtml-var sequence-item/br
/dtml-in 
/dtml-in
/dtml-let

h4Iterate Over 2-tuples/h4

! My change here --
dtml-let list="[['a','b'],['c','d']]"
dtml-var listbr
dtml-in list
dtml-var sequence-itembr
dtml-try

dtml-in sequence-item
dtml-var sequence-item/br
/dtml-in

dtml-except
h4Why can't I do this!/h4
/dtml-try
/dtml-in
/dtml-let

h4Iterate Over 1-tuples/h4
dtml-let list="[('a',),('b',)]"
dtml-in list
dtml-var sequence-itembr
dtml-in sequence-item
dtml-var sequence-item/br   
/dtml-in 
/dtml-in
/dtml-let


dtml-var standard_html_footer


On Sat, 01 Jul 2000, Cary O'Brien wrote:
 Ok.  I get a list of rows from a database query.  I want
 to iterate over the rows.  If there are 3 or more
 columns in the table, everythin is fine.  If there are 2 
 columns, it doesn't work.
 
 It seems as if dtml-in handles lists of pairs specially. 
 Not a good thing.  Can I supress this behavior?
 
 Here is an example of this:
 
 ---
 
 h4Iterate over 3.tuples/h4
 dtml-let list="[('a','b','c'),('d','e','f')]"
dtml-in list
   dtml-var sequence-itembr
   dtml-in sequence-item
   dtml-var sequence-item/br
   /dtml-in  
/dtml-in
 /dtml-let
 h4Iterate Over 2-tuples/h4
 dtml-let list="[('a','b'),('c','d')]"
dtml-in list
   dtml-var sequence-itembr
   dtml-try
   dtml-in sequence-item
   dtml-var sequence-item/br
   /dtml-in
   dtml-except
 h4Why can't I do this!/h4
   /dtml-try 
/dtml-in
 /dtml-let
 h4Iterate Over 1-tuples/h4
 dtml-let list="[('a',),('b',)]"
dtml-in list
   dtml-var sequence-itembr
   dtml-in sequence-item
   dtml-var sequence-item/br
   /dtml-in  
/dtml-in
 /dtml-let
 
 ---
 
 -- cary
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   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] Telecommuter

2000-07-19 Thread Luis Cortes

Hi,

I was wondering if anybody has some odd jobs for me to do with Zope or
Python.  I am availiable for telecommute positions.  I have 5 years experience
as a programmer/software engineer and I have recently picked up Zope and
Python, but already I feel like an old pro.  Drop me an email or give me a call
(505) 824-9424.

Thanks,
Luis.

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

2000-07-31 Thread Luis Cortes



Does anybody know where I might still be able to 
download Zope 2.1.6? 

Thank ahead of time for any help,
Luis.



Re: [Zope] Redhat 6.2 problems

2000-08-10 Thread Luis Cortes

You can run it as a background process.

./start 

or you can create/modify the initialize file in /etc/rc.d/init.d/Zope

if it is not there, create one, if it is check it to see that it is pointing
to the correct path.
Also, in the boot script make sure that you have a  to start it as a
background process.

Regards,
Luis.




- Original Message -
From: "Scott Burton" [EMAIL PROTECTED]
To: "Zope List" [EMAIL PROTECTED]
Sent: Thursday, August 10, 2000 3:32 PM
Subject: [Zope] Redhat 6.2 problems


 I am trying to run the latest version of Zope (2.2.1 beta) on a Redhat 6.2
 Linux system. When I run the ./start script it gets to the Zope Server
 Monitor and sits there. It never returns back to the bash prompt. I can
get
 to Zope's management interface from a browser so Zope *is* running.
However
 if I close that terminal window, Zope stops. Python 1.5.2_13 is the
version
 installed by Redhat. Which is the correct version of Python, last I
checked.
 Also, if I run a startup script to start Zope during the boot process, it
 hangs the boot process. Any suggestions?

 Scott Burton


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

2000-08-12 Thread Luis Cortes



Hi!

Does anyone of a simple newsletter product. 
What I mean by simple is no extra features, just the news.

Thanks ahead of time for any help,
Luis.