[Zope] Re: Leave the ivory tower now!

2005-12-28 Thread Michael Haubenwallner

Bakhtiar A Hamid wrote:

On 12/27/05, Michael Haubenwallner <[EMAIL PROTECTED]> wrote:


Andrew Sawyers wrote:



On Sun, 2005-12-25 at 10:03 +0800, Bakhtiar A Hamid wrote:




  The 'closed group' dissolved a while ago.


that's sad(?)  anything came out of the group?  i think we need to do
to zope.org what we did to zope2.  ignore and build.  leave it as
old.zope.org and link from the new site.




That was the plan.  I'd like to revive the plan.  :)  Volunteers?
Andrew



Count me in

Michael





me three.  i;ll try and find time.  and also find where i can help



Thats great, please join us in IRC (irc.freenode.net) at #zope-web

Michael

--
http://zope.org/Members/d2m
http://planetzope.org

___
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] DateTime().Time() gets Insufficient Privileges error, why?

2005-12-28 Thread Jamie O'Keefe
I am trying to get the latest time in a Python Script.

I declare:

   from DateTime.DateTime import DateTime

But when I run:

   t = DateTime().latestTime()

or

   t = DateTime().Time()

I always get an Insufficient Privileges error.

I have combed through the archives and the web and as far as I can
tell this should work.  What am I doing wrong?

Thanks!

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


Re: [Zope] Re: Leave the ivory tower now!

2005-12-28 Thread Bakhtiar A Hamid
On 12/27/05, Michael Haubenwallner <[EMAIL PROTECTED]> wrote:
Andrew Sawyers wrote:> On Sun, 2005-12-25 at 10:03 +0800, Bakhtiar A Hamid wrote:>>The 'closed group' dissolved a while ago.>>that's sad(?)  anything came out of the group?  i think we need to do
>>to zope.org what we did to zope2.  ignore and build.  leave it as>>old.zope.org and link from the new site.
> That was the plan.  I'd like to revive the plan.  :)  Volunteers?> Andrew>Count me inMichael

me three.  i;ll try and find time.  and also find where i can help

--http://zope.org/Members/d2m
http://planetzope.org___Zope maillist  -  Zope@zope.orghttp://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 )-- http://myzope.kedai.com.my - my-zope org
___
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] python build errors

2005-12-28 Thread David Bear
I installed python 2.3.5 in order to keep my zope happy. However, make test yeilded some unexpected errors:

1 test failed:
    test_zipimport
35 tests skipped:
    test_aepack test_al test_audioop test_bsddb test_bsddb185
    test_bsddb3 test_cd test_cl test_crypt test_curses test_dbm
    test_dl test_email_codecs test_gdbm test_gl test_imageop
    test_imgfile test_linuxaudiodev test_macfs test_macostools
    test_mpz test_nis test_normalization test_ossaudiodev test_pep277
    test_plistlib test_rgbimg test_scriptpackages test_socket_ssl
    test_socketserver test_sunaudiodev test_timeout test_urllibnet
    test_winreg test_winsound
8 skips unexpected on linux2:
    test_dbm test_crypt test_gdbm test_rgbimg test_bsddb test_mpz
    test_audioop test_imageop
make: *** [test] Error 1


I don't know why these would have failed. Would these failures be a problem for zope?-- David BearWhat's the difference between private knowledge and public knowledge?
___
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 )


Re: [Zope] mxODBC config probs for MSSQL

2005-12-28 Thread robert rottermann

Rob,
is the connection outside of Zope running. Can you connect to the SQL 
Server using Isql or a similar command line tool?


Robert

Rob Jingle wrote:
This is an issue regarding the egenix mxODBC drivers for Zope to 
communicate with MSSQL.Iam having problems configuring th emxODBC on 
Zope.Iam not being successfull in creating a connection to SQL server.
 
The error iam getting is:


*EGENIX .COM mxODBC Zope DA*
 
Problem connecting to the database

Connection string: Driver=SQL Server

Connection pool entry: 0

Error message: ('IM003', 0, '[iODBC][Driver Manager]Specified driver
could not be loaded', 8222)


  Any kind of help is appreciated.
Thank you,
Suhas


___
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 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] mxODBC config probs for MSSQL

