to google and download new apps just to
be able to read them?
All best,
David
Bill Campbell wrote:
On Mon, Oct 03, 2005, David H wrote:
Chris Withers wrote:
Hi All,
I finally got around to putting all my presentations online from the
conferences over the last few years
How do you want to change this notation? What is it you want to do?
Please spend as much time writing a question as someone may in
answering it!
You do not want logic in your zsql methods.
I tend to use python scripts for branching logic, eg
# python script
request = context.REQUEST
if
Does this affect Chris's chances in the annual "Zope Cogeniality
Awards"?
BTW DTML does not suck. I too have written lots of code w/it. I do
find ZPT to be preferable - but it does take effort (brain re-wiring)
and if your up to your elbows in alligators its just not the time to
convert.
I
Hi Zope,
I've been using pluggable brains in some zSQL classes. I have some
questions!
a) It seems if I initialize a variable in the __init__ method that
variable, say self.callCount = 1 is not retained across calls, eg
#python mod
res = context.sql.brainySQL()
for rec in res:
Robert-Reinder Nederhoed wrote:
Solved.
Thanks for the reactions. It works! My current code looks like this now:
#force function in '/root/functions'
far = context.restrictedTraverse('/').functions.far
x = foo()
print far(value=x)
Of course, it is stupid to make getPhysicalRoot private
Bakhtiar A Hamid wrote:
On 7/19/05, David H [EMAIL PROTECTED] wrote:
Hi list,
At times (it seems) necessary to force a Zope transaction commit. This
might occur between two zSQL calls where the second depends on the
first's *SQL* transaction's availability but the first has
Hi list,
At times (it seems) necessary to force a Zope transaction commit. This
might occur between two zSQL calls where the second depends on the
first's *SQL* transaction's availability but the first has not yet been
commited because the *Zope* transaction that includes both zSQL calls
Hi List,
I will have to format numbers based on country and currency types.
I understand the locale module can do this. I've done some googling on
this but cant seem to get anything definitive. I've read that the local
module is not thread-safe but I do not know how this would impact my
Rob,
As others have pointed out the approach you indicate will not work.
To summarize -
Write python script to dynamically create JAVASCRIPT code (you can
format javascript arrays of data from your db this way).
Then, using TAL load it in, eg
head
tal:js replace=structure
Jim,
It can be done, eg
loop thru source.acl_users
for each user object
stuff REQUEST with name,password,confirm (password again) and roles, eg
REQUEST.set('name',username), etc
context.Destination.acl_users.manage_users('Add',REQUEST,RESPONSE)
David
In DTML: (via
Jim,
David H didn't think thru his answer. I do not think you can acquire
*passwords* the way I indicated. If so my suggestion will not work.
The approach will work otherwise.
Maybe someone that knows about this will pitch in. I'm reviewing
User.py now...
David
.
David H wrote
'],user['roles'] # to test
Hope this helps you reach the "tipping point" if you've not already
gotten there.
David
Jim,
David H didn't think thru his answer. I do not think you can acquire
*passwords* the way I indicated. If so my suggestion will not work.
The approach will work
an external File
where each line contains the name and title, separated by a comma.
Guess I need to find out how to get python to read lines from a Zope File
object
On Wed, Jun 22, 2005 at 10:49:07AM -0700, David H wrote:
John Poltorak wrote:
Is there any way to create
John Poltorak wrote:
Is there any way to create folders in batch?
I need to create around 50 but don't fancy doing this manually.
John,
Put this in a python script and test.
for n in range(10):
container.manage_addFolder(id= str(n))
David
John Poltorak wrote:
On Tue, Jun 21, 2005 at 01:24:18AM +0200, Andreas Pakulat wrote:
On 20.Jun 2005 - 23:45:34, John Poltorak wrote:
Does a ZPT tutorial exist anywhere?
How about the 2 chapters in the Zope book?
I just don't find this
John,
If you spent more time just *learning* Zope and HTML, etc and less time
rationalizing your lack of progress everyone would be happy.
David
John Poltorak wrote:
On Tue, Jun 21, 2005 at 03:15:33PM -0400, Paul Winkler wrote:
On Tue, Jun 21, 2005 at 07:29:20PM +0100, John
Asad,
You want to break out of a DTML loop but there is no loop breaking DTML
syntax.
Here is another candidate DTML work-around:
dtml-in someSequence
dtml-if someCondition
whatever you do in the loop
/dtml-if
/dtml-in
That way, you can avoid processing past a certain point, just that
Tino Wildenhain wrote:
Am Montag, den 06.06.2005, 20:51 -0700 schrieb Jason Leach:
hi,
I have a site developed with CSS. We just translated the site to
German. The problem I have is with some embedded graphics. For
example:
#rightcolumn h1 {
background: transparent
Jason Leach wrote:
hi,
I have a site developed with CSS. We just translated the site to
German. The problem I have is with some embedded graphics. For
example:
#rightcolumn h1 {
background: transparent url(i/news_title.jpg) no-repeat top left;
height: 38px;
width:
David H wrote:
Jason Leach wrote:
hi,
I have a site developed with CSS. We just translated the site to
German. The problem I have is with some embedded graphics. For
example:
#rightcolumn h1 {
background: transparent url(i/news_title.jpg) no-repeat top left;
height: 38px
Andreas Jung wrote:
--On 5. Juni 2005 11:33:42 +0100 John Poltorak [EMAIL PROTECTED] wrote:
I need some advice on how to format a page and am not sure how to
explain
what I want to do but hope someone will figure out what I want to do...
Basically I have a home page consisting of a
Andrew Milton wrote:
+---[ Jonathan Cyr ]--
| Damn users, using all this imperfect software. These Kids Today! ;-)
|
| Easy Big Fella, Whooa.
|
You must be new here We've all learnt to ignore Chris...
He gets easily confused... or maybe he doesn't take his
Varun Parange wrote:
hi,
i have downloaded an SMTP server and using it i can send mails with
the help of Zope MailHost
however i would also like to recieve mails how do i do this.
which additional products do i need to download...
regards,
varun
Varun,
I wrote a spam
Hugo Ramos wrote:
Yellow,
I think because of lazy people like me that prefer to use DTML in a
fast way than go into a deep Python level to get the job done...
I know that, eventually, one of these days I'll have to move on to
Python only but until that day comes... DTML and a little bit of
everybody to take time making the move.
Regards
Hugo
On 5/26/05, David H [EMAIL PROTECTED] wrote:
Hugo Ramos wrote:
Yellow,
I think because of lazy people like me that prefer to use DTML in a
fast way than go into a deep Python level to get the job done...
I know that, eventually
Fernando Lujan wrote:
Hi,
I have a array data type in my DB wich have the following format :
{1,2,3} ( ids_test ). Now in my web application, I have a multiple
select wich options must be marked as selected if the number is in the
array described above. How can I make the above format be
Fernando Lujan wrote:
I think you are close. Change dtml-if ids_test in ids_test to
dtml-if "ids_test in ids_test" ?
It's working like IN over a string, e.g. the [5,61] will make selected
the number 5,6 and 61.
dtml-call "REQUEST.set('ids_test', '(' + id_test[1:-1] + ')')"
Chris,
I didn't address any of the points you made, but I've decided to address
two:
(1) When I asked what was inherently defective about a stable URL you
answered:
a) It's grim to debug
Chris, do you really depend on their users to report URLS to support
when things go wrong? I use
KLEIN Stéphane wrote:
Hello,
What is the equivalent in DTML of ZPT context variable ?
Thanks for your help,
-- Stéphane
___
Zope maillist - Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
Artras wrote:
Hello,
I have a web page, a form on it, and on form submit action (to the same
page) I do some database actions (update some record, to be correct). The exact
code looks like this (filename edit_html):
.
(1) dtml-if form
(2) dtml-call RESPONSE.redirect('index_html')
Florent Guillaume wrote:
David H [EMAIL PROTECTED] wrote:
If I might disagree, keeping a stable URL is not, by itself,
"user-defeating". For example, user's do not like browser history
clutter with subfolders and objects - all from the same a
Chris McDonough wrote:
You may want to use a tool like wget or curl to examine the response
from the server for the clicked URL. This could be many things.
- C
On Thu, 2005-05-19 at 18:37 -0300, Fernando Lujan wrote:
I'm having the following problem and wanna know whether it can be
associated
Greg Fischer wrote:
I guess my quick fix wont work. Well, it fixes the fmt for decimals,
but there's more to the issue. Statistical summaries, total, sum dont
work either.
In my dtml-in I might have this:
dtml-var total-decimalcolumn
or
dtml-var sum-decimalcolumn
These dont work with Mysql
Allen Huang wrote:
I just want to show my root URL address whenever people browse
into other pages of my site. How do I do this in dtml or python script
or external method??
Allen,
You can use index_html as a "call dispatcher". Each ZPT, DTML, etc
form's action should = "." or
Jens Vagelpohl wrote:
On May 10, 2005, at 00:48, J Cameron Cooper wrote:
But please note, this is very hostile web design. I would suggest
you re-think your need for such a feature.
Hostile is an excellent word for that kind of behavior. It
certainly breaks quite a few rules in the user
Paul Winkler wrote:
On Thu, May 05, 2005 at 09:27:41AM -0700, Lukman Salifu Nayendi wrote:
i am a new user of zope, i really want to learn alot about it and know more please help.
http://zopewiki.org/ZopeWiki
http://www.plope.com/Books/2_7Edition
Also, get some
Kirk Strauser wrote:
On Tuesday 03 May 2005 15:30, J Cameron Cooper wrote:
Look at the Python 'email' package:
http://python.org/doc/lib/module-email.html
You'll need to use External Methods to use this module, or allow access
to it so that you can use Python Scripts.
u1207440 wrote:
Does anyone know how to upload a file or an image into a ZObject?
I have created a simple ZClass that makes ZObjects to simulate book
information like title, author, etc. I have selected to upload images and
files into the ZObject, but I don't have a clue what dtml codes I
Leticia Larrosa wrote:
Hi
all:
I
want to order a sequence using the Sequence sorting module from a
Python script.
I
have the following code:
"
seq = [['Bruzon', 'CUB'], ['Anand', 'IND'], ['Kasparov', 'RUS']]
def test(oneElem, twoElem):
if oneElem[0] == twoElem[0]:
return 0
prabuddha ray wrote:
this again is a simple problem which got tricky for me.
I've full page template taking parameters to generate a printable report.
Another button on this page is for saving the report to a doc file.
How can i do this in a ZPT?
prabuddha,
If you are using Windows then check
Erik Myllymaki wrote:
How do address a ZPT with a name like index.html in a Python Script?
The following:
request = container.REQUEST
RESPONSE = request.RESPONSE
if not request.has_key('next_state'):
return container.index.html(context, request)
returns:
Error Type: AttributeError
Error Value:
Norbert Ray-Goldman wrote:
so I am posting this here. I would like my zpt to list only folders in
a director - essentially filtering out all other meta_type(s)... can
you tell me where I am going wrong with the filtering here ?
html
head
title
David H wrote:
Norbert Ray-Goldman wrote:
so I am posting this here. I would like my zpt to list only folders in
a director - essentially filtering out all other meta_type(s)... can
you tell me where I am going wrong with the filtering here ?
html
Hi List,
What is the status of cvs and svn in terms of which to use to get what
software. I found some messages indicating that Zope went to svn about
a year ago.
Thanks,
David
___
Zope maillist - Zope@zope.org
Rushabh Mehta wrote:
hello all,
this is my first zope app... i am trying to figure out how to create
an object in a particular folder via script, when my current object
may not be in the right tree...
I tried to do a 'change folder' via restrictedTraverse (eg
Tres Seaver wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
David H wrote:
Hi List,
I notice that the latest Zope does not have a Windows binary release yet
(zope 2.80 alpha 2).
I found an old Visual C 6.0 (still in the box!) and wonder if there are
instructions somewhere
Tim Peters wrote:
[David H]
Thanks for responding. I tried the suggestion:
C:\Zope-2.8.0a2 python.exe setup.py build_ext --inplace
and the thing runs for a while (good sign, as visual c 6.0 is compiling
things) then I get this:
building
srikanth wrote:
Hi,
I am trying to execute something like:
tr tal:repeat=recordset
td tal:replace=recordset/fnamea
href=eachrecordresult.html?fname='recordset/fname' First Name
/a/td
td tal:replace=recordset/lname Last Name /td
/tr
Everything works fine but the
srikanth wrote:
Hi,
I am trying to execute something like:
tr tal:repeat=recordset
td tal:replace=recordset/fnamea
href=eachrecordresult.html?fname='recordset/fname' First Name
/a/td
td tal:replace=recordset/lname Last Name /td
/tr
Everything works fine but the
Hi List,
I notice that the latest Zope does not have a Windows binary release yet
(zope 2.80 alpha 2).
I found an old Visual C 6.0 (still in the box!) and wonder if there are
instructions somewhere that I can follow to create my own binary on
Windows XP?
Thanks, David
ps - Maybe I'm having a
Andrew Milton wrote:
I think people on this list need to realize that eventually, the direction of
any significantly large Open Source project is hijacked by the relatively
small number of people actually doing the work.
The reasons for this are many-fold, but, normally come down to a lack of
Hi Zope List,
The current SESSION Chapter in the Zope Book 2.7 says the following:
... once you've instantiated one browser id manager or if you keep the
default browser id manager, you will not be able to instantiate another
browser id manager in a place where the new browser id manager can
Hi List,
I am curious about the SESSION.invalidate() method.
This code sets a SESSION key and value and then calls SESSION.invalidate():
tal:block define=dummy
python:request.SESSION.set('Dodgers','Baseball') /
p before invalidate /p
p tal:content=python: request.SESSION /
tal:block define=dummy
Sune B. Woeller wrote:
hi David,
I had the same problem, see this thread with a workaround,
and this bug report: http://www.zope.org/Collectors/Zope/1594
regards,
Sune B. Woeller
David H wrote:
Hi List,
I am curious about the SESSION.invalidate() method.
This code sets a SESSION key and value
101 - 154 of 154 matches
Mail list logo