Re: [Zope] Zope2 - pro/contra

2015-03-05 Thread Jaroslav Lukesh

Zope2 is not dead, it is mature product. I use it, I love it.

Comunity is real small just now, because all what are discoverable, is 
discovered.


Zope 2 download site is practically dead for many years, so more than 90% of 
products are not avaiable. This is the biggest problem because these 
products was very valuable, but now are in the limbus.


There are no new products for Zope2 because comunity was ran to Zope3, which 
is impractical.


The first big mistake is giving too much propagation to the ZPT/TAL 
technology which is absolutelly not good for the zope masses. The second big 
mistake is run out to the Zope3, which is totally different in the idea and 
many peoples are gone away to the Java, PHP etc.


Regards, JL.

- Puvodní zpráva - 
Od: Sebastian Tänzer s...@taenzer.me


we're still developing websites using Zope2 + ZMS3 
(www.zms-publishing.com) for years now and never ran into any real 
problems (compared to, let's say, Wordpress, typo3, Drupal etc. which had 
serious security problems over the years) and our clients are quite happy 
with ZMS.


A few days ago on a barcamp the discussion lead to Zope and the usual 
comments, i.e. Zope is dead, I would not use that, Too complicated, 
Too old, Outdated, and so on.


My personal opinion is, that Zope2 is still rock-solid and gets the job 
done. I've never heard of any serious issues compared to the big 
competitors from the PHP or Java world. I looked into Pyramid and Django 
for different projects and always came back to Zope2 itself.


I did not ask that question for quite some time now as there was no 
reason. Sure, sometimes we get comments like never heard of it etc., but 
nothing serious. Still, are there any specific reasons (beside personal 
favors) not to use Zope2 anymore? Any reason not to use Zope2 + ZODB for 
new projects? Are other frameworks like flask, Django, pyramid etc. that 
much better compared to Zope?




___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] How to locate unused objects?

2014-03-05 Thread Jaroslav Lukesh

Dear zopistas,

does somebody have script to locate (and delete) unaccessed files (not 
viewed from some date) in the ZoDB tree with webserver log?


Regards,

Jaroslav Lukesh 


___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] manipulate ZSQL results in Zope code

2013-09-30 Thread Jaroslav Lukesh

Hi all,

I have switched from years old database adapter to SQLRelay, yep, it is 
rugged stable on unstable connections, but this adapter get all number 
values as strings (older version where numbers are numbers does not work 
with cp1250 - problem solved in 0.51 this year). I need numbers as numbers, 
of course, because application have thousands of queries.


I was try to change source in SQLrelay, but no success probably due 
academy-like code.


So as I know that Zope have readable code... I was make changes in 
/lib/python/Shared/DC/ZRDB in files RDB, Results, Aqueduct (*.py)


Again, all my changes are unsuccessfull seems like I was change some 
differ place, but no, if I make syntax error, zope wont start and changes in 
column names was OK too.


Would you like to help me, where is the right place to manipulate result 
values from ZSQL methods, please?


Many thanks,

J. Lukesh 


___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope-dev )


[Zope-DB] manipulate ZSQL results in Zope code

2013-09-30 Thread Jaroslav Lukesh

Hi all,

I have switched from years old database adapter to SQLRelay, yep, it is 
rugged stable on unstable connections, but this adapter get all number 
values as strings (older version where numbers are numbers does not work 
with cp1250 - problem solved in 0.51 this year). I need numbers as numbers, 
of course, because application have thousands of queries.


I was try to change source in SQLrelay, but no success probably due 
academy-like code.


So as I know that Zope have readable code... I was make changes in 
/lib/python/Shared/DC/ZRDB in files RDB, Results, Aqueduct (*.py)


Again, all my changes are unsuccessfull seems like I was change some 
differ place, but no, if I make syntax error, zope wont start and changes in 
column names was OK too.


Would you like to help me, where is the right place to manipulate result 
values from ZSQL methods, please?


Many thanks,

J. Lukesh 


___
Zope-DB mailing list
Zope-DB@zope.org
https://mail.zope.org/mailman/listinfo/zope-db


Re: [Zope] Restore files from Data.fs.tr0 SOLVED

2013-03-18 Thread Jaroslav Lukesh

This simple script and diff and manual changes against appropriate files.

#!/var/zope/python/bin/python
f = open(Data.fs.tr0, r+ab)
c =  f.read()
s='__name__q'
a = c.split(s)
i = 0
print(len(a))
for polozka in a:
   i = i + 1
   fn = 'vystup_' + str(i)
   x = open(fn,ab)
   x.write(polozka)
   x.close()
f.close()

Lucky that it was no much of filenames. Select both files in Total 
Commander, then File - Diff - uncheck binary and check again - Edit, helps a 
lot.


For bigger truncated slices it could be better to do it with filename 
support etc.


Regards, JL. 


___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Restore files from Data.fs.tr0

2013-03-15 Thread Jaroslav Lukesh

Hi all,

due disk and backup failure, I need to restore latest versions of files and 
properties from Data.fs.tr0, does have anybody some script or tips how to do 
it with zope tools, please?


Note that original Data.fs have changes after failure date, size at time of 
the failure is unknown.


Many thanks,
Jaroslav Lukesh 


___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Restore files from Data.fs.tr0

2013-03-15 Thread Jaroslav Lukesh

Hi,

thanks for assistance, but this solution make export of data up to specified 
date in Undo history, instead of rescuing things from data.fs.tr0.


Is it possible to rescue data from data.fs.tr0, please?

Many thanks, JL.

- Puvodní zpráva - 
Od: Cornel Nitu cornel.n...@eaudeweb.ro

Komu: Jaroslav Lukesh luk...@seznam.cz
Kopie: zope@zope.org; zodb-...@zope.org
Odesláno: 15. brezna 2013 13:34
Predmet: Re: [Zope] Restore files from Data.fs.tr0


Hi,

I use the following steps to get objects from a corrupted Data.fs. You can 
apply some guesses regarding the dates.


1. Make another Zope instance, with same products
2. Copy the real Data.fs into this temporary zope instance
3. Start zopedebug: $:/path-to-zope/bin/zopectl debug. Run these commands:

import ZODB.DB, ZODB.FileStorage, cPickle
from ZODB.TimeStamp import TimeStamp
from OFS import ObjectManager
date_tuple = (2009,8,23,23,17,06) #date when data was safe
special_date = TimeStamp(*date_tuple) #make date into special format
filename=’/var/local/zopetest/var/db.fs’ #path to Zope’s Data.fs (zope 
instance have to be stopped atm)
storage = ZODB.FileStorage.FileStorage(filename, 
read_only=1,stop=`special_date`) #wait few minutes, until it opens Data.fs

DB = ZODB.DB(storage) #mount database
conn = DB.open() #open database
root = conn.root()['Application']
folder = getattr(root, ‘myfolder’) #the parent containing the folder with 
the objects you want to recover

folder.manage_exportObject(id=’mycontent’,download=0)

Hope it helps.

Good luck,
Cornel

--
Cornel Nitu
Eau de Web (http://www.eaudeweb.ro)
Clucerului 55, ap 7, 011364 Bucharest
Tel/fax: +40 21 222 1522, Mobile: +40 721 223 623
Jabber: cor...@jabber.eaudeweb.ro, Skype: nitucornel

On Mar 15, 2013, at 2:01 PM, Jaroslav Lukesh wrote:


Hi all,

due disk and backup failure, I need to restore latest versions of files 
and properties from Data.fs.tr0, does have anybody some script or tips how 
to do it with zope tools, please?


Note that original Data.fs have changes after failure date, size at time 
of the failure is unknown.


Many thanks,
Jaroslav Lukesh
___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope-dev )


___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope-dev ) 


___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Data.fs too big to pack...

2012-12-06 Thread Jaroslav Lukesh
copy your zope var folder to another machine and then make it as network 
share, then pack it.


- Puvodní zpráva - 
Od: Dan Gaibel d...@cornell.edu



I have foolishly allowed my database to grow so large that I have no room 
to pack it. Is there any way that I could make it so that Data.fs.old gets 
populated on a separate drive or over the network?


___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] dynamic dtml-with from string content

2012-02-17 Thread Jaroslav Lukesh

varx = 'this is the text
dtml-var _['varx'] = dtml-var varx = 'this is the text

varxx = 'varxy'
dtml-var _[varxy] = dtml-var varx = 'this is the text

my_class_path is i.e. folder1.folder_sub

so:

dtml-with _[_.string.split(my_class_path, '.')[0]]
dtml-with _[_.string.split(my_class_path, '.')[1]]
..your code
/dtml-with
/dtml-with

Some tips:

dtml-var restrictedTraverse(_.string.join(VirtualRootPhysicalPath,'/') + 
'/path/to/your/document',None).title


google: dieter chap3 zope


- Puvodní zpráva - 
Od: Niels Dettenbach n...@syndicat.com


I try to define a property my_class_path (string) on a folder and want to
use that within a dtml-with statement - i.e.:

my_class_path is i.e. folder1.folder_sub

dtml-with folder1.folder_sub

seems to work, but i cant find any easy way to  to use the content of the
string my_class_path within the with statement.

If i just have a single folder to get aquisition from, i just can use
something like:

dtml-with _[my_class_path]

but if i have deeper pathes in my_class_path the this doesnt work.

I just can do directly:

 dtml-with _['folder1']['folder_sub']

but i can't just put _['folder1']['folder_sub'] into my_class_path too -
this didn't works too...


___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope-DB] How to extract users info from ZODB?

2012-01-25 Thread Jaroslav Lukesh
Look at management page dtml source of your Zope server (on the disk,not in 
ZoDB).


- Puvodní zpráva - 
Od: smita kamdar smita.kamda...@gmail.com




Hi,

Thanks a lot for your response.

My exact query is when i open ZMI, there is 1 folder named
'acl_users'. When i open that folder , there is a list of users
defined there. I want to extract the details of those users in the
list. How do I extract those details? Here I am not sure that those
user details exist in ZODB or some other location.



___
Zope-DB mailing list
Zope-DB@zope.org
https://mail.zope.org/mailman/listinfo/zope-db


Re: [Zope] Checking multiple variables existence

2012-01-24 Thread Jaroslav Lukesh

it works:

dtml-if var1=='OK' and var2==3 and var3 in ('a',1,'1') and var4 != 'OK' 
and var5


note1: var5 is string, true when '' nor None but must exists

note2: var5 is int, true when 0 nor None but must exists

dtml-else
/dtml-if


- Puvodní zpráva - 
Od: Justin Dunsworth


Is there any way to check if multiple variables exist in the same if 
statement? Right now I am having to writing multiple nested if statements 
but can be quite cumbersome... so just looking for an easier way.



Currently I'd have to write:
dtml-if var1
 dtml-if var2
   dtml-if var3
   dtml-else
   /dtml-if
 dtml-else
 /dtml-if
dtml-else
/dtml-if


When it would be easier to do something like:


dtml-if var1 and var2 and var3
dtml-else
/dtml-if


___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Checking multiple variables existence

2012-01-24 Thread Jaroslav Lukesh

Yes, use like that

dtml-unless var1
dtml-call REQUEST.set('var1','')
/dtml-unless


- Puvodní zpráva - 
Od: Justin Dunsworth


These are required to be set, though.. right?


Doing:
dtml-call REQUEST.set('var_one','OK')
dtml-call REQUEST.set('var_two','OK')


dtml-if var_one=='OK' and var_two=='OK' Set
dtml-else Not Set
/dtml-if


works but taking away var_two and I get a NameError: name 'var_two' is not 
defined. This is what I'm trying to check is if they exist. Not particularly 
looking to match them to anything just yet but rather just to see if they 
exist. If they throw an error then it's not working.



On Tue, Jan 24, 2012 at 11:08 AM, Jaroslav Lukesh luk...@seznam.cz wrote:

it works:

dtml-if var1=='OK' and var2==3 and var3 in ('a',1,'1') and var4 != 'OK' 
and var5


note1: var5 is string, true when '' nor None but must exists

note2: var5 is int, true when 0 nor None but must exists

dtml-else
/dtml-if

___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Strange issues at string operations with request variables

2012-01-05 Thread Jaroslav Lukesh

Hi,

I was try the python script, but no success.

The final cut (as Murphy law says):
dtml-call 
expr=RESPONSE.redirect('http://www.otherdomain.com/path/to/document', 
status=301)


1. At Zope 2.10.13 redirect to samedomain which cause loop, not to the 
otherdomain.


