[Zope] authentication with python program

2008-04-17 Thread Miguel Beltran R.
I have this program what open a dtml what return a XML page, but I have error with permisions: import urllib, urllib2 pagina = http://10.28.1.239/bitacoras/alta/estado2.html; datos = {btipo:D, bholo:87654321, bplac:dd-12345, accion:alta_gasolina, }

Re: [Zope] Re: authentication with python program

2008-04-18 Thread Miguel Beltran R.
zope, try again your authentication script, and take a look at your event.log file or the error_log object. You may find the reason of why is this failing. In case you don't find it, then place the full traceback here. Best regards Josef Miguel Beltran R. schrieb: I have this program

Re: [Zope] Re: authentication with python program

2008-04-18 Thread Miguel Beltran R.
Using web browser work fine. Using wireshark I see what my python program not send WWW-Authentification. Now I going to python list. But if someone know how can tell me please 2008/4/18, Martijn Jacobs [EMAIL PROTECTED]: Miguel Beltran R. wrote: #Martijn Yes, have role manager

Re: [Zope] Re: authentication with python program

2008-04-18 Thread Miguel Beltran R.
. Now I going to python list. But if someone know how can tell me please 2008/4/18, Martijn Jacobs [EMAIL PROTECTED]: Miguel Beltran R. wrote: #Martijn Yes, have role manager What if you login with the user with your webbrowser instead of your python program? -- Martijn

[Zope] standard_error using zpt

2008-10-29 Thread Miguel Beltran R.
Hi List I remember what old versions from zope haved standard_error using DTML How can do it the same using ZPT? I already try: td tal:content=error/type td tal:content=python: error.type td tal:content=context/error/type Thanks -- Lo bueno de vivir

Re: [Zope] standard_error using zpt