2005-12-28 Thread Rob Jingle
This is an issue regarding the egenix mxODBC drivers for Zope to communicate with MSSQL.Iam having problems configuring th emxODBC on Zope.Iam not being successfull in creating a connection to SQL server. The error iam getting is:
EGENIX
.COM
mxODBC Zope DA
  
  
 
  
  

  Problem connecting to the database

  
  
 


  Connection string: Driver=SQL ServerConnection pool entry: 0Error message: ('IM003', 0, '[iODBC][Driver Manager]Specified driver could not be loaded', 8222)
  Any kind of help is appreciated.Thank you,Suhas
___
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 )


Re: [Zope] Please help with DTML-in (newbie)

2005-12-28 Thread Tino Wildenhain
J Cameron Cooper schrieb:
> Alric Aneron wrote:
> 
>>  Hello, I am new to Zope and DTML.
>> I am trying to use a python script to call a Z SQL method.  The python
>> script also has a list that > over. so my python script:
>> -python script
>> words = ['one', 'two']
>> context.REQUEST.set('wordlist', wordlist)
>> rs = context.myzsqlmethod()
>> return rs[0,2]
>> -z sql script:
>> SELECT * FROM table
>> WHERE
>> 
>> column1 LIKE ('' OR
>> column2 LIKE '') > sequence-end> AND 
>> 

And dont use  in ZSQL Methods.
In your example, use  instead.
Even if you hardcode the wordlist, but even more if its coming
from request somewhere.
___
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 )


RE: [Zope] Please help with DTML-in (newbie)

2005-12-28 Thread Jaroslav Lukesh
> I am trying to use a python script to call a Z SQL method.  The python

You need to have defined "words" as parameter for ZSQL Metod. You have tried
to call property wordlist which is not exit.

Here are your ZSQL with safety (not functional) concern:


words:string


SELECT * FROM table
WHERE



(
column1 LIKE '%%' 
OR
column2 LIKE '%%'
) 
 AND  




And here are some functional tips for you:





> -z sql script:
> SELECT * FROM table
> WHERE
> 
> column1 LIKE ('' OR
> column2 LIKE '')  end> AND 
> 

Nice example for easy SQL injection!



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


Re: [Zope] Please help with DTML-in (newbie)

2005-12-28 Thread J Cameron Cooper

Alric Aneron wrote:

 Hello, I am new to Zope and DTML.
I am trying to use a python script to call a Z SQL method.  The python 
script also has a list that over. so my python script:

-python script
words = ['one', 'two']
context.REQUEST.set('wordlist', wordlist)
rs = context.myzsqlmethod()
return rs[0,2]
-z sql script:
SELECT * FROM table
WHERE

column1 LIKE ('' OR
column2 LIKE '') sequence-end> AND 


---
But it doesn't want to, gives me..
*Error Type: NameError*
*Error Value: name 'wordlist' is not defined

*I tried feeding the variable into the ZSQL arguments list, but i got 
something like "cannot concatenate a module with a str"

Can anyone please help me?
Thank you!


It complains about 'wordlist' because it is not defined anywhere. 
Perhaps you mean 'words' in the second line?


To pass a param to the ZSQL method, just say::

   context.myzsqlmethod(words=words)

This will put it in the namespace.

--jcc
--
"Building Websites with Plone"
http://plonebook.packtpub.com/

Enfold Systems, LLC
http://www.enfoldsystems.com
___
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] Please help with DTML-in (newbie)

2005-12-28 Thread Alric Aneron
 Hello, I am new to Zope and DTML. I am trying to use a python script to call a Z SQL method.  The python script also has a list that  -python script words = ['one', 'two'] context.REQUEST.set('wordlist', wordlist) rs = context.myzsqlmethod() return rs[0,2] -z sql script: SELECT * FROM table WHERE   column1 LIKE ('' OR column2 LIKE '')  AND--- But it doesn't want to, gives me.. Error Type: NameErrorError Value: name 'wordlist' is not defined  I tried feeding the variable into the ZSQL arguments list, but i got something like "cannot concatenate a module with a str" Can a
 nyone
 please help me? Thank you! 
		Yahoo! Shopping 
Find Great Deals on Holiday Gifts at Yahoo! Shopping ___
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 )