2. At Zope 2.7 this redirect is redirected to otherdomain which is expected. 
At Zope 2.7 I was not test redirect with PySript.


So I use redirect to home page.


- Puvodní zpráva - 
Od: William Heymann



What I would do is do this with a python script instead of DTML. You will 
find this kind of stuff is much simpler with a python script you just call 
from DTML



something like


REQUEST['redirect_URL'] = 'http://www.otherdomain.com' + REQUEST.URLPATH0



2012/1/4 Jaroslav Lukesh luk...@seznam.cz

Hi all,

I have discovered strange issues with all request variables. Here are 
examples only, but I was try all useable variables in the REQUEST.


I want to use redirect to another server with same relative link, but 
different domain,some like that:


dtml-call REQUEST.set('redirect_URL', 'http://www.otherdomain.com' + 
URLPATH0)

dtml-call expr=RESPONSE.redirect(_.str(redirect_URL), status=301)

It does not work even if I make obstructions for request variables like 
_.str(), _[''] etc.


In cases below variable 'redirect_URL' seems OK, but redirect goes into 
loop.


dtml-call REQUEST.set('redirect_URL', 'http://www.otherdomain.com' + 
PATH_TRANSLATED)
dtml-call REQUEST.set('redirect_URL', 'http://www.otherdomain.com' + 
_.str(_['URLPATH1']))

dtml-call REQUEST.set('redirect_URL', 'http://www.otherdomain.com')

In cases below variable 'redirect_URL' = 'h'.

dtml-call REQUEST.set('redirect_URL', 
URL.replace(BASE0,'http://www.otherdomain.com')[0])
dtml-call REQUEST.set('redirect_URL', 
URL.replace(_.string.split(HTTP_HOST,':')[0],'www.otherdomain.com')[0])



I was try different (very old) Zope, but result is the same.

It is possible my uncorrect handle with request variables, but how to handle 
correct with them?


Many thanks,

J. Lukesh

___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Strange issues at string operations with request variables

2012-01-05 Thread Jaroslav Lukesh

Hi, it make loop, not redirect to the new domain.

- Puvodní zpráva - 
Od: Giampiero Benvenuti giampiero.benven...@chiaroscuro.com



what about
dtml-call RESPONSE.redirect(new_url, lock=1)

___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Strange issues at string operations with request variables

2012-01-04 Thread Jaroslav Lukesh
Hi all,

I have discovered strange issues with all request variables. Here are 
examples only, but I was try all useable variables in the REQUEST.

I want to use redirect to another server with same relative link, but 
different domain,some like that:

dtml-call REQUEST.set('redirect_URL', 'http://www.otherdomain.com' + 
URLPATH0)
dtml-call expr=RESPONSE.redirect(_.str(redirect_URL), status=301)

It does not work even if I make obstructions for request variables like 
_.str(), _[''] etc.

In cases below variable 'redirect_URL' seems OK, but redirect goes into 
loop.

dtml-call REQUEST.set('redirect_URL', 'http://www.otherdomain.com' + 
PATH_TRANSLATED)
dtml-call REQUEST.set('redirect_URL', 'http://www.otherdomain.com' + 
_.str(_['URLPATH1']))
dtml-call REQUEST.set('redirect_URL', 'http://www.otherdomain.com')

In cases below variable 'redirect_URL' = 'h'.

dtml-call REQUEST.set('redirect_URL', 
URL.replace(BASE0,'http://www.otherdomain.com')[0])
dtml-call REQUEST.set('redirect_URL', 
URL.replace(_.string.split(HTTP_HOST,':')[0],'www.otherdomain.com')[0])


I was try different (very old) Zope, but result is the same.

It is possible my uncorrect handle with request variables, but how to handle 
correct with them?

Many thanks,

J. Lukesh 
___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] serious security hole in manage users / Manage userspermissions?

2011-10-24 Thread Jaroslav Lukesh
2.10.13 is not affected in direct link nor acquired link.
___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] File upload again

2011-10-14 Thread Jaroslav Lukesh
Hi all,

I want upload csv file for direct processing into SQL only, not for save to 
ZODB nor LocalFS. Upload for LocalFS already worked for me.

So I have form:

form method=POST enctype=multipart/form-data
input type=file name=fcsv value= size=50br
input type=file name=fcsv2 value= size=50br
   input type=submit name=fileupload value=Upload
/form

Diagnostic processing:
dtml-var fcsv.filename::dtml-var fcsv.headers['Content-Type'] 
::dtml-var fcsv
And what it get:
data_2011.CSV::application/vnd.ms-excel::

Su upload worked, but what I can access to data of the uploaded file?

the dtml-in does not process anything, only displays NO DATA.

dtml-in PyS_csvimport(fcsv) prefix=pys
dtml-var pys_itembr
dtml-else
 NO DATA
/dtml-in

PyS_csvimport parse CSV file by line and return array structure like this 
[['',''],['','']].

If I use TEXTAREA instead of file upload, dtml-in works.

How to get CSV file content to processing?

Many thanks,

Jaroslav Lukesh



PS: HTTP Request loks like that:

http://myhost/csvimport/

POST /csvimport/ HTTP/1.1
Host: myhost
(..)
Content-Type: multipart/form-data; 
boundary=---30333176734664
Content-Length: 21822
-30333176734664
Content-Disposition: form-data; name=fcsv; filename=data_2011.CSV
Content-Type: application/vnd.ms-excel

(bulk od CSV data.)
-30333176734664
Content-Disposition: form-data; name=fcsv2; filename=data_2011_kd.CSV
Content-Type: application/vnd.ms-excel

(bulk od CSV data.)
-30333176734664
Content-Disposition: form-data; name=fileupload

Upload
-30333176734664--

HTTP/1.1 200 OK
Server: Zope/(Zope 2.10.13-final, python 2.4.6, linux2) ZServer/1.1
Date: Fri, 14 Oct 2011 09:21:48 GMT
Content-Length: 2389
Content-Type: text/html; charset=cp1250

___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Conversion old.zope.org to static site

2011-10-14 Thread Jaroslav Lukesh
Try to use this mirroring software - Metaproducts Offline Explorer 
Enterprise.

Regards, JL.

- Puvodní zpráva - 
Od: Jens Vagelpohl j...@dataflake.org



 Just as a heads-up: Jim Fulton and I have converted old.zope.org to a 
 static website. This allows ZC to decommission the hardware and reduces 
 the maintenance burden for everyone involved.

 We have tried to keep all URLs intact and the site navigation working at 
 the same time, which required a little creative thinking.

 Some of you rely on resources from the old.zope.org site, such as release 
 tarballs of older Zope versions and other products. Please test and ensure 
 the files you need are still where you expect them. If you have problems, 
 just contact me off-list and I'll take a look.

___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Conversion old.zope.org to static site

2011-10-14 Thread Jaroslav Lukesh
Hi,
there are no image to view:

http://old.zope.org/Members/heiko.stoermer/ListMate/manual_pics/folder_contents

Image is missing:

http://old.zope.org/Members/heiko.stoermer/ListMate/manual_pics/ListMate_create.gif/image_view

and code:

img src=../ListMate_create.gif



Regards, JL.

- Puvodní zpráva - 
Od: Jens Vagelpohl j...@dataflake.org

 Just as a heads-up: Jim Fulton and I have converted old.zope.org to a 
 static website. This allows ZC to decommission the hardware and reduces 
 the maintenance burden for everyone involved.

 We have tried to keep all URLs intact and the site navigation working at 
 the same time, which required a little creative thinking.

 Some of you rely on resources from the old.zope.org site, such as release 
 tarballs of older Zope versions and other products. Please test and ensure 
 the files you need are still where you expect them. If you have problems, 
 just contact me off-list and I'll take a look.

___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] File upload again

2011-10-14 Thread Jaroslav Lukesh
Many thanks, it works.

- Puvodní zpráva - 
Od: Peter Bengtsson m...@peterbe.com


How about something like:
dtml-in PyS_csvimport(fcsv.read()) prefix=pys


On 14 October 2011 10:29, Jaroslav Lukesh luk...@seznam.cz wrote:
 Hi all,

 I want upload csv file for direct processing into SQL only, not for save 
 to
 ZODB nor LocalFS. Upload for LocalFS already worked for me.

 So I have form:

 form method=POST enctype=multipart/form-data
 input type=file name=fcsv value= size=50br
 input type=file name=fcsv2 value= size=50br
 input type=submit name=fileupload value=Upload
 /form

 Diagnostic processing:
 dtml-var fcsv.filename::dtml-var fcsv.headers['Content-Type']
 ::dtml-var fcsv
 And what it get:
 data_2011.CSV::application/vnd.ms-excel::

 Su upload worked, but what I can access to data of the uploaded file?

 the dtml-in does not process anything, only displays NO DATA.

 dtml-in PyS_csvimport(fcsv) prefix=pys
 dtml-var pys_itembr
 dtml-else
 NO DATA
 /dtml-in

 PyS_csvimport parse CSV file by line and return array structure like this
 [['',''],['','']].


___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Urgend help needed: Error migrating Zope Data.fs from 2.10 to 2.13: object.__new__(Args) is not safe

2011-10-14 Thread Jaroslav Lukesh
Did you try export 2.10 to ZEXP and on 2.13 import that zexp file?


- Puvodní zpráva - 
Od: Frank Kauff fka...@biologie.uni-kl.de


 Sorry for the repost, but I'm lost, and really need to solve this 
 problem...

 When trying to move Data.fs from Zope 2.10 to 2.13, I first ran into the
 version problem, but I successfully stripped versions out of my
 Data.fs (thanks to this mailing list).
 Now Zope starts up properly and displays the manage page, but when I try
 to access the various folders of the site, I get the error below.

 Any ideas about how to overcome this? How have others convrted their
 data? Should I move Data.fs in small stepss from 2.10 to 2.11, then to
 2.12, and then to 2.13? Is this a common compatibility issue, or some
 other error in Data.fs?

___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Tag BASE without port number

2011-07-13 Thread Jaroslav Lukesh
Hi all,

is it possible to hide port bumber in case of reverse proxy redirecting? I 
have POUND as reverse proxy and Zope 2.10.13 on port 930, but html BASE tag 
contain this port number, which I does not want to have there.

I do not want to explicit specify base tag at all pages.

I prepare new installation, but I cannot remember nor find what I was make 
before at my old installation, it is 5 years ago. Google does not help me.

Many thanks,

J. Lukesh 

___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Tag BASE without port number

2011-07-13 Thread Jaroslav Lukesh

- Puvodní zpráva - 
Od: Tres Seaver tsea...@palladion.com


 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 07/13/2011 08:37 AM, Jaroslav Lukesh wrote:
 Hi all,

 is it possible to hide port bumber in case of reverse proxy
 redirecting? I have POUND as reverse proxy and Zope 2.10.13 on port
 930, but html BASE tag contain this port number, which I does not
 want to have there.

 I do not want to explicit specify base tag at all pages.

 I prepare new installation, but I cannot remember nor find what I was
 make before at my old installation, it is 5 years ago. Google does
 not help me.

 Configure pound to rewrite onto a Virtual Host Monster URL, which will
 make all the URLs generated by Zope code match the public URL space.
 See http://docs.zope.org/zope2/zope2book/VirtualHosting.html

Thanks, it worked.

I use VHM already, but I dont know why it does not work before and worked 
now. I was try to change ZPublisher/HTTPResponse.py without success, but 
after putting original unchanged file back, it worked now. I prepare zope in 
virtual machine now, but it is not just first case when the whole system is 
unpredictablethinking about physical hardware, but management want 
virtuals.

Regards, J. Lukesh


___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Forcing zope to preload objects in cache

2011-02-08 Thread Jaroslav Lukesh
Use wget after minute or so after restarting.

- Puvodní zpráva - 
Od: Marco Bizzarri

I've a Zope application; response time in the application is quite different 
if the cache is already loaded with data from the ZODB (a Data.fs served 
over ZEO).

The Zope/ZEO server is restarted every night, so, the cache is emptied every 
night, and the first users to access the objects in the morning suffer from 
longer response times.

I'd like to force Zope to reload the cache; of course, I could access 
various pages using a wget or something liket that; but how can I force Zope 
to 'fill' all connections, and just one?

___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] dtml-except

2010-10-04 Thread Jaroslav Lukesh
- Puvodní zpráva - 
Od: larrymcdonn...@att.net
Komu: zope@zope.org
Odesláno: 4. ríjna 2010 21:57
Predmet: [Zope] dtml-except


 Hi,

 I need the old timers to help with a zope dtml-try/dtml-except conditions. 
 I am using Zope 2.6.1. My problem is as follows:

 dtml-if expr=fluency_temp''
 fluency - dtml-var fluency_temp**

 dtml-call REQUEST.set('fluency_test', fluency_temp)

 dtml-call string_to_int(fluency_test ,REQUEST)
 dtml-try

 dtml-call REQUEST.set('fluency', y)

 dtml-except ValueError

 dtml-call REQUEST.set('name_error', 'error')

 dtml-if expr=name_error=='error'

 Invalid Number entered
 a href=../prek_4_dra_scoring_system/display_student 
 Click here to go back/a

 dtml-else

 dtml-call REQUEST.set('student_full_name', student_full_name)
 dtml-call REQUEST.set('dra', dra_temp)
  dtml-call REQUEST.set('date_scored', ZopeTime())
 dtml-call REQUEST.set('fluency', fluency)

dtml-call expr=update_dra_edl_score_1_4_record_eng(REQUEST)

 /dtml-if
 /dtml-try

 /dtml-if
 /dtml-in
 /dtml-if

 I will see an error if I enter a letter and not a number -

 Exception Type ValueError
 Exception Value invalid literal for int(): a



fluency - dtml-var fluency_temp missing=N/A null=N/A**

dtml-try

dtml-call REQUEST.set('fluency_test', _.int(fluency_temp))

dtml-call REQUEST.set('fluency', y)

dtml-call REQUEST.set('student_full_name', student_full_name)
dtml-call REQUEST.set('dra', dra_temp)
dtml-call REQUEST.set('date_scored', ZopeTime())
dtml-call REQUEST.set('fluency', fluency)


??? what you want to do with this ???
dtml-call expr=update_dra_edl_score_1_4_record_eng(REQUEST)
??? what you want to do with this ???

dtml-except ValueError

dtml-call REQUEST.set('name_error', 'error')

Invalid Number entered
a href=../prek_4_dra_scoring_system/display_student 
Click here to go back/a

/dtml-try


___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope-DB] ZSQL Question - Insert multiple rows in one statement?

2010-08-25 Thread Jaroslav Lukesh
- Puvodní zpráva - 
Od: Shane Hathaway sh...@hathawaymix.org


 On 08/24/2010 04:04 PM, Jaroslav Lukesh wrote:
 ZPT is more academic platform, than for everyday usage.

 Wow, I have never heard that opinion before.  I have had quite the
 opposite experience: I find ZPT more productive and less error-prone
 than all other web templating languages.  I have a project that pulls in
 several templating languages, due to dependencies, and ZPT is easily the
 best and most practical of them all.

 I should clarify that I use Chameleon and BFG, so expressions in
 templates are in Python, and BFG's view machinery lets me put all
 non-trivial template code in normal Python modules.

 I suppose I would agree with the statement Zope 2 page templates are
 academic, since the full practical value of ZPT was not realized until
 it was reimplemented a few times.  (See Kid, Genshi, Chameleon, and
 possibly others.)

 Anyway, sorry for posting this to the wrong list.

 Shane

Thanks for clarify, you are true, I use Zope 2 only. If Zope3 ZPT is so 
good, then it is good news.

Regards, JL. 

___
Zope-DB mailing list
Zope-DB@zope.org
https://mail.zope.org/mailman/listinfo/zope-db


Re: [Zope] string formatting

2010-08-14 Thread Jaroslav Lukesh

- Puvodní zpráva - 
Od: Andreas Jung li...@zopyx.com

 Jaroslav Lukesh wrote:
 It is easy:

 dtml-call REQUEST.set('signumfix2',signum2[1:4])
 dtml-call REQUEST.set('signumfix2', _.int(signumfix2)+1)
 dtml-call REQUEST.set('signumFinal', 'B' + _.str(1000 +
 signumfix2)[1:] )



 Hopefully such code won't be released :-)

It was for illustration only, here is the better one:

dtml-call REQUEST.set('signumFinal', 'B' + _.str(1001 + 
_.int(signum2[1:]))[1:])

DTML is your friend, not evil.

JL.

___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] string formatting

2010-08-13 Thread Jaroslav Lukesh
It is easy:

dtml-call REQUEST.set('signumfix2',signum2[1:4])
dtml-call REQUEST.set('signumfix2', _.int(signumfix2)+1)
dtml-call REQUEST.set('signumFinal', 'B' + _.str(1000 +
signumfix2)[1:] )

DTML is simple and fine :)


- Puvodní zpráva - 
Od: Ebbe Kvist

I want to process a variable, signum2, which is picked up from a MySQL
database. The content of the variable is
B006.
The aim is to process this variable so the result will be
B007 and it will then be saved as part of a new record in the database.
The core process is to increment the integer part of the variable 006 with
1.

I have successfully done this incrementation but I have not been able to
create a new
correct content for the new varable new_xyz.

dtml-call REQUEST.set('signumfix2',signum2[1:4])
dtml-call REQUEST.set('signumfix2', _.int(signumfix2)+1)

How can I from here create the correct content of the new variable? I need
to bring the B part
with me and then the incremented integer part formatted with two preceeding
zeroes. Does anyone know?

___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Data.fs data record exceeds transaction record

2010-05-02 Thread Jaroslav Lukesh
HI, I use this script, it will truncate DataFS.

#!/bin/sh
cd /path-to-your-instance/var
../bin/zopectl stop
rm -f Data.fs_ERR
#clear
cp -p Data.fs Data.fs_ERR
rm -f Data.fs.index
#diagnostic run
#../bin/runzope
echo 
echo 
echo search for number after:
echo   /var/Data.fs has invalid transaction header at 
echo -n put the number here:
read  CISLO
python_EOF
f = open(Data.fs, ab)
f.truncate($CISLO)
f.close()

_EOF
#start serveru
../bin/zopectl start
dd if=Data.fs_ERR of=Data.fs.MISSING bs=1 skip=$CISLO




- Original Message - 
From: Michele Marcionelli michele.marcione...@math.ethz.ch


Hello

2 hours ago I wanted to go to sleep... and unfortunately I noticed  
that our websites were offline since about 5 hours; I coudn't start  
zope anymore because the Data.fs seems to be corrupted. The quick  
solution has been to copy a 2 days old version of the Data.fs back...  
but I still hope to recover the old Data.fs.

But wenn I try to recover it with the fsrecover.py tool I get this  
error message:

2010-05-02 00:38:39 WARNING OFS.Application Duplicate Product name
After loading Product 'Five' from '/scratch/ZOPE-BOT/current/Products',
I skipped the one in '/scratch/local/app/zope/2.8.9.1-2.3.6/lib/python/ 
Products'.

2010-05-02 00:38:39 WARNING Init Class  
Products.LDAPUserFolder.LDAPUserFolder.LDAPUserFolder has a security  
declaration for nonexistent method 'getAttributeOfAllObjects'
2010-05-02 00:38:39 WARNING Init Class  
Products.LDAPUserFolder.LDAPUserFolder.LDAPUserFolder has a security  
declaration for nonexistent method 'getAttributeOfAllObjects'
2010-05-02 00:38:39 WARNING Silva Silva Documents require upgrading.
There are Silva Documents which have not been upgraded to Silva 0.9.3.
Upgrade via service_extensions.

2010-05-02 00:38:40 WARNING ZODB.FileStorage Ignoring index for / 
scratch/ZOPE-BOT/current/var/Data.fs
2010-05-02 00:38:51 CRITICAL ZODB.FileStorage /scratch/ZOPE-BOT/ 
current/var/Data.fs data record exceeds transaction record at 949568131

..___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] javascript problem

2010-04-23 Thread Jaroslav Lukesh
Did You have the number field in the hidden layer?

- Original Message - 
From: Garry Saddington ga...@schoolteachers.co.uk


 I'm using the following javascript to gather phones:number values for 
 form submission.
 
 for (var idx = 1; idx  max; idx++) {
 if (eval(document.forms.playlist['phones.number:records'][ + idx + 
 ].value)  0)
 
 
 Has anyone got any idea why it works fine in every browser 
 (Safari,FF,Chrome,Webkit) but not in ie8 where I get this error:
 
 
 
 Message: 'document.forms.playlist.phones.number:records.1.value' is null 
 or not an object

___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] javascript problem

2010-04-23 Thread Jaroslav Lukesh

- Original Message - 
From: Garry Saddington ga...@schoolteachers.co.uk


 Jaroslav Lukesh wrote:
 Did You have the number field in the hidden layer?

 - Original Message - From: Garry Saddington 
 ga...@schoolteachers.co.uk


 I'm using the following javascript to gather phones:number values for 
 form submission.

 for (var idx = 1; idx  max; idx++) {
 if (eval(document.forms.playlist['phones.number:records'][ + idx + 
 ].value)  0)


 Has anyone got any idea why it works fine in every browser 
 (Safari,FF,Chrome,Webkit) but not in ie8 where I get this error:

 The form fields are dynamically created in javascript as table rows as the 
 user adds more options, the first row is in a hidden layer.
 Garry

Try to isolate base of the problem. So prepare (static) page with form 
fields and then submit it. For multiple fileds with same name I use datatype 
:list, so try it too. MSIE does not send form fields from hidden layers as 
you expect, instead of some versions of others, they send all form fields 
include hidden layers.

I think that you have bad code - see your error message. So try somethong 
like:
document.forms.playlist.phones.number[1]
instead of
document.forms.playlist.phones.number:records.1.value

JL.


___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] javascript problem

2010-04-23 Thread Jaroslav Lukesh

- Original Message - 
From: Jaroslav Lukesh luk...@seznam.cz

 I think that you have bad code - see your error message. So try somethong 
 like:
 document.forms.playlist.phones.number[1]
 instead of
 document.forms.playlist.phones.number:records.1.value

Oh, sorry, javascript, not python :o)

JL

___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] zope changes : dtml-var

2010-02-15 Thread Jaroslav Lukesh
I think that problenm is in the name of formfield - it begins with an _

- Original Message - 
From: Allen Schmidt Sr. aschm...@fredericksburg.com
To: zope@zope.org
Sent: Monday, February 15, 2010 11:44 PM
Subject: Re: [Zope] zope changes : dtml-var


 ...but why wouldn't the dtml version also work as he has it below? I 
 have hundreds of form uses just like thatand we have never used the 
 entity syntax.
 

 td
 input name=_valuename size=20 value=dtml-var person_name
 /td

___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] preventing form submission

2010-02-02 Thread Jaroslav Lukesh
- Original Message - 
From: Garry Saddington ga...@schoolteachers.co.uk
 Has anyone any suggestions as to how to prevent form submission by the 
 using pressing the refresh or back buttons?

I use hidden form field with timestamp ZopeTime.

JL.
___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Frequent ZOPE crashes

2009-11-29 Thread Jaroslav Lukesh
Try to cache page segments selectively and then you should identify 
problematic piece of page. If You does not use page segments, then divide 
page to some pieces and get them together.


- Original Message - 
From: Andreas Krasa andreas.kr...@wu-wien.ac.at

 The only thing we re-used is the Data.fs, which we have to, because
 we're talking about a production system here.

 Also note, that we have used excatly the same setup for a long time now,
 even on the same hardware, without any of these troubles. The problems
 only started when we switched over to a new (and probably more
 resource-intensive layout).

___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Frequent ZOPE crashes

2009-11-25 Thread Jaroslav Lukesh
At first, try to eliminate error outside of the Zope itself. Try to install 
it all into plain whole new (and reliable!) machine. Do not use restore of 
any backups!

- Original Message - 
From: Andreas Krasa andreas.kr...@wu-wien.ac.at

 A week ago we switched to a new layout (for corporate reasons) and now
 we're experiencing frequent crashes of the Zope servers. Fortunately

___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] auto login user

2009-04-30 Thread Jaroslav Lukesh
use proxy role

- Original Message - 
From: ga...@schoolteachers.co.uk


 How could I automatically/programmatically log in an existing user when 
 anyone
 visits a zope site? I am doing this because I want to demo an application 
 on
 the web without needing a login. I am using an authenticated user in the
 application to retrieve data from a database that is specific to that 
 user.

___
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] how to prevent URL access to an external method?

2009-04-28 Thread Jaroslav Lukesh
Click at the Proxy tab at method with View permission

- Original Message - 
From: Pedro LaWrench pedrolawre...@yahoo.com

I need to do something on the filesystem, which requires unrestricted 
python, so I created an external method. The problem is that anyone can call 
that directly via URL, so I added a permission check. Even then, users with 
the sufficient permissions can call this via URL, which I don't want them to 
do. I only want them to have access indirectly from other pages (such as a 
page template that will pass sane parameters). Is there anyway to do this?

___
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] how to prevent URL access to an external method?

2009-04-28 Thread Jaroslav Lukesh
Why? It is more transparent and better way - use security tab.


- Original Message - 
From: Tres Seaver tsea...@palladion.com


 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Pedro LaWrench wrote:
 I need to do something on the filesystem, which requires unrestricted
 python, so I created an external method. The problem is that anyone
 can call that directly via URL, so I added a permission check. Even
 then, users with the sufficient permissions can call this via URL,
 which I don't want them to do. I only want them to have access
 indirectly from other pages (such as a page template that will pass
 sane parameters). Is there anyway to do this?
 
 Add a REQUEST argument to your function, defaulting to None.  The
 publisher will always pass the request in for that argument, while the
 other templates / scripts should not.  E.g.:
 
 def doSomething(self, REQUEST=None):
  Don't call me directly via a URL!!!
 
 if REQUEST is not None:
 raise ValueError('Wicked, evil, naughty Zoot!')

___
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] how to prevent URL access to an external method?

2009-04-28 Thread Jaroslav Lukesh
MEthod1: security allow view only for manager

Method2: contain calling of method1, security: view for anonymous or role 
what you want for.


- Original Message - 
From: Pedro LaWrench pedrolawre...@yahoo.com



What would you change on the security tab? I still want my authenticated 
users to have access to the method as a call to it is made from unrestricted 
space (such as a page template), I just don't want them to call the method 
directly.



- Original Message 
From: Jaroslav Lukesh luk...@seznam.cz
To: zope@zope.org; Tres Seaver tsea...@palladion.com
Sent: Tuesday, April 28, 2009 8:50:29 AM
Subject: Re: [Zope] how to prevent URL access to an external method?

Why? It is more transparent and better way - use security tab.


___
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] Database Adapter For Windows DB

2009-04-15 Thread Jaroslav Lukesh
I use Objet Craft MSSQL zope/python adapter for local Sybase (free, used as 
DB connector only) in production enviroment for 4.5 years. Please look at 
google, search for: lukesh mssql zope. I use it with old Zope 2.5.1 and with 
Zope 2.9.4 without any problems. It is very good and interesting solution, 
because it have incorporated session/transaction mechanism.

Regards, JL.

- Original Message - 
From: Bobby cybercruis...@yahoo.com



 Looked at mxODBC but it's not free and MSSQL didn't worked for me either 
 :(. Is there some other free DB Adapter that I could use? Can I do an 
 external method using Perl or a Python script to connect?
 
___
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] How to use ZCatalog to create a sitemap

2009-01-15 Thread Jaroslav Lukesh
I use recursive DTML method for cca 500 folders in about 8 levels. Rendering 
tooks under 1 second, with relativelly complex rendering (javascript menu, 
tables, background images and styles by URL...). I use one hour RAM cache 
for this method.

To even even more folders, it is better to use external method, which is 
much faster and you dont need to use cache (only browser's cache - use HTTP 
cache object).

Both ways I use, but external method sometime need to recompile after server 
restart (click to save changes button).

I think, that using Zcatalog for this issue is not the right way.


- Original Message - 
From: Rupesh P Raj

I am trying to use ZCatalog to create a sitemap. For that I created a 
ZCatalog object. In Find Objects tab, I selected objects of type Page 
Template and DTML Document, I selected the permission as Access Transient 
Objects.

What options should I select for creating a sitemap. Am I going in the 
correct way? Please advice.

___
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 set anonymous access to authorized content?

2009-01-06 Thread Jaroslav Lukesh
Hi all,

I need to set-up page with anonymous access with some informations from 
site, where are authorized access only. This page call dtml method 
list_robot from authorized site, from where are called other authorized 
methods and documents. From authorized site list_robot works, of course.

Site structure:
domain.com/authorized_pages.htm
domain.com/public/index_html

I was set-up to allow view etc for anonymous (and for all users) in security 
tab for public folder, index_html have defined proxy role manager and I 
am still not able to get content from authorized site content. And it still 
could not get DTML document js_lib (it is called as dtml-var js_lib) from 
authorized site. If I was comment js_lib calling, then it fails that used 
ZSQL method does not exist...

Error Type: KeyError
Error Value: js_lib
This resource may be trying to reference a nonexistent object or variable 
js_lib.

Traceback (innermost last):
  File /var/zope/lib/python/ZPublisher/Publish.py, line 150, in 
publish_module
  File /var/zope/lib/python/ZPublisher/Publish.py, line 114, in publish
  File /var/zope/lib/python/Zope/__init__.py, line 159, in 
zpublisher_exception_hook
(Object: public)
  File /var/zope/lib/python/ZPublisher/Publish.py, line 98, in publish
  File /var/zope/lib/python/ZPublisher/mapply.py, line 88, in mapply
(Object: index_html)
  File /var/zope/lib/python/ZPublisher/Publish.py, line 39, in call_object
(Object: index_html)
  File /var/zope/lib/python/OFS/DTMLDocument.py, line 127, in __call__
(Object: index_html)
  File /var/zope/lib/python/DocumentTemplate/DT_String.py, line 473, in 
__call__
(Object: index_html)
  File /var/zope/lib/python/OFS/DTMLMethod.py, line 120, in __call__
(Object: list_robot)
  File /var/zope/lib/python/DocumentTemplate/DT_String.py, line 473, in 
__call__
(Object: list_robot)
KeyError: (see above)

It is Zope 2.5.1.

Would you like to point me, where I was make error, please?

Many thanks,

J. Lukesh 

___
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] cron or time server

2008-12-27 Thread Jaroslav Lukesh
Here are few products to do, but some does not func, or blows ZODB.

If you have linux, use /etc/crontab and wget, it is rugged and stable.

- Original Message - 
From: Garry Saddington ga...@schoolteachers.co.uk


 Does anyone know of a time/cron server for Zope that works. I want to be 
 able
 to schedule a script to run every hour or so?

___
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] Problem using dtml-in in ZSQL method

2008-12-13 Thread Jaroslav Lukesh
first, convert mylist to string before calling ZSQL method:

dtml-call REQUEST.set('strmylist', _.str(mylist))

And then call the ZSQL method:

params
strmylist:string=[0]
/params

SELECT *
FROM MyTable
WHERE
  id in
(dtml-var strmylist[1:-1] sql_quote)


- Original Message - 
From: Françoise CONIL
To: zope@zope.org
Sent: Thursday, December 11, 2008 11:21 AM
Subject: [Zope] Problem using dtml-in in ZSQL method


Hello,

My ZSQL method receive a *mylist* parameter that should be an integer list : 
[21,35]

The following code does not work :

SELECT *
FROM MyTable
WHERE
  id in
(dtml-in mylist
dtml-sqlvar sequence-item type=int dtml-if 
sequence-lastdtml-else,/dtml-if
/dtml-in)


*Type de l'erreur*
NameError
*Valeur de l'erreur*
'client' may not be used as an argument name in this context

This other code does not work better :

SELECT *
FROM MyTable
WHERE
  id in
(dtml-in mylist prefix=myid
dtml-sqlvar expr=myid_item type=int dtml-if 
sequence-lastdtml-else,/dtml-if
/dtml-in)

*Same error*

However, if I use a dictionary list of this type [{'id':21},{'id':35}]  with 
the following code, it works (but it's heavy)

SELECT *
FROM MyTable
WHERE
  id in
(dtml-in mylist mapping
dtml-sqlvar id type=int dtml-if 
sequence-lastdtml-else,/dtml-if
/dtml-in)

The python script that calls my ZSQL method has already build the integer 
list and I would like to use it as is.

Thanks for your help




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


Re: [Zope] Problem using dtml-in in ZSQL method

2008-12-11 Thread Jaroslav Lukesh
first, convert mylist to string before calling ZSQL method:

dtml-call REQUEST.set('strmylist', _.str(mylist))

And then call the ZSQL method:

params
strmylist:string=[0]
/params

SELECT *
FROM MyTable
WHERE
  id in
(dtml-var strmylist[1:-1] sql_quote)


- Original Message - 
From: Françoise CONIL
To: zope@zope.org
Sent: Thursday, December 11, 2008 11:21 AM
Subject: [Zope] Problem using dtml-in in ZSQL method


Hello,

My ZSQL method receive a *mylist* parameter that should be an integer list :
[21,35]

The following code does not work :

SELECT *
FROM MyTable
WHERE
  id in
(dtml-in mylist
dtml-sqlvar sequence-item type=int dtml-if
sequence-lastdtml-else,/dtml-if
/dtml-in)


*Type de l'erreur*
NameError
*Valeur de l'erreur*
'client' may not be used as an argument name in this context

This other code does not work better :

SELECT *
FROM MyTable
WHERE
  id in
(dtml-in mylist prefix=myid
dtml-sqlvar expr=myid_item type=int dtml-if
sequence-lastdtml-else,/dtml-if
/dtml-in)

*Same error*

However, if I use a dictionary list of this type [{'id':21},{'id':35}]  with
the following code, it works (but it's heavy)

SELECT *
FROM MyTable
WHERE
  id in
(dtml-in mylist mapping
dtml-sqlvar id type=int dtml-if
sequence-lastdtml-else,/dtml-if
/dtml-in)

The python script that calls my ZSQL method has already build the integer
list and I would like to use it as is.

Thanks for your help




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


Re: [Zope] problem with ms sql server

2008-12-01 Thread Jaroslav Lukesh
Hi,

It should sounds courious, but try to manually rewrite (ie., do not 
copypaste!) your ZSQL method. MSSQL and Sybase servers are sometimes 
sensitive to unvisible characters and query does not work and you does not 
know why.

- Original Message - 
From: Miguel Beltran R.

I have a zsql where made a UPDATE and INSERT, I need know when happen a 
error to show.
I using pyodbc 2.0.58, zpyodbcda 1.0.6 and ms sql server 2000


___
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] Is someone read browser.contents ?

2008-10-13 Thread Jaroslav Lukesh
Hi JeanMichel,

Did you save content from external pages into ZODB? I was thinking in past 
about it to make little automated archive with squishdot.

If you will have success, would you like to publish your zexp and products, 
please?

Many thanks, J. Lukesh

- Original Message - 
From: JeanMichel FRANCOIS

Today i have added a piece of code in my fct test class to be able to open 
browser.contents inside a real browser:
def openInFirefox(self, contents, firefox_path='firefox'):
d, fn = mkstemp('.html')
f = open(fn, 'w')
f.write(contents)
os.popen('%s %s'%(firefox_path, fn))
I would like to know if there is something similar or already done in the a 
zope egg, cause i m sure nobody read the html with their eyes :)

___
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] which platform independent database?

2008-09-24 Thread Jaroslav Lukesh
Hi Andreas  all,

I know, I does not use Zope and DB first day, but, are somewhere list of 
pros/cons for that databases and zope/python DA?

For example, my cons for ODBC at Win32 (NT, 2k, XP) - it is not ideal in 
case of huge simultaneous access, it sometimes does not make write query 
(generally, not only from Zope, but from any app). We have 2 apps - one for 
production on Zope going thru sybase to MSSQL, we run multiple access many 
years without any problems, second on ASP with nice ;) interface for 
managers. When I was run my Zope at win32 over ODBC, here was problems in 
production with missing data at DB, so I was switch to Linux. Now we have 
same problems with ASP part - I need to repair inconsistency coming from 
manager interface up to few times per month. My zope servers on linux runs 
as blackbox - they are serving without problems, no intervetion needed if no 
HW problems. So I think, that you know my reasons to non-odbc DB access. All 
my words to our windoze IT staff in case of any production problems are 
obligatory - Golden zope!.

But now I want to make some kind of portable, near OS independent (win/lin) 
compact zope solution. So I look for RDB with like blackbox functionality, 
with nothing special to make backups of running system (like make backup of 
Data.fs) and nothing to install when move - make backup copy of live system 
and then run it on another machine. Installations are allowed only in case 
of change OS platform.

Many thanks, J. Lukesh

- Original Message - 
From: Andreas Jung [EMAIL PROTECTED]

--On 23. September 2008 16:05:03 +0200 Jaroslav Lukesh [EMAIL PROTECTED]
wrote:

 Hi all,

 Does somebody know some free database and free database adapter for Zope,
 which exists for Linux and for windows too, please? Do you know some
 pros/cons and some wiev from praxis for that?