2008-10-30 Thread Miguel Beltran R.
is what you want. -- Jeffrey D Peterson Webmaster Crary Industries, Inc. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Milton Sent: Wednesday, October 29, 2008 11:02 PM To: Miguel Beltran R. Cc: zope@zope.org Subject: Re: [Zope

Re: [Zope] standard_error using zpt

2008-11-03 Thread Miguel Beltran R.
Thanks Work now :D Just need remove the single cuotes ( ' ) 2008/11/3 Jeff Peterson [EMAIL PROTECTED] Try this: tal:attributes=id string:'tr_'${repeat/item/number} -- Jeffrey D Peterson Webmaster Crary Industries, Inc. *From:* Miguel Beltran R. [mailto:[EMAIL PROTECTED

[Zope] Problem using nested dtml-in with zsql

2008-11-06 Thread Miguel Beltran R.
Hi list After read http://plope.com/Books/2_7Edition/AppendixA.stx#2-19 I tried use two dtml-in for get information from zsql diferents, but say This resource may be trying to reference a nonexistent object or variable *'x_var_region'* . what is missing? The first dtml-in (prefix=q) only return

Re: [Zope] Problem using nested dtml-in with zsql

2008-11-07 Thread Miguel Beltran R.
I found a litle solution using dtml-var expr=q_item['region'] (1) but why not work using dtml-var q_var_region? (1) http://marc.info/?l=zope-devm=103341051405194w=2 2008/11/6 Miguel Beltran R. [EMAIL PROTECTED] Hi list After read http://plope.com/Books/2_7Edition/AppendixA.stx#2-19 I

[Zope] Convert query in tuple

2008-11-07 Thread Miguel Beltran R.
can be saved a zsql query to tuple variable? exist something like this? dtml let t myquery().tuple how using scripts ? -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida ___ Zope

Re: [Zope] Convert query in tuple

2008-11-07 Thread Miguel Beltran R.
sorry I already founded http://plope.com/Books/2_7Edition/RelationalDatabases.stx#2-74 El 7 de noviembre de 2008 14:38, Miguel Beltran R. [EMAIL PROTECTED]escribió: can be saved a zsql query to tuple variable? exist something like this? dtml let t myquery().tuple how using scripts

Re: [Zope] Problem using nested dtml-in with zsql

2008-11-10 Thread Miguel Beltran R.
The application is already designed with dtml. This is a little change. Before I rename it the fields in zsql to avoid conflicts. 2008/11/8 Andreas Jung [EMAIL PROTECTED] Any particular reason for using DTML instead of ZPT? DTML is dead. -aj On 06.11.2008 20:53 Uhr, Miguel Beltran R

Re: [Zope] Was Problem using nested dtml-in with zsql

2008-11-11 Thread Miguel Beltran R.
The official message for newbies is likely: use ZPT. Andreas This is what missing in the first response My error was not say what I have with my system 4 years ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No

Re: [Zope] Problem using nested dtml-in with zsql

2008-11-11 Thread Miguel Beltran R.
:] prefix=key[:l] All work fine until now 2008/11/10 Miguel Beltran R. [EMAIL PROTECTED] The application is already designed with dtml. This is a little change. Before I rename it the fields in zsql to avoid conflicts. 2008/11/8 Andreas Jung [EMAIL PROTECTED] Any particular reason

[Zope] problem with ms sql server

2008-12-01 Thread Miguel Beltran R.
Hi list 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 [zsql with error after render: actualiza_info ] SET XACT_ABORT ON BEGIN TRANSACTION UPDATE taller SET comercial = '' where taller = 1

[Zope] How manage error with zsql

2008-12-05 Thread Miguel Beltran R.
I tried to insert data using an zsql, insert fine How manage error with zsql. Before dtml-try dtml-call insert_data Data inserted!!! dtml-except Error type:dtml-var error_type Error type:dtml-var error_value /dtml-try Now (All files are ZPT) [index_html] ... form

Re: [Zope] How manage error with zsql

2008-12-08 Thread Miguel Beltran R.
I trying the next, but not work say invalid syntax (Script (Python), line 11) 2008/12/6 robert rottermann [EMAIL PROTECTED] hi, I think you should write in a python script: try: result = context.insert_data.zsql msg = 'data inserted' except StandardError as e: -- error

Re: [Zope] How manage error with zsql

2008-12-09 Thread Miguel Beltran R.
Whenever you get exceptions, you should look at the error description in your error_log object (in the Zope Root Folder of the ZMI). There, you can see (in the so called traceback) where the exception has been raised. This is invaluable information. -- Dieter Thanks, another question

[Zope] ztp and dollars-and-cents

2009-01-15 Thread Miguel Beltran R.
dtml-var have dollars-and-cents to made show numbers this way 0,000,000.00 exist something to do the same with zpt tal:content ? -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida ___

Re: [Zope] ztp and dollars-and-cents

2009-01-19 Thread Miguel Beltran R.
2009/1/15 Tres Seaver tsea...@palladion.com -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Miguel Beltran R. wrote: dtml-var have dollars-and-cents to made show numbers this way 0,000,000.00 exist something to do the same with zpt tal:content ? You can use the same function, because

[Zope] bug? pagetemplate using strftime

2009-04-20 Thread Miguel Beltran R.
Hi list, This is a bug in strftime? add to report to launchpad? tr tal:repeat=item container/getData td tal:content=python: item.fecha.strftime('%d-%m-%Y');09-01-2009/td td tal:content=item/fecha2009/01/10/td /tr can someone confirm this? using a database postgresql 8.3 zope 2.11.1 windows

Re: [Zope] bug? pagetemplate using strftime

2009-04-21 Thread Miguel Beltran R.
Sorry, I not say clear where is the bug The original data is year 2009, month 01, day 10 2009/4/20 Miguel Beltran R. yourpa...@gmail.com Hi list, This is a bug in strftime? add to report to launchpad? tr tal:repeat=item container/getData td tal:content=python: item.fecha.strftime('%d-%m

Re: [Zope] bug? pagetemplate using strftime

2009-04-22 Thread Miguel Beltran R.
'item.fetcha' is what kind of instance? DateTime? datetime? How to reproduce the behavior? We need something that works on any system. I don't know what type is. How can know? tr tal:repeat=item container/getData td tal:content=python: item.fecha.strftime('%d-%m-%Y');09-01-2009/td

Re: [Zope] bug? pagetemplate using strftime

2009-05-07 Thread Miguel Beltran R.
If you strftime to show the hour and minute too, you will see as I previously said it is showing you the time in UTC (as determined by how many hours is it out). I made a test with date 2009/05/07 using dtml-var fecha.timezone -- dmYzZ=dtml-var fecha fmt=%d/%m/%Y %z %Z -- c=dtml-var fecha

Re: [Zope] bug? pagetemplate using strftime

2009-05-08 Thread Miguel Beltran R.
You can't use stftime. You have to manually build a string with the format you want using the other methods inside DateTime. e.g. fetcha.aCommonZ() or build up your date using components such as; fetcha.day() fetcha.month() fetcha.year() I made a script what recive a parameter

Re: [Zope] external method

2009-06-15 Thread Miguel Beltran R.
Zope is running as user scholarpack who is an administrator on win server 2008. / usar scholarpack have rights to access postgres? are you see the logs from postgres? new conecctions? or logs from zope? ___ Zope maillist - Zope@zope.org

[Zope] how detect a variable from template father?

2009-06-24 Thread Miguel Beltran R.
Hi list I have 2 templates, in second template I need render a span only when the first template have defined a variable. template1: ul tal:define=var1 python:1 li tal:replace=structure conext/template2/li li tal:replace=structure python:conext.template2(var2=1)/li /ul template2: li

Re: [Zope] is possible use request.set in a zpt?

2009-06-27 Thread Miguel Beltran R.
It is possible... div tal:define=ignored python:request.set('sumVar', 0) but not recommended. The kind of logic you are trying to wedge into the template should be pushed out into a Python script, leaving the template only with the job of rendering the results. Tres. - -- I want

[Zope] how recover original context?

2009-07-14 Thread Miguel Beltran R.
Hi list I have the next tree root \-page1.htm \-scripts \-script1_py | \-folder1 \-folder1a \-ZPT1 \-zsql1 I trying made a request from PT1 to page1.htm page1.htm call to script1_py I want call from script1_py to zsql1 how can recover

Re: [Zope] how recover original context?

2009-07-15 Thread Miguel Beltran R.
2009/7/14 Andreas Jung li...@zopyx.com On 15.07.09 01:14, Miguel Beltran R. wrote: Hi list I have the next tree root \-page1.htm \-scripts \-script1_py | \-folder1 \-folder1a \-ZPT1 \-zsql1 I trying made

[Zope] how get a relative root from

2009-08-20 Thread Miguel Beltran R.
Hi list how can do a script what return the relative parent from it self? I use virtual_hosting and because a configuration I need access to my site like http://mysite or http://192.168.1.1/mysite. The problem is I have a _menu_ with absolute path, working fine using http://mysite but not the

Re: [Zope] how get a relative root from

2009-08-25 Thread Miguel Beltran R.
I resolve using this script [getmyroot_py] request = container.REQUEST if request.has_key(VirtualRootPhysicalPath): s= else: s=request.BASE2 return s [menu] dtml-let myroot=getmyroot_py ul id=nav li a href=dtml-myroot;/finanza/proyecto/Proyecto/a ul class=menu lia

Re: [Zope] is possible use request.set in a zpt?

2009-08-31 Thread Miguel Beltran R.
2009/8/25 José Henrique jhr...@gmail.com 2009/6/26 Miguel Beltran R. yourpa...@gmail.com: Hi list I used before with dtml something like this dtml-call request.set('sumVar',0) dtml-in ... dtml-call request.set('sumVar', sumVar + queryVar) /dtml-in The sum is dtml-var sumVar

[Zope] best option to use users from Active Directory?

2009-08-31 Thread Miguel Beltran R.
I only need valid the password users from active directoy I ask this because exists various add-ons for this -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida ___ Zope maillist -

Re: [Zope] best option to use users from Active Directory?

2009-08-31 Thread Miguel Beltran R.
sorry, i forgot say I use Zope 2.11.1 2009/8/31 Miguel Beltran R. yourpa...@gmail.com I only need valid the password users from active directoy I ask this because exists various add-ons for this -- Lo bueno de vivir un dia mas es saber que nos

Re: [Zope] best option to use users from Active Directory?

2009-09-01 Thread Miguel Beltran R.
2009/8/31 Andreas Jung li...@zopyx.com On 01.09.09 00:44, Miguel Beltran R. wrote: I only need valid the password users from active directoy I ask this because exists various add-ons for this LDAPUSerFolder? -aj Thanks A.J. -- Lo bueno de

[Zope] problem connecting LdapUserFolder with Active Directory

2009-09-01 Thread Miguel Beltran R.
I tried connect to the server but raise a error Traceback (innermost last): - Module ZPublisher.Publish, line 119, in publish - Module ZPublisher.mapply, line 88, in mapply - Module ZPublisher.Publish, line 42, in call_object - Module Products.LDAPUserFolder.LDAPUserFolder, line 441,

Re: [Zope] problem connecting LdapUserFolder with Active Directory

2009-09-02 Thread Miguel Beltran R.
2009/9/2 Jens Vagelpohl j...@dataflake.org -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sep 2, 2009, at 04:33 , Miguel Beltran R. wrote: OPERATIONS_ERROR: {'info': ': LdapErr: DSID-0C090627, comment: In order to perform this operation a successful bind must be completed

[Zope] Hosting with zope2 y bluebream

2011-05-09 Thread Miguel Beltran R.
Hello List I need a hosting for a zope2 project, It's a old code but we need it at least 1 year more. In that time we want to rework our zope2 project to bluebream. Someone could give us a list of hosting providers? If the provider supports postgresql 9.1 will be wonderful. Thanks --

Re: [Zope] Hosting with zope2 y bluebream

2011-05-09 Thread Miguel Beltran R.
2011/5/9 Miguel Beltran R. yourpa...@gmail.com Hello List I need a hosting for a zope2 project, It's a old code but we need it at least 1 year more. In that time we want to rework our zope2 project to bluebream. Someone could give us a list of hosting providers? If the provider supports

Re: [Zope] mod_rewrite and IIS7

2012-02-09 Thread Miguel Beltran R.
2012/2/6 Brian Sullivan briansulli...@gmail.com I am attempting to park Zope behind Windows 2008/IIS7 (using its mod_rewrite function) and seem to be having some difficulty getting it to work. What I want to do is make directory on Zope website look like it is a directory on an IIS7

Re: [Zope] charset problems (utf-8)

2012-02-09 Thread Miguel Beltran R.
2012/2/6 Hugo Ramos ram...@gmail.com But this doesn't seem to be the problem because templates encoded as utf-8 or iso-8859-1 all have the same problem. Any more ideas? are you played witth *default-zpublisher-encoding* option in zope.conf? Lo

Re: [Zope] Product CalendarTag on zope2.13.19

2013-04-01 Thread Miguel Beltran R.
Really you need this? Maybeyou could use a calendar with javascript just one example http://javascriptcalendar.org/javascript-date-picker.php I'm sure that exists many more 2013/3/28 Giampiero Benvenuti giampiero.benven...@chiaroscuro.com Thanks Johannes and Tres, the trick you both

Re: [Zope] Zope2 - pro/contra

2015-03-13 Thread Miguel Beltran R.
When I started with Zope I loved its Zope Book. It was a super simple amd well documented book with a lot of examples. Zope3 and all that came later does not have it in my opinion. I saw right now jinja2 and doesn't like. insert code between html code in that way remember me dtml. it was good in

[Zope] Using Template in script (python)

2015-04-08 Thread Miguel Beltran R.
Hi list, I'm trying to use the make a string using a Template and fill it with the result of a query, but gime this error You are not allowed to access 'safe_substitute' in this context Zope = 2.12 from string import Template rst=someSQL()[0] txt=Template( span id=datos_vehiculo

[Zope] Zope 2.13 + MS SQL Server 2008 + UTF8

2016-07-22 Thread Miguel Beltran R.
Hi again list After have setup my zope site and database to use ISO-8859-1, I did some test and unfortunely it fail with javascript doing AJAX calls because the standart says that all calls must be UTF8 nevertheless the chatset in the page. So now I'm changing to use UTF8, but I have another

Re: [Zope] Zope 2.13 + MS SQL Server 2008 + UTF8

2016-07-25 Thread Miguel Beltran R.
2016-07-22 16:55 GMT-05:00 Miguel Beltran R. <yourpa...@gmail.com>: > > * agrega_credencial (zsql method) > "insert into credencial (nombre) values ( N' type="nb">')" > > > I did some changes to the zsql method to "insert into credencial (

[Zope] Problemwith unicode

2016-06-28 Thread Miguel Beltran R.
Hi list, my system is Zope 2.11.4 with default enconding iso-8859-1 for in/out and SQL Server 2008. I'm trying to fix a bad desing with a sql server database. it has a mix of encodings, traditional_spanish and modern_spanish. And some tables with both type of fields, unicode and normal (nvarchar

Re: [Zope] ODBC adapter

2016-07-08 Thread Miguel Beltran R.
on/mxODBC/ > > is the only reasonable ODBC approach for Zope nowadays...forget the other > old crap. > > -aj > > On 4 Jul 2016, at 18:08, Miguel Beltran R. wrote: > > > Hi again list, > > > > Using zope 2.13.23 > > ZPyODBCDA 1.0.9.dev0 ( https://gith

[Zope] ODBC adapter

2016-07-04 Thread Miguel Beltran R.
Hi again list, Using zope 2.13.23 ZPyODBCDA 1.0.9.dev0 ( https://github.com/tcurvelo/Products.ZPyODBCDA ) I have tried to install ZpyODBCDA but when I try to start the instance i got this error (control-emisiones3) N:\zope\control-emisiones3>"N:\zope\control-emisiones3\Scripts\runzope" -C

Re: [Zope] Zope 2.13.23 installation

2016-06-30 Thread Miguel Beltran R.
If you want to use pip: > > $ ./bin/pip install \ > > > https://raw.githubusercontent.com/zopefoundation/Zope/2.13.23/requirements.txt > > > Tres. > - -- > I have tried to install zope 2.13.23 using this method in Windows 7 but it give me error with zc.recipe.egg. The steps are: 1.- Install

Re: [Zope] Zope 2.13.23 installation

2016-06-30 Thread Miguel Beltran R.
I found the issue https://github.com/pypa/pip/issues/3028 And just for the record. (control) N:\zope\control>Scripts\pip.exe -V pip 8.1.2 from n:\zope\control\lib\site-packages (python 2.7) (control-emisiones3) N:\zope\control>Scripts\pip.exe list AccessControl (2.13.13) Acquisition (2.13.9)

Re: [Zope] Problemwith unicode

2016-06-29 Thread Miguel Beltran R.
After search a while, someone can confirm if I undestand it well? the problem is because it is trying to decode to "ascii" instead of "iso-8859-1" if it's true, why is doing it? I set to use iso-8859-1 in my conf file 2016-06-28 16:56 GMT-05:00 Miguel Beltran R. <yourpa...

[Zope] zope.org dead?

2017-02-28 Thread Miguel Beltran R.
zope.org dead? -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding!

Re: [Zope] requirements.txt 2.13.24 install zope 4 instead zope2

2016-09-29 Thread Miguel Beltran R.
Ok, I found the solution. Just download the requirements.txt file and append to the end "Zope2 == 2.13.24" (without quotes) This install the correct Zope2 version after that installing Products.ZSQLMethods with pip install the correct version ___ Zope

Re: [Zope] Fwd: change IP server

2016-10-04 Thread Miguel Beltran R.
2016-10-03 9:47 GMT-05:00 Gemerson Monteiro Maciel : > Hi, > > I found it. > but I do not see any statement of the server ip, only the port. So > imagine you change the ip will have no problem, right? > > > *%define INSTANCEHOME /usr/local/Plone/zinstance/parts/instance* >

Re: [Zope] Zope 2 Status

2016-10-04 Thread Miguel Beltran R.
2016-10-04 7:27 GMT-05:00 Michael Brunnbauer : > > hi all, > > I used to watch https://pypi.python.org/pypi/Zope2/ for Zope 2 updates. > Last > version I updated to was 2.13.24. > > Now this page offers version 4.0a2 - the a indicating alpha status - but > > I think this

[Zope] requirements.txt 2.13.24 install zope 4 instead zope2

2016-09-29 Thread Miguel Beltran R.
I have installed zope2 using virtualenv and pip (1) but it's installing the new version of zope2 >pip list AccessControl (2.13.14) Acquisition (2.13.9) BTrees (4.3.1) Chameleon (2.25) DateTime (2.12.8) DocumentTemplate (2.13.2) docutils (0.12) ExtensionClass (2.13.2) five.globalrequest (1.0)

Re: [Zope] requirements.txt 2.13.24 install zope 4 instead zope2

2016-09-29 Thread Miguel Beltran R.
Also installing Products.ZSQLMethods upgrade zope products to version 4 >pip install Products.ZSQLMethods Installing collected packages: Products.ZSQLMethods, zope.pagetemplate, zope.browserpage, AuthEncoding, zExceptions, AccessControl, zope.browserresource Found existing installation:

Re: [Zope] Zope 2 Status

2016-11-07 Thread Miguel Beltran R.
2016-11-07 1:18 GMT-06:00 Michael Howitz <m...@gmx.net>: > Am 04.10.2016 um 22:39 schrieb Miguel Beltran R. <yourpa...@gmail.com>: > > 2016-10-04 7:27 GMT-05:00 Michael Brunnbauer <bru...@netestate.de>: > […] > >> Now this page offers version 4.0a2 - the a

Re: [Zope] Zope 2 Status

2016-11-11 Thread Miguel Beltran R.
2016-11-11 5:20 GMT-06:00 Hanno Schlichting : > On Thu, Nov 10, 2016, at 09:12, Michael Howitz wrote: > > You are right, it might look strange to have a Zope2 version 4.x. > > But renaming the Package on PyPI would cause problems for all packages > > which depend on Zope 4.x,