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,
}
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
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
.
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
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
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
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
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
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
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
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
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
:]
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
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
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
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
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
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
___
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
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
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
'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
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
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
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
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
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
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
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
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
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
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
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 -
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
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
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,
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
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
--
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
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
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
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
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
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
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
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 (
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
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
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
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
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)
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.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!
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
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
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)
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:
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
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,
Good morning list,Glad to be here again in the list and community
I used zope many years ago until version 2.13 and I want to update to the
new version 4/5 but I have found that the Zope Book is not so useful to me
as before.
I used to do me little systems all in the ZMI using pagetemplate, zsql
60 matches
Mail list logo