Zope supports all standard databases like Postgres, MySQL, Oracle and M$
SQL server. On Windows it might be necessary to use the commercial mxODBC
product (cheap enough).

-aj 

___
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] which platform independent database?

2008-09-24 Thread Jaroslav Lukesh
kindergarten-RDBMS :-D

And what about Interbase Firebird? Is it stone-stable and is possible to do 
simple backup/restore process to make readygo backup? I will use ZODB and 
filesysstem as main storage, but some SQL is needed too.

- Original Message - 
From: Andreas Jung [EMAIL PROTECTED]
To: Jaroslav Lukesh [EMAIL PROTECTED]; Andreas Jung [EMAIL PROTECTED]; 
zope@zope.org
Sent: Wednesday, September 24, 2008 9:01 AM
Subject: Re: [Zope] which platform independent database?


--On 24. September 2008 08:02:23 +0200 Jaroslav Lukesh [EMAIL PROTECTED]
wrote:

 But now I want to make some kind of portable, near OS independent
 (win/lin) compact zope solution. So I look for RDB with like blackbox
 functionality, with nothing special to make backups of running system
 (like make backup of Data.fs) and nothing to install when move - make
 backup copy of live system and then run it on another machine.
 Installations are allowed only in case of change OS platform.

If you don't want any moving parts: don't use a RDBMS but soley use the
ZODB (where the Data.fs is basically the only moving part). If you are
looking for a kindergarten-RDBMS: look at SQLite. All other enterprise-level
databases are of course more complex and require more maintenance..make
your choice..

-aj 

___
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] which platform independent database?

2008-09-23 Thread Jaroslav Lukesh
Hi all,

Does somebody know some free database and free database adapter for Zope, 
which exists for Linux and for windows too, please? Do you know some 
pros/cons and some wiev from praxis for that?

I know, Gadfly, but this is really tiny, with problematic backup (need to 
disconnect, make backup and connect), sometimes it make mishmash in 
datafiles and then you need your backup...

Many thanks, J. Lukesh
___
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] Zope product and dtml-tree

2008-07-31 Thread Jaroslav Lukesh

Look at LocalFS product.

Regards, JL.
___
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] How to ensure modified script in external Methods come intouse...

2008-07-24 Thread Jaroslav Lukesh

click to Save changes at your ext.method definition

- Original Message - 
From: suhail shaik



hi,
I have modified the external medthod. I want to know how to test whether the 
modified method is being used


Is it by default that the modified script is used or i have to do something 
to see that the changed script is being used ..


I mean the external method is in the Zope/Extensions directory ..

___
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] zexp import fails from linux to windows due to image filepaths

2008-07-16 Thread Jaroslav Lukesh

From: Richard Ettema [EMAIL PROTECTED]
with windows for development. Is there a way of getting the import 
procedure to ignore the errors and continue the import (i.e. any hints  on 
how to modify the zope code)? Or is there a way to edit the zexp to  do a 
search  remove/replace of the file path names so the import  completes 
with no file path details?


You need to export your website folder as ZEXP in XML format. Then you could 
edit this file at search/replace basis. But before this, try to re-import 
this ZEXP file, if it is able to import (not all zexp exports are able to 
reimport).


Regards, JL. 


___
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] Bug in ZSQL test?

2008-07-10 Thread Jaroslav Lukesh

Hi all,

many years I use patched files - here are (see attachment) from my Zope 251 
at

ZOPEROOT/lib/python/Shared/DC/ZRDB/dtml

But it is not able to handle to lng queries, for long queries it 
needs one more little mod with FORM tag. So see the little nuances with your 
newer zope sources ;-)


Regards, JL.

- Original Message - 
From: Garry Saddington [EMAIL PROTECTED]




On Thursday 10 July 2008 20:47, Allen Schmidt Sr. wrote:

I know, I know...too old to worry about...
Zope 2.8.9.1 on RedHat and MySQL5

In the Test tab of a ZSQL method, where the query has parameters, when
we enter parameters that generate a result of more than 20 rows, we get
the link for next 20 results. However, the parameters are not getting
passed in and the next page shows all the rows as if no parameters 
passed.


Anyone else seen this?

Yes Zope 2.9 gives error for the missing parameters on second page. I have
just lived with it having seen the error before on this list.


connectionTestForm.dtml
Description: Binary data


customDefaultReport.dtml
Description: Binary data
___
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-DB] Re: [Zope] Bug in ZSQL test?

2008-07-10 Thread Jaroslav Lukesh

Hi all,

many years I use patched files - here are (see attachment) from my Zope 251 
at

ZOPEROOT/lib/python/Shared/DC/ZRDB/dtml

But it is not able to handle to lng queries, for long queries it 
needs one more little mod with FORM tag. So see the little nuances with your 
newer zope sources ;-)


Regards, JL.

- Original Message - 
From: Garry Saddington [EMAIL PROTECTED]




On Thursday 10 July 2008 20:47, Allen Schmidt Sr. wrote:

I know, I know...too old to worry about...
Zope 2.8.9.1 on RedHat and MySQL5

In the Test tab of a ZSQL method, where the query has parameters, when
we enter parameters that generate a result of more than 20 rows, we get
the link for next 20 results. However, the parameters are not getting
passed in and the next page shows all the rows as if no parameters 
passed.


Anyone else seen this?

Yes Zope 2.9 gives error for the missing parameters on second page. I have
just lived with it having seen the error before on this list.


connectionTestForm.dtml
Description: Binary data


customDefaultReport.dtml
Description: Binary data
___
Zope-DB mailing list
Zope-DB@zope.org
http://mail.zope.org/mailman/listinfo/zope-db


Re: [Zope] zope stops responding

2008-07-03 Thread Jaroslav Lukesh
I was same problems with new IBM hardware 2 yrs ago and etc at past. Wait, 
please, your HW will be good after 2..3 months - it needs burning process. 
It is known problem with very fresh silicon chips about diffusion of 
non-homogenities - look at mfg date at asphalt squares. But my english is 
not as good to detailed explain whats happen.



- Original Message - 
From: Garry Saddington [EMAIL PROTECTED]




Following a hard disk crash 2 weeks ago we have installed Zope onto a new
server and all was fine until yesterday morning when Zope stopped 
responding

and required a restart to get it working. It did the same at 3-30pm today.
We are using Zope 2.9.0 on Centos 5.1 on a quad Zeon server with 4gb. Ram. 
At

the moment the server is in quite heavy use with teachers trying to write
reports for a deadline tomorrow. These are sent to a Postgres DB via 
psycopg.

There is nothing in Z2.log or event.log to point me to the problem. I am
therefore asking for advice on the sorts of things that can cause Zope to
stop responding and whether there is anything we can do to mitigate 
against

such an event.


___
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] zope stops responding

2008-07-03 Thread Jaroslav Lukesh
Hi, I does not agree with You, because my servers runs with 20..150 threads, 
because lower number of threads makes for somebody infinity waiting and Zope 
under load responding very slow (with external database access). After 
increasing threads, response under load is more quickly and more paralel 
users should access to the web.


- Original Message - 
From: Sours, Kevin [EMAIL PROTECTED]



My experience is that increasing the number of threads past 4 does
absolutely nothing to assist performance.   Multi threads will help with
the occasional long running request, but if its more than occasional
then the thread list will eventually clog up no matter how many threads
you have (and the more threads you have, the more they fight over the
processor).  The server sounds beefy, but since Zope is only going to be
using one of those four cores, that might be deceptive.
Kevin

___
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] unicode support

2008-06-27 Thread Jaroslav Lukesh

dtml-call request.RESPONSE('content-type', 'text/html; charset=utf-8')


- Original Message - 
From: Garry Saddington [EMAIL PROTECTED]


Totally wrong approach modifying the zpublisher encoding here.  As said 
you

have two options:

- meta http-equiv=Content-Type content=text/html; charset=utf-8 /
  with in your HTML

. tal:call define=dummy python: request.RESPONSE('content-type',
'text/html;; charset=utf-8') / within your template

And if I were to use DTML?

___
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] Javascript detection

2008-06-16 Thread Jaroslav Lukesh


- Original Message - 
From: Arne Jensen [EMAIL PROTECTED]



Using DTML, is there a way to detect if a user has javascript enabled in 
their browser. We are running Zope 2.10.4-final, python 2.4.4.


Dont mix server-side processing and client-side processing!

DTML is server-side and it should generate javascript code.

Javascript is client side and here you should detect, if client has JS 
enabled or no simply by calling javascript page. Then you should set cookie 
and after visiting other pages, you know, that client is JS enabled. Or use 
XHR (buzzword ajax).


Regards, JL.

___
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] Multithreading sessions

2008-06-04 Thread Jaroslav Lukesh
- Original Message - 
From: Dieter Maurer [EMAIL PROTECTED]




Jon Emmons wrote at 2008-6-4 08:50 -0400:

...
I am just learning about this, but my initial inquiries suggest that the
only way to achieve true concurrency using a language like python is to
launch multiple interpreters.


This is true when you mean by true concurrency
can keep a multi-CPU systems busy.
One a single CPU system, you get almost the concurrency which is possible
(modulo bugs such as holding the GIL during non Python related possible
expensive operations).



I don't yet have the solution to my problem, but at least now I know what
the problem is, and that is half the battle.


One option is to fix the Sybase access module, another one to use
SQLRelay, a third one to access the Sybase database via ODBC.


4-th option is to use MSSQL DA with threads, it use sybase as database 
server (and file interfaces as redirector to other MSSQL/sybase DB). It 
works very well. It is quite old, but it works with 2.9.4 too (newer Zope 
server I does not use).

http://zope.org/Members/thinmanj74/Z%20MS%20SQL%20Database%20Adapterhttp://www.object-craft.com.au/projects/mssql/

http://mail.zope.org/pipermail/zope-db/2004-May/003067.html

Regards, JL. 


___
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] Multithreading sessions

2008-05-23 Thread Jaroslav Lukesh
You need to increase number of server threads and/or number of database 
connections (it mean ZoDB connections).


- Original Message - 
From: Jon Emmons


User 1 requests data that takes the MySQL server 30 seconds to retrieve

Meanwhile.

User 2 wants to log on

User 2 will not be served the logon page until user 1's query has finished.

Is this typical Zope behavior?

How do I get Zope to serve pages, run python scripts, etc. to multiple users 
simultaneously?


Thanks,

Jon Emmons


___
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] Multithreading sessions

2008-05-23 Thread Jaroslav Lukesh

Hi Jon,

I use 24 zserver-threads and I have here defined number of ZoDB connections 
(pool-size):


in your instance etc/zope.conf look for that section:

zodb_db main
   # Main FileStorage database
   filestorage
 path $INSTANCE/var/Data.fs
   /filestorage
   mount-point /
   cache-size 1000
   pool-size 24
/zodb_db

Please pay attention, if you have bunch of cache, your RAM shoul be 
exhausted.


Regards, JL.

- Original Message - 
From: Jon Emmons [EMAIL PROTECTED]




I had already gone into zope.conf and added the line:

zserver-threads 10

This seemed to have no effect.  Is that what you mean?
You think I should bump it higher?  100 maybe?


___
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] ++view++ and Zope 2.9

2008-04-25 Thread Jaroslav Lukesh

Hi Garito,

I was think that ZSM is piece of crap, because I use Zope 2.9.4 (under Linux 
2.6 and Python 2.4.3), where it does not work. I didnot found any older 
version to test it, so I was forget fot it.


What Zope version do you use for it?

If you turn on debug mode (start zope server with -D parameter), you will 
see more detailed errors at console.


Regards, JL.

- Original Message - 
From: Garito


Did ++view++ work on Zope 2.9?

I'm trying ZSM on a Zope 2.9 but when I try to execute ++view++ZSmanage or 
@@ZSmanage a resource not found is raised


What do you think about this? 


___
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] Problem with DTML and JOINS(ZSQL)

2008-04-15 Thread Jaroslav Lukesh
Did you try the Test tab at ZSQL method management page? If it does not 
work, you will get error from SQL server. If it works and you does not get 
any data, then your query is not fit to any data.


- Original Message - 
From: member madhangc

To: zope@zope.org
Sent: Tuesday, April 15, 2008 1:08 PM
Subject: [Zope] Problem with DTML and JOINS(ZSQL)


Dear all, I am developing a web application for a biological research 
institute down here in india. I have some

problem in using JOINS. The below is the queries i used,

SQL query

File name : drug
select drug_name,dtype from bio_info_schema.drug order by dtype

File name:drug_gene_details
Note : i used both the sql queries seperately, but neither one worked.

SELECT 
drug.drug_name,drug.route_of_admin,drug.dose_adult,drug.dose_child,drug.adverse_effects,drug_gene.gene_name

FROM drug,drug_gene
WHERE drug.drug_name = drug_gene.drug_name and drug.drug_name=dtml-sqlvar 
drug_name type=string


SELECT 
drug.drug_name,drug.route_of_admin,drug.dose_adult,drug.dose_child,drug.adverse_effects,drug.dtype,drug_gene.gene_name

FROM drug INNER JOIN drug_gene
ON drug.drug_name = drug_gene.drug_name AND drug.drug_name=dtml-sqlvar 
drug_name type=string



___
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] type checking

2008-04-14 Thread Jaroslav Lukesh

dtml-try
dtml-if _.int(variable) = variable
   Variable is integer
dtml-else
   Variable is not integer
/dtml-if
dtml-except
   Variable is not number
/dtml-try


- Original Message - 
From: Garry Saddington [EMAIL PROTECTED]




Is there any way to do data type checking in dtml-if, for example to check
that a variable is an integer? 


___
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] type checking

2008-04-14 Thread Jaroslav Lukesh

Sorry, syntax error:

dtml-if _.int(variable) == variable
---^

___
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] Zope under vmware is too slow

2008-04-07 Thread Jaroslav Lukesh
Dear all,

I must install zope under vmware, but there are big speed degradation over 
plain machine. Does somebody have some tiptricks to run Zope under VMware 
faster?

Many thanks, J. Lukesh 
___
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] Zope under vmware is too slow

2008-04-07 Thread Jaroslav Lukesh
Very much of RAM is free at host and guest, both physical and virtual disks 
does not swap. Speed degradation is to 15% of speed at original server, but 
vmware have 4x more CPU power. New Zope 251 server is starting about 5 
minutes, whole system performance (from ssh console) is very poor, like IBM 
XT.

It is very gratifying that somewhere is running zope under vmware fast, so I 
need to find where is the bottleneck.

Do you have some tips to run Linux under vmware faster? How about acpi/apic?

MAny thanks, JL.


  - Original Message - 
  From: Martijn Jacobs
  I must install zope under vmware, but there are big speed degradation over 
plain machine. Does somebody have some tiptricks to run Zope under VMware 
faster?

Many thanks, J. Lukesh
  It's probably not zope that is slow but disk access. Does it have enough 
RAM memory, is it swapping to disk often, etc?


  Martijn. 
___
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] how many zope instances

2008-04-04 Thread Jaroslav Lukesh


- Original Message - 
From: Garry Saddington [EMAIL PROTECTED]


As you might imagine: everything depends on the resources: Ram, 
diskspace,

CPU. A Zope instance might take as little as 80MB Ram or up to 2GB per
process. A site might consume no CPU, a Zope-based p0rn site might 
require
several machines...so basically we can not give a valid 
answers..everything

depends on a lot of parameters and there is no Zope formula.

Andreas
OK, so does the amount of RAM needed depend mainly on the size of the 
data.fs

or is there another major component?
regards
Garry


You should have 2G data.fs and your zope instance could consume about 30MB. 
It depends on cached data amount.


Regards, JL. 


___
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] Getting the value of a select button in ZSQL

2008-03-30 Thread Jaroslav Lukesh

Use javascript hooked on each button and hidden form fields


- Original Message - 
From: sujitha mary



i have a ZSQL search interface that creates a page template in which a form 
that displays the database content is designed.this form has a select button 
and a submit button.i need to get the value of select button as argument in 
zsql method.can anybody plz help me hw to implement this. 


___
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] getting the keys:values in a propertyItems() object

2008-03-06 Thread Jaroslav Lukesh
At my management tree page I use following code where object is pushed into 
namespace by dtml-in, so inspire yours here:


dtml-in objectItems(['Folder', 'LinkedFolder','PortableHole', 
'ZipFolder' ]) sort=id skip_unauthorized

...
dtml-in propertyMap mapping
 dtml-unless propertyLabel(id) == 'title'
   font color=redbdtml-var id/b/font[span
   title=dtml-var getProperty(id) html_quote
   dtml-var _.str(getProperty(id))[:10] html_quote
   dtml-if _.len(_.str(getProperty(id)))  10.../dtml-if
   /span]
 /dtml-unless
/dtml-in
...
/dtml-in

You should use dtml-with to push object into namespace.

Regards, JL.

- Original Message - 
From: Kamal Hamzat


I have this lines of dtml methods.
dtml-call REQUEST.set('xx', _.getitem('080211'))
dtml-var xx.propertyItems()
Which rendered these Keys:Values below
[('title', The man Wants Refinery For Living),
('lastEditDate', DateTime('2008/02/11 11:49:26.254 US/Eastern')),
('EpozDocumentTemplate', ''), ('author', 'By Chesal Chesal'),
('summary', He has directed that further investment in private refineries 
be targeted at the axis which consumes 15 million litres of fuel per day, 
more than half the country's total.)]


Please, how do I extract each key with its corresponding value. For example 
title : The man Wants Refinery For Living.


___
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] Altered ZCacheable_manage?

2008-02-28 Thread Jaroslav Lukesh

HI all,

I think about altering of ZCacheable_manage to show all cached variants of 
cache keys ( Names from the DTML namespace) with their times and 
invalidation of selected single variant.


Do somebody have this kind of thing realised?

Many thanks, J. Lukesh 


___
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-DB] Problem with dtml-sqltest ... multiple feature

2008-02-14 Thread Jaroslav Lukesh

Try to set url_name as ['HI','RF'] and use property without datatype, like

params
url_name
...
/params

And of course, look at ZopeBook.

Personally I dont use sqltest nor sqlgroup because there are many caveats 
with queries to cooperate with other zope unfriendly SQL developers. I use 
dtml-in inside ZSQL method with parameters defined as above.


- Original Message - 
From: Ken Winter [EMAIL PROTECTED]


select
   organization_id, name, url_name, short_name
from
   organization
dtml-sqlgroup where
   dtml-and dtml-sqltest organization_id op=eq type=int multiple
optional
   dtml-and dtml-sqltest url_name op=eq type=nb multiple optional
   dtml-and dtml-sqltest name op=eq type=nb multiple optional
/dtml-sqlgroup

doesn't work properly when I give it a sequence of values to test the
condition against, which is what the multiple tag is supposed to allow
according to http://www.plope.com/Books/2_7Edition/AppendixA.stx#1-15 .
When I enter (for example) the string HI, RF (without the surrounding
quotes) into the url_name field on the ZSQL method's ZMI Test tab, it
returns no records and says that the SQL it generated was:

select
   organization_id, name, url_name, short_name
from
   organization
where
url_name = 'HI, RF'

If I enter a series of integers such as 11530, 11531 (again, minus the s)
into the organization_id field, it returns the error message:

Invalid integer value for organization_id

Entering a single value into any of these fields works fine.  I have tried
various ways of quoting, delimiting, and otherwise punctuating my
multiple-value arguments, to no avail.

Is this problem just because the multiple feature doesn't work when tested
in the ZMI?  If so, can you tell me the correct way to type and format the
multiple-valued arguments when calling the ZSQL method from Python or from a
Page Template?

b 


___
Zope-DB mailing list
Zope-DB@zope.org
http://mail.zope.org/mailman/listinfo/zope-db


Re: [Zope] Character display issues upgrading 2.8.8 to 2.9.8

2008-02-07 Thread Jaroslav Lukesh


- Original Message - 
From: John Schinnerer [EMAIL PROTECTED]




Well, it worked last time from 2.7.x to 2.8.x. Not so lucky time I guess.

Anyone else have pointers to what I need to know?


You need to have right codepage in your system and defined management page 
charset property too. But these prerequisities does not able to make STX 
absolutelly sucessfull.


I was generate CP1250 locales (I use mandriva), but with Zope 294 they does 
not run 100% correctly with STX (for example bold text with nationalities is 
displayed with ** quotation). But STX at Zope 251 (with own very old python) 
is OK with the same machine.


Other thing that does not work with new zope is names of days or months 
which have national characters.


It is question if new zope code or new python is broken, or something else.

Does somebody know, which highest Zope version is OK?

JL. 


___
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] When to use a relational database

2008-02-07 Thread Jaroslav Lukesh
- Original Message - 
From: Dieter Maurer [EMAIL PROTECTED]

quizzical wrote at 2008-2-6 16:03 -0800:

...
Apologies if this is a dumb question, I have had a good look through the
archives and on the web. My question is basically about how to design a
website. I really like the ease with which you can build applications in
zope but I often see comments implying that in order to scale well one may
want to use a backend relational datbase. I have also seen several 
comments

to the effect that one should keep the state of a user session out of the
ZODB.

I am slightly confused by this, I can't find any information which would
help me decide what data would be better off in a relational database.


A relational database is good when you have large amounts
of strictly structured data -- e.g. millions of user records
where each user record has a fews fields with atomic datatypes.


For example pricelists etc. But you need to make join with ZODB - with 
hyperlink (URL1) or ZODB folder object property



The ZODB is good when you have weakly structured or unstructured data
and your write rate is not too high.


ZODB effectivity is very high at tree structured data, as catalogues etc

I use ZODB as catalogue container and RDB as pricelist at one travel agency 
site. If you want to know which, I will send you ULR to private mail and 
make some source view method for you. But it is written in pure DTML, few 
computing-intensive parts are in Python (tree structure, etc) and ZSQL to 
MSSQL. No sql-inject is possible thanks to DTML ;-)


Near all other my webs are pure ZODB and uses SQL to store forms data only.

Pure SQL driven web I use only for our own ERP, at ZODB are only DTML and 
bunch of ZSQL.



The ZODB uses an almost self describing format. Therefore, it can
store virtually everything, without any data model fixed beforehand.
However, this leads to high redundancy and efficiency loss.



It is possible to use some products like linux symlink to avoid data 
duplicates.


Regards, JL. 


___
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] When to use a relational database

2008-02-07 Thread Jaroslav Lukesh
JAvascript nor CSS cannot be dynamically generated from ZPT. ZPT is thing 
for HTML and XML only. But with DTML you able to generate any binary data, 
same as with python script or external method.


Please read archives few months back, here are many discussions about DTML 
vs. ZPT.


In shorthand - ZPT is academic and Zope core developers language due some 
ideas about extralarge projects like CNN which are sublimed in normal 
praxis.


DTML is faster to learn, faster to run, in shorthand is better than ZPT.

FOr speed recignition, here are this mix of 1:4:10 from time of Zope 2.5.1:

products or ext. methods are the fastest. DTML is 4-times slower and ZPT is 
10 times slower. Python script are slightly slower than products.


It is in general of course, real situations may vary.

JL.

- Original Message - 
From: Tim Nash [EMAIL PROTECTED]




From what I have read online, the things that slow zope down are
primarily the numerous security checks and the large number of objects
that need to be written to the zodb when you save a document. Is there
a way we can manage these bottlenecks? Has anyone rated the
performance of say DTML vs ZPT? For a developer like myself, I derive
no benefits from zpt because the majority of my design elements are in
javascript and css. So I will continue to use dtml unless zpt actually
has better performance. Have performance/scalability studies been done
for any of the popular zope products? I'd like to reduce the number of
objects saved to the zodb if I knew how.


___
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 get nice traceback like from old versions?

2008-02-05 Thread Jaroslav Lukesh

Hi all,

with Zope version 2.5.1 I was get nice error messages from source of page. 
With 2.9.4 I was get error messages in file log/events.log which is better 
for security reasons, but these messages are not as exact as from old zope 
which give me point to failure like that:

...
 strongError Type: NameError/strongbr
 strongError Value: global name 'Mailinf' is not defined/strongbr
...
!--
Traceback (innermost last):
 File /var/zope/lib/python/ZPublisher/Publish.py, line 150, in 
publish_module

 File /var/zope/lib/python/ZPublisher/Publish.py, line 114, in publish
 File /var/zope/lib/python/Zope/__init__.py, line 159, in 
zpublisher_exception_hook

   (Object: helpdesk)
 File /var/zope/lib/python/ZPublisher/Publish.py, line 98, in publish
 File /var/zope/lib/python/ZPublisher/mapply.py, line 88, in mapply
   (Object: job_define_.htm)
 File /var/zope/lib/python/ZPublisher/Publish.py, line 39, in call_object
   (Object: job_define_.htm)
 File /var/zope/lib/python/OFS/DTMLDocument.py, line 127, in __call__
   (Object: job_define_.htm)
 File /var/zope/lib/python/DocumentTemplate/DT_String.py, line 473, in 
__call__

   (Object: job_define_.htm)
 File /var/zope/lib/python/OFS/DTMLDocument.py, line 120, in __call__
   (Object: job_define.htm)
 File /var/zope/lib/python/DocumentTemplate/DT_String.py, line 473, in 
__call__

   (Object: job_define.htm)
 File /var/zope/lib/python/OFS/DTMLDocument.py, line 120, in __call__
   (Object: job_define_zapis)
 File /var/zope/lib/python/DocumentTemplate/DT_String.py, line 473, in 
__call__

   (Object: job_define_zapis)
 File /var/zope/lib/python/DocumentTemplate/DT_Util.py, line 159, in eval
   (Object: REQUEST.set('Mailinf', Mailinf_VZ + email_delim + Mailinf_MZ + 
email_delim +  Mailinf_GZ + email_delim +  Mailinf_Zadavatel + email_delim + 
Mailinf_Kontakt + email_delim +  Mailinf))

   (Info: email_delim)
 File lt;stringgt;, line 2, in f
NameError: (see above)

--

Many thanks, JL. 


___
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] How to get nice traceback like from old versions?

2008-02-05 Thread Jaroslav Lukesh
- Original Message - 
From: Jens Vagelpohl [EMAIL PROTECTED]

On Feb 5, 2008, at 11:53 , Andreas Jung wrote:
--On 5. Februar 2008 11:35:09 +0100 Jaroslav Lukesh  [EMAIL PROTECTED] 
wrote:

with Zope version 2.5.1 I was get nice error messages from source of
page. With 2.9.4 I was get error messages in file log/events.log  which 
is
better for security reasons, but these messages are not as exact as 
from

old zope which give me point to failure like that:


Why would Zope 2.9 won't give you the same traceback? or a similar  one?


Use the error_log object in the ZODB. It contains the tracebacks for  all 
those exception types that are not in the (configurable) exclusion  list.


jens


It is the same as the event.log plus whole request.

But with Zope 251 error log points me to exact code with problem:

(Object: REQUEST.set('Mailinf', Mailinf_VZ + email_delim + Mailinf_MZ +
email_delim +  Mailinf_GZ + email_delim +  Mailinf_Zadavatel + email_delim +
Mailinf_Kontakt + email_delim +  Mailinf))
   (Info: email_delim)
 File lt;stringgt;, line 2, in f
NameError: (see above)


But 294 not:

DTMLMethod at /www/sys_list-item_text used for /www/cz
URL: http://xx/sys_list-item_text/manage_main
Physical Path:/www/sys_list-item_text
Module DocumentTemplate.DT_String, line 476, in __call__
Module DocumentTemplate.DT_In, line 703, in renderwob
Module DocumentTemplate.DT_Try, line 140, in render
Module DocumentTemplate.DT_Try, line 174, in render_try_except
Module OFS.DTMLDocument, line 121, in __call__
DTMLDocument at /www/cz/akcni
URL: http://xx/cz/akcni/manage_main
Physical Path:/www/cz/akcni
Module DocumentTemplate.DT_String, line 476, in __call__
Module DocumentTemplate.DT_Let, line 76, in render

KeyError: 'prehled'


___
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] How to get nice traceback like from old versions?

2008-02-05 Thread Jaroslav Lukesh
- Original Message - 
From: Dieter Maurer [EMAIL PROTECTED]

...
It is the same as the event.log plus whole request.
But with Zope 251 error log points me to exact code with problem:
But 294 not:


The modern tracebacks are usually far more informative than the old
ones.

True, they no longer show the source code but the Module info
can easily be used to locate the corresponding source file.
An the line info lets you find again the exact source code.



Sorry, but I dont see any line of used DTML method to produce this error. In 
fact, the error is at line 313 (this number is not present at traceback) of 
DTML method named titulni:

Traceback (innermost last):
 Module ZPublisher.Publish, line 115, in publish
 Module ZPublisher.mapply, line 88, in mapply
 Module ZPublisher.Publish, line 41, in call_object
 Module OFS.DTMLMethod, line 144, in __call__
  - DTMLMethod at /www/index_html
  - URL: http://xx/index_html/manage_main
  - Physical Path: /www/index_html
 Module DocumentTemplate.DT_String, line 476, in __call__
 Module Products.unitws, line 21, in render
 Module OFS.DTMLDocument, line 121, in __call__
  - DTMLDocument at /www/index.htm
  - URL: http://xx/index.htm/manage_main
  - Physical Path: /www/index.htm
 Module DocumentTemplate.DT_String, line 476, in __call__
 Module OFS.DTMLMethod, line 137, in __call__
  - DTMLMethod at /www/standard_html_body
  - URL: http://xx/standard_html_body/manage_main
  - Physical Path: /www/standard_html_body
 Module DocumentTemplate.DT_String, line 476, in __call__
 Module DocumentTemplate.DT_With, line 76, in render
 Module DocumentTemplate.DT_With, line 76, in render
 Module DocumentTemplate.DT_Var, line 214, in render
 Module OFS.DTMLDocument, line 121, in __call__
  - DTMLDocument at /www/cz/kalendar/titulni
  - URL: http://xx/cz/kalendar/titulni/manage_main
  - Physical Path: /www/cz/kalendar/titulni
 Module DocumentTemplate.DT_String, line 476, in __call__
 Module Products.unitws, line 21, in render
 Module DocumentTemplate.DT_Util, line 196, in eval
  - __traceback_info__: REQUEST
 Module string, line 1, in expression
NameError: name 'kalendar_titulni_pouze_akce_str' is not definedLine 313 
where is the error looks:dtml-call REQUEST.set('akce', 
kalendar_titulni_pouze_akce_str)Is somewhere some extra product or patch 
to show partial code where is error?Thanks, JL. 


___
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] How to get nice traceback like from old versions?

2008-02-05 Thread Jaroslav Lukesh

Once more, correction of misformatted text for better readability.

- Original Message - 
From: Dieter Maurer [EMAIL PROTECTED]

...
It is the same as the event.log plus whole request.
But with Zope 251 error log points me to exact code with problem:
But 294 not:


The modern tracebacks are usually far more informative than the old
ones.

True, they no longer show the source code but the Module info
can easily be used to locate the corresponding source file.
An the line info lets you find again the exact source code.



Sorry, but I dont see any line of used DTML method to produce this error.

In fact, the error is at line 313 (this number is not present at traceback) 
of

DTML method named titulni:

Traceback (innermost last):
 Module ZPublisher.Publish, line 115, in publish
 Module ZPublisher.mapply, line 88, in mapply
 Module ZPublisher.Publish, line 41, in call_object
 Module OFS.DTMLMethod, line 144, in __call__
  - DTMLMethod at /www/index_html
  - URL: http://xx/index_html/manage_main
  - Physical Path: /www/index_html
 Module DocumentTemplate.DT_String, line 476, in __call__
 Module Products.unitws, line 21, in render
 Module OFS.DTMLDocument, line 121, in __call__
  - DTMLDocument at /www/index.htm
  - URL: http://xx/index.htm/manage_main
  - Physical Path: /www/index.htm
 Module DocumentTemplate.DT_String, line 476, in __call__
 Module OFS.DTMLMethod, line 137, in __call__
  - DTMLMethod at /www/standard_html_body
  - URL: http://xx/standard_html_body/manage_main
  - Physical Path: /www/standard_html_body
 Module DocumentTemplate.DT_String, line 476, in __call__
 Module DocumentTemplate.DT_With, line 76, in render
 Module DocumentTemplate.DT_With, line 76, in render
 Module DocumentTemplate.DT_Var, line 214, in render
 Module OFS.DTMLDocument, line 121, in __call__
  - DTMLDocument at /www/cz/kalendar/titulni
  - URL: http://xx/cz/kalendar/titulni/manage_main
  - Physical Path: /www/cz/kalendar/titulni
 Module DocumentTemplate.DT_String, line 476, in __call__
 Module Products.unitws, line 21, in render
 Module DocumentTemplate.DT_Util, line 196, in eval
  - __traceback_info__: REQUEST
 Module string, line 1, in expression
NameError: name 'kalendar_titulni_pouze_akce_str' is not defined

Line 313 where is the error looks:
dtml-call REQUEST.set('akce', kalendar_titulni_pouze_akce_str)

Is somewhere some extra product or patch to show partial code where is 
error?


Thanks, JL.

___
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] ZODB write delay changes

2008-02-04 Thread Jaroslav Lukesh

Hi all,

I was upload some DTML methods via FTP, after cca minute or less I was do 
copy of Data.fs and I was see (after running it with another instance) that 
these changes are not present.


How can I alter ZODB commit time, please?

Many thanks, JL. 


___
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] Counting threads

2008-01-22 Thread Jaroslav Lukesh


- Original Message - 
From: Peter Bengtsson [EMAIL PROTECTED]




On 22/01/2008, Dieter Maurer [EMAIL PROTECTED] wrote:

Peter Bengtsson wrote at 2008-1-22 15:23 +:
Perhaps I'm wrong but I suspect that a Zope I'm running is dying because
of running out of threads.




I'm just not certain if it's this. It seems highly related to MS SQL
connections but I could be wrong. The strange thing is, restarting the
MS SQL server might be (we're not certain) a solution to get Zope
responding again.

My theory was that the threads get too attached to a network service
that doesn't time out or raise an error.


You have absolutelly true!

I was the same problems in past. I was make up to 150 threads in some rare 
cases, but 50..100 in general if I use MSSQL. It was with Zope 2.5.1, with 
modern zope, see attachment about pool_size.


Now I use 80 threads and 60 pool_size and my Zope+MSSQL is fine. MSSQL hits 
in day peaks 100% CPU load (about hour, two) , but it is not my business. 
But my business is functional zope webs which eats a lot of RAM due caching 
policy - about 5..10 times more than before... So you have been pointed and 
warned ;-)


Best Regards, JL.


pool_size.txt 
Description: Binary data
___
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] temporary exclude page from ram-cache

2007-12-05 Thread Jaroslav Lukesh
Hi all,

I have RAM-cached page that looks for data from SQLdb. For error suppression 
(yea, I use MSSQL which make sometime unbelievable SQL error with the same 
errorless query) I use try-except wrapper, but in some cases page is cached 
without db results for a long time.

I know how to invalidate already rendered page from a ram cache, but I does 
not know how to temporal disable RAM-cache during rendering of that page.

Many thanks, J. Lukesh
___
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] Frustrated with Python and Frameworks. Zope, Grok, Django, CherryPy

2007-11-27 Thread Jaroslav Lukesh

Very nice words

I have near complette mirror of the old.zope.org from 2004 or 2005 if 
someone wants (and rememner that old site and good where are many products 
that you couldnot find at web now). There are many fantastic products which 
I use at near each site. So I will try to put it online.


- Original Message - 
From: Tom Von Lahndorff [EMAIL PROTECTED]




Zope2 + DTML + Python and you're good to go. I know a bunch of
developers/designers, including myself that use this combo all the
time. I currently use it for projects at a Fortune 500 company. The
docs suck but once you get in the groove you can bang out solid,
stable, good looking, standard compliant sites unbelievably fast.
Acquisition can be your best friend and you reuse a lot of your coding
for multiple projects. There are still developers on this list who use
DTML over ZPT, they just dont post much to it because of the ZPT
backlash you get when you do. I've gotten private messages off this
list from people though about DTML so there is support out there. Its
true that most of the products for Zope 2 have been updated in a while
but I can tell you that most will work fine with the latest Zope 2
release and are very customizable. The Zope2 ecosystem is pretty
mature and stable just poorly documented or supported. I do think
you'll probably get the Zope Zen quicker than you think and be able
to figure out a lot on your own.

On Nov 26, 2007, at 8:18 PM, Rene B wrote:

I'm frustrated trying to select a python web framework. I’ve  researched 
quite a

few. CherryPy,Karrigell,Zope 2,3,Grok, Gluon,Django,Mod_Python. I’ve  also
looked at templating languages like Spyce, and Cheetah.
I’m beginning to think there’s nothing  out there  for a newbie python
programmer like myself.  I’m a Network Admin  that likes programming  but
doesn’t have the time to get really proficient at it.
I selected Python as a language of choice and that’s all I’ve used.   I’ve
written a  few scripts .
I’m interested in building dynamic web sites but I tell you  it’s 
impossible to

select a tool.
I’ve researched all the tools mentioned above.  The most important  thing 
in my
decision is that I know some Python and want to use it to build the 
dynamic
site. I don’t want to learn a new language to do that. ZPT is a new 
language.
Its not python.  Not even close.  Out of all the ones I’ve  researched I 
like

Zope 2 the best.  Not sure why. I want some thing easy.  I like  DTML. It’s
easy. I know why ZPT has it’s advantages but for ease of use it  doesn’t 
come
close to DTML. Most people like me wont  be building complex web  sites 
and  I’d
be the only working on it meaning I’ll do the HTML layout and code  the 
dynamic

portions of it. So I don’t’ need to worry about  an HTML editor  getting
confused with the dynamic languages  mixed in blah blah  blah.

I’m afraid to learn Zope 2 because I have no idea what direction  it’s 
going in.

Not to mention I don’t particularly like ZPT. I’ve read DTML isn’t  going
anywhere but I don’t imagine I’ll get much support  on it when  needed and 
I’m

sure people will be telling me to use ZPT cause DTML is dead.
Funny, I read something while reading news about Grok’s new plugins  for 
any
template language . They used Genshi as an example and talked about 
template
languages and which one is better etc.. The bottom line was use the  one 
that
you like.  So I wish people would stop putting down DTML or others  over 
the
one they prefer and continue to help those regardless of which they 
choose.
Back to trying to choose. I think Django is too hard.  I like  Mod_python 
with
PSP. PSP seems to be more python like then anything I’ve seen. Yet 
Mod_Python

has terrible docs for people like me and it doesn't seem to popular.
The other frameworks have some good ideas. I like Karrigell but you  just 
don’t
know how long it will be supported.Gluon is cool but its new.  Zope  3 is 
out of
the question. Grok looks to me like  another CherryPy. It may be  easier 
the
Zope 3 but it’s not easier then Zope 2. Plus I’ve yet to get it  installed 
on my

windows XP to play.
I like cheetah as a tool. There docs are not that great and not many 
examples.
Plus no auto generated content  like you get in Zope 2.  Yes some  magic 
is
good. The CRUD is what made Rails over rated to start out  with.People 
like some

magic. saves time.  Combining Cheetah and Zope sounds interesting to  me.
So what do I do. I like Zope 2. I can’t find any books on it  released 
after

2002. Plone is tooo much.
There aren’t any new products out for Zope 2 and the ones that are  there
haven’t been touched for years.
Zope 2 wiki seems dead.  I was looking the other day for some type  of 
auto
CRUD for Zope 2. couldn’t find  anyting. No one seems to be adding 
anything new

to Zope 2 which scares me the most.
If I take the time to learn a tool I want to make sure it’s going to  be 
around
for awhile and have good support and new addons  being added all of  the 
time to

Re: [Zope] AJAX copy/paste

2007-11-21 Thread Jaroslav Lukesh

Hi,

try to use hidden frame instead of ajax - it is similar technology as ajax, 
but it is ajax's precedensor.


Regards, JL.

- Original Message - 
From: Garito


I'm trying to do an AJAX copy/paste action but zope raises this:

 The data in the clipboard could not be read, possibly due to cookie data 
being truncated by your web  browser. Try copying fewer objects.


How can solve this issue?

___
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] AJAX copy/paste

2007-11-21 Thread Jaroslav Lukesh

You need to find how to use cookies with ajax.

Another possibility is to write method or script which  will make copy/paste 
for you programatically.



Why you think that hidden frame
- Original Message - 
From: Garito


Sorry but perhaps as second options, Jaroslav
I prefer to wait if someone could send another answer more zope way and this 
kind of hacks seems dangerous to me. Anyway, sonner or later I'll inspect 
the history issue with AJAX ( 
http://blogs.pathf.com/agileajax/2007/09/really-simple-h.html as a library 
example) and they use hidden frames and things like this to solve this 
problems and then you way don't seems as bad to me


I think another way could be don't send the copy and then the paste action 
and send a copy/paste action with the urls of the original object and the 
final destination but it doesn't like so much to me too


Any ideas? (Thanks, Jaroslav!)


2007/11/21, Jaroslav Lukesh [EMAIL PROTECTED]:
Hi,

try to use hidden frame instead of ajax - it is similar technology as ajax,
but it is ajax's precedensor.

Regards, JL.

- Original Message -
From: Garito

I'm trying to do an AJAX copy/paste action but zope raises this:

 The data in the clipboard could not be read, possibly due to cookie data
being truncated by your web  browser. Try copying fewer objects.

How can solve this issue?


___
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] character encoding

2007-11-09 Thread Jaroslav Lukesh
- Original Message - 
From: adam molyneaux [EMAIL PROTECTED]
1. Read and parse a file encoded as utf8 - currently done with an external 
script

2. send it to a page to edit as utf8
3. save it from the page into a mysql database as utf8


This is slightly complicated by the fact that steps 2 and 3 need to happen 
via XMLHttpRequest calls, and the data is sent serialized as JSON


I use at method where are loaded with ajax this:

dtml-call RESPONSE.setHeader('content-type', 'text/html; 
charset=windows-1250')


You should modify charset to utf-8

REgards, JL

___
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] is it possible to bypass ZSQL methods and call storedprocedures in sqlserver straight from ZPT?

2007-11-06 Thread Jaroslav Lukesh

Yes

- Original Message - 
From: michael nt milne
We have some dynamic ZSQL methods all working but are looking to optimise 
our code and also access some stored procedures which are already written in 
SQL Server.


The question is, can you go straight through to a relational database using 
the connector object and call a stored procedure straight from a ZPT? Or 
must you use a ZSQL method to access the procedure?


___
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] Calendar Tag Product question

2007-11-01 Thread Jaroslav Lukesh
- Original Message - 
From: Thomas Bennett [EMAIL PROTECTED]
fine.  Today, November 1, on both calendars not all events are appearing 
in

the calendar from the default view.  If you click back to October and then
back to November all of the events appear, this also sets the 
date-calendar
parameter in the URL to November 9.  I have found that if the 
date-calendar

parameter is 1,2,3, or 4 not all the events will display in the Corporate
Calendar or the calendar I wrote so I suspect the Calendar Product itself.



It looks like locales dateformat mismatch DDMM with MMDD

Take look at your system locales settings, Zope locales setting. Do you have 
at all machines the same gcc, zope and python version? etc...etc...


Regards, JL. 


___
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] object properties access strangeness

2007-10-25 Thread Jaroslav Lukesh

Hi all,

I have problem with Zope 2.9.4, where I cannot get properties from acquired 
DTML Document in same way as from Image (both are in folder above, both 
objects with properties defined). It seems as to be a permission problem, 
but I was look through permissions at whole tree up to zope root.


This is working:

   dtml-with picture.gif
   dtml-var IMGproperty(existing property at Image)
   /dtml-with

And this raise error:

   dtml-with dtml_document_file
   dtml-var ikona1(existing property at DTML document)
   /dtml-with

Error:

Error Type: KeyError
Error Value: 'ikona1'

--

 Module DocumentTemplate.DT_String, line 476, in __call__
 Module DocumentTemplate.DT_With, line 76, in render
 Module DocumentTemplate.DT_Util, line 196, in eval
  - __traceback_info__: _
 Module string, line 1, in expression
 Module AccessControl.ZopeGuards, line 67, in guarded_getitem
KeyError: 'ikona1'


I was try to isolate problem in my sandbox with slightly different error, 
but still does not able to get properties from acqiured DTML Document 
object:


 Module DocumentTemplate.DT_String, line 476, in __call__
 Module DocumentTemplate.DT_With, line 76, in render
KeyError: 'ikona1'


___
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] object properties access strangeness

2007-10-25 Thread Jaroslav Lukesh
- Original Message - 
From: Jonathan [EMAIL PROTECTED]



This is working:

   dtml-with picture.gif
   dtml-var IMGproperty(existing property at Image)
   /dtml-with

And this raise error:

   dtml-with dtml_document_file
   dtml-var ikona1(existing property at DTML document)
   /dtml-with



Try:

dtml-var dtml_document_file.getProperty('ikona1', 'badPropertyName')


Many thanks, it works.

Regards, JL.

PS: for clarity only, it does not work with each filename - I was test it at 
file with dot in their name :o)


dtml-var _['dtml.document.file.name.with.dot'].getProperty('ikona1', 
None)



___
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] deprecated products?

2007-10-17 Thread Jaroslav Lukesh

DO NOT, please!

Many of us run very old zope versions from 2.1 and maybe older - and 
sometime we need some rare old product.


Bring to life old.zope.org, please!
(I have mirror of old.zope.org, but not at all)

REgards, JL


- Original Message - 
From: Mihamina Rakotomandimby 
[EMAIL PROTECTED]

Hi,
I had a look at:

http://www.zope.org/Products/user_management?batch_size%3Aint%3Arequired=100

Most of them are a bit old... and might not run on current Zope version.
I think there should be some cleaning...isn't it 


___
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: deprecated products?

2007-10-17 Thread Jaroslav Lukesh


- Original Message - 
From: Mihamina Rakotomandimby 
[EMAIL PROTECTED]




Michael Haubenwallner wrote:
http://www.zope.org/Products/user_management?batch_size%3Aint%3Arequired=100 
Most of them are a bit old... and might not run on current Zope version.

I think there should be some cleaning...isn't it?

The listings are autogenerated from user submitted products.
Which kind of cleanup are you thinking of ?


For example, Products last modified in 2002 are definitely out of date.
It will never work on current releases...


Yeah? And where you got this sureness?

I use products from year 2000 at zope 2.9.4

Regards, JL. 


___
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: deprecated products?

2007-10-17 Thread Jaroslav Lukesh


- Original Message - 
From: Mihamina Rakotomandimby 
[EMAIL PROTECTED]




Jaroslav Lukesh wrote:

I use products from year 2000 at zope 2.9.4


You could have given a name...
Well, I am volunteer to test them one by one on a 2.10 or even a 3.x, but 
it's worth.


FScounter from 2002
ImageTag_Hotfix from 2001
TinyTablePlus from 2000 (with patch from debian zope users)
UserCounter from 2001
ZipFolder from 2001
MSSQL adapter from 2003


___
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] How can I get graph statistics

2007-10-11 Thread Jaroslav Lukesh

I use ZGDChart


- Original Message - 
From: Jonathan Salazar Santos

To: zope@zope.org
Sent: Thursday, October 11, 2007 6:32 AM
Subject: [Zope] How can I get graph statistics


I am wondering if..., ¿Could some body tell me (help me) how to do graph 
statistics on the fly with DTML or python?



I need to create reports with statistics on the fly.


___
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] object Last Modified Date Time

2007-10-05 Thread Jaroslav Lukesh
http://mail.zope.org/pipermail/zope/2002-October/124979.html
  - Original Message - 
  From: kamal hamzat
  To: zope@zope.org
  Sent: Friday, October 05, 2007 5:31 PM
  Subject: [Zope] object Last Modified Date Time


  Dear All,

  I want to store the object Last Modified in ZCatalog so i created a 
FieldIndex with name bobobase_modified_time. When i checked the Zcatalog the 
space for bobbase_modified_time is empty.
___
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] Tag is not closed

2007-10-04 Thread Jaroslav Lukesh
dtml-in expr=_.range(3)
...
/dtml-in
  - Original Message - 
  From: Mohammed Tlais
  To: zope@zope.org
  Sent: Thursday, October 04, 2007 1:18 PM
  Subject: [Zope] Tag is not closed


  Greetings

  I am trying to test a dtml expression with a python built-in method as 
follows

  [code]

  dtml-in expr=_.range(3)

  [/code]

  When I want to save I got :

  Error Value: No closing tag, for tag lt;dtml-in 
expr=quot;_.range(3)quot;gt;, on line 2 of loop




--


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


Re: [Zope] tunneling via ...

2007-09-28 Thread Jaroslav Lukesh
- Original Message - 
From: David Bear [EMAIL PROTECTED]




APACHE HOST  -- ZOPE HOST

I need to secure the connection between these two hosts.


use ssh tunnell

JL.
___
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] external editor with proxy patch for win32

2007-09-25 Thread Jaroslav Lukesh

Hi,

does somebody have compiled external editor with proxy patch for win32 from 
here:


http://www.plope.com/software/collector/235

Would you like to share it, please?

Many thanks, JL. 


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


  1   2   >