[web2py] View To Controller, HTML componets

2016-01-05 Thread Carlo Ghilardi
Dear all, I'm trying to learn Web2py, but I'm having hard time to play with Forms, link HTML components like checkbox for instance. I'm not getting how can I get from the view to controller the information on the checkbox or Textbox or radio button, so in controller I can work with them and gene

[web2py] Re: feedback da default.py a web2py

2014-04-18 Thread Carlo DOnofrio
#x27;)}}',['txtIdCarico',' > pathCompleto'],'target') > > and from: > > def AllegaNuovoFile(): >... >response.flash = "Word done!" ># or response.js = "jquery code to be executed upon return. ... > " >

[web2py] Re: feedback da default.py a web2py

2014-04-18 Thread Carlo DOnofrio
L('AllegaNuovoFile')}}',['txtIdCarico','pathCompleto'],'target') e in default.py all'interno di def AllegaNuovoFile() ho semplicemente aggiunto response.flash = "Word done!" Ma sembra non effettuare più alcuna operazione. In cosa sbag

[web2py] feedback da default.py a web2py

2014-04-07 Thread Carlo DOnofrio
Salve a tutti, vorrei sapere se è possibile avere un feedback di fine esecuzione istruzioni della funzione richiamata in default.py. Mi spiego meglio. Ho creato tutta una serie di pagine html in cui, per esempio, ho necessità di salvare degli allegati in un database creato in mysql. All'in

Re: [web2py] Re: Not working for versions >2.2.1

2013-04-28 Thread Carlo Bazzo
thank you Antony, now everything makes sense. carlo Il 28/04/2013 20.43, Anthony ha scritto: Actually, it only appeared to be working prior to 2.2.1. What happened with prior versions is that you inadvertently turned off your CSRF protection. In earlier versions, session.clear() would

Re: [web2py] Re: Not working for versions >2.2.1

2013-04-27 Thread Carlo Bazzo
Thank you Anthony, never spotted that error because as I said until version 2.2.1 it was working anyway, maybe session.clear() did not behave as expected? Carlo Il 26/04/2013 18:41, Anthony ha scritto: At the beginning of the function you clear the session, yet the form's _formkey is s

[web2py] Not working for versions >2.2.1

2013-04-26 Thread carlo
Hi, a strange problem with the latest version and Python 2.5 This action works fine in version 2.2.1 and before. Now hitting Submit there is no redirection, the page just reloads, no errors. What is the problem? Thank you. def creanuovo_1(): import datetime session.clear() now=

Re: [web2py] SQLFORM labels

2013-03-20 Thread Carlo Bazzo
Thank you Anthony, very interesting solution, not aware of the formstyle parameter which looks very powerful. carlo Il 20/03/2013 19:46, Anthony ha scritto: You might consider creating a custom formstyle function, modeled after this one <https://code.google.com/p/web2py/source/bro

Re: [web2py] SQLFORM labels

2013-03-20 Thread carlo
ing developpement because you have to think about modifying your custom > form each time... > > Hops it helps > > > > > On Tue, Mar 19, 2013 at 1:13 PM, carlo >wrote: > >> How can I get SQLFORM not showing any label? >> >> I remembered labels=None bu

[web2py] SQLFORM labels

2013-03-19 Thread carlo
and "document", from the error I got, are now reserved keywords. Carlo -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr

Re: [web2py] Fpdf error with python 2.6 and web2py 2.2.1

2012-11-29 Thread carlo
Found: it seems a problem with 32 bit png files. When converted to 24 bit, pdf rendering was ok. Thank you. Il giorno giovedì 29 novembre 2012 13:45:08 UTC+1, José Luis Redrejo Rodríguez ha scritto: > > Hi Carlo > I'm using fpdf without any problem, so I guess the reason is in

Re: [web2py] Fpdf error with python 2.6 and web2py 2.2.1

2012-11-29 Thread carlo
ln(5) pdf.set_font('times','',12) pdf.cell(190,10,consegna,0,1,align="L") pdf.cell(190,10,pagamento,0,1,align="L") pdf.multi_cell(190,10,foot,0,align="L") pdf.cell(190,10,firma,0,1,align="R") pdf.

[web2py] Fpdf error with python 2.6 and web2py 2.2.1

2012-11-29 Thread carlo
No error with web2py 1.9.4. With 2.2.1 I got this with Python 2.5 and Python 2.6 Traceback (most recent call last): File "C:\Python25\web2py\gluon\restricted.py", line 212, in restricted exec ccode in environment File "C:/Python25/web2py/applications/Hcontrol/controllers/default.py"

[web2py] fpdf error?

2012-11-28 Thread carlo
I got: Traceback (most recent call last): File "C:\Python26\web2py\gluon\restricted.py", line 212, in restricted exec ccode in environment File "c:/Python26/web2py/applications/Hcontrol/controllers/default.py" , l

[web2py] error in Book: Setting up email

2012-05-17 Thread carlo
e, because if set to False you get the error: WARNING:web2py:Mail.send failure:'bool' object has no attribute 'split' carlo

[web2py] Re: Web Development Introduction Based On Web2py

2011-12-21 Thread carlo
this is remarkable! I hope to see next chapters very soon..thank you

[web2py] Re: book 4th edition in PDF

2011-12-19 Thread carlo
Is the pdf the same as the printed Lulu version? Interested with the epub version for my ereader though, thank you Massimo

[web2py] Re: Web2py - the "one-man-band" of all python frameworks :)

2011-05-12 Thread carlo
..and btw Unbit is one of the best hosting solution for web2py players! carlo On 12 Mag, 15:40, Massimo Di Pierro wrote: > There is always something to learn here. :-) > > On May 12, 12:09 am, "Roberto De Ioris" wrote: > > > > > > > > > >

[web2py] Re: some new cool stuff in trunk under testing

2011-05-05 Thread carlo
what a great work! I just want to thank all developers for this wonderful framework which is improving weekly: I can not understand why big media publishers are still ignoring web2py and not aware about its growing user base. carlo On May 4, 11:09 pm, Massimo Di Pierro wrote: > Hello everyb

[web2py] Re: component and jquery lightbox

2011-04-07 Thread carlo
as I said, reading the download method code I realized what you are meaning. Never heard of the retrieve method before and you said it is a FAQ: shame on me! As you stated, if not in the FAQ this should definitely go in the Book! Thank you again! carlo On 7 Apr, 14:48, selecta wrote: > i

[web2py] Re: component and jquery lightbox

2011-04-07 Thread carlo
after skipping through the download method code I grasped your suggestion! Thank you On 7 Apr, 13:53, carlo wrote: > mmh, thank you Selecta but I think I did not understand that. > Could you point me to one of the past posts? > I do not want to store the original filename in my table

[web2py] Re: component and jquery lightbox

2011-04-07 Thread carlo
mmh, thank you Selecta but I think I did not understand that. Could you point me to one of the past posts? I do not want to store the original filename in my table, just to get the decoded original filename (the one used by the download function to set the disposition header). I do not think your s

[web2py] component and jquery lightbox

2011-04-07 Thread carlo
database table just for this trivial purpose. How can I retrieve the image original name as decoded ( I supposed) by response.download? thank you carlo

[web2py] Re: components and sessions

2011-03-29 Thread carlo
.body}}} > > should be > > {{session.mysession={} }} # missing space > {{session.mysession['mylabel']=comment.body}} # too many } > > On Mar 29, 3:11 am, carlo wrote: > > > Massimo, I omitted a test case because it seems occurring in any of my > > components and it can e

[web2py] Re: components and sessions

2011-03-29 Thread carlo
Error: invalid syntax But if you change the component post.load as: {{for comment in comments:}} on {{=comment.posted_on}} says {{=comment.body}} {{pass}} {{session.mysession=""}} {{session.mysession=comment.body}} {{=form}} This is working. carlo On 29 Mar, 01:22, Massimo Di Pierro w

[web2py] components and sessions

2011-03-28 Thread carlo
one has an explanation? carlo

[web2py] Re: Is it possible to update or insert object to database in one command?

2011-03-25 Thread carlo
This is the kind of thing I would love to find in a handy Web2py Cookbook! carlo On 24 Mar, 14:27, Massimo Di Pierro wrote: > You can do it without if as well: > > db(query).update(...) or db.mytable.insert(...) > > On Mar 24, 8:26 am, Massimo Di Pierro > wrote: > >

[web2py] Re: Components and session: forbidden?

2011-03-10 Thread carlo
sorry my fault. You can have: session.mysession=total you can not have: session.mysession=tot1+tot2+tot3 On 10 Mar, 15:42, carlo wrote: > I tried to set a session in a component "post.load" and I receive a > "RestrictedError" Ticket. > > Why you can not have

[web2py] Components and session: forbidden?

2011-03-10 Thread carlo
I tried to set a session in a component "post.load" and I receive a "RestrictedError" Ticket. Why you can not have a new session set in a component? Thank you carlo

[web2py] represent and compute examples?

2011-03-06 Thread carlo
btw, I found out the great utility of components, brilliant! carlo

[web2py] EuroPython in Florence

2011-02-07 Thread carlo
Massimo, any plans to attend?

[web2py] Re: web2py on free hosting with no shell or httpd.conf access

2011-01-28 Thread carlo
In general if you have wsgi, you need just to set wsgihandler.py (without extension in some implementations) as your startup script, supposed you have Python 2.5 or 2.6 of course. But you should look into your hosting instructions about configuring a wsgi application in their environment. On 28 Ge

[web2py] Re: TAG name and XML: maybe a solution?

2011-01-17 Thread carlo
Massimo, it works. I will post a link to my web2py app which converts Excel worksheets in xml files as soon as published. Now I am just curious to look into your changes in html.py..Thanks carlo On 17 Gen, 17:33, Massimo Di Pierro wrote: > check trunk, please. I did it but a little differen

[web2py] TAG name and XML: maybe a solution?

2011-01-17 Thread carlo
As in my previous post, TAG with its xml serializer fails when both tag Name and Contents are unicode strings with non ascii chars. What about this trivial solution in html.py? def xml(self): """ generates the xml for this component. """ (fa, co) = self._xml()

[web2py] TAG and xml

2011-01-17 Thread carlo
I am trying to relaunch a question implicit in one of my previous posts. As I said TAG with its xml() serializer fails in generating valid xml when both name and value are unicode strings with non ascii chars (in my test it succeeds when either name or value is unicode string with non ascii chars).

[web2py] Re: issue with TAG and unicode

2011-01-16 Thread carlo
t; name=u'là' >>> value=u'parà' >>> TAG[name](value).xml() Traceback (most recent call last): File "", line 1, in File "C:\Python26\web2py\gluon\html.py", line 790, in xml return '<%s%s>%s' % (self.tag, fa, co

[web2py] Re: issue with TAG and unicode

2011-01-16 Thread carlo
> Leave the tag itself a plain string. don't you think this is a hard constraint? Personally I do. TAG promised to be such a handy tool to generate XML from Excel data, which is the purpose of my app, but unfortunately this will not be true.

[web2py] Re: issue with TAG and unicode

2011-01-16 Thread carlo
> Leave the tag itself a plain string. don't you think this is a hard constraint? Personally I do. I thought TAG was a great tool to generate xml easily from Excel data replacing the "oversized" ElementTree but unfortunately this will not be possible.

[web2py] Re: issue with TAG and unicode

2011-01-16 Thread carlo
>>> r=TAG['pippo'](u'plutò') >>> str(r) 'plut\xc3\xb2' >>> r=TAG[u'pippo'](u'plutò') >>> str(r) Traceback (most recent call last): File "", line 1, in File "C:\Python26\web2py\gluon\html.py", line 797, in __str__ return self.xml() File "C:\Python26\web2py\gluon\html.py", line 790, in xml

[web2py] Re: issue with TAG and unicode

2011-01-15 Thread carlo
;seconda',u'terza',u'quarta'] idx=range(len(colnames)) records=[] for row in rows: records.append(TAG['record'](*[TAG[colnames[i]] (row[i]) for i in idx])) return str(TAG['records'](*records)) so the problem is with tag names..I will try to have a look at html.py but your opinion is welcome. carlo

[web2py] Re: issue with TAG and unicode

2011-01-15 Thread carlo
Another example, same strange error: File "C:\Python25\web2py\gluon\html.py", line 790, in xml return '<%s%s>%s' % (self.tag, fa, co, self.tag) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 3: ordinal not in range(128) Variables fa '' self self.tagu'ti

[web2py] issue with TAG and unicode

2011-01-15 Thread carlo
in range(128) >From Inspect Attributes: args= ('ascii', 'label\xc3\xa0', 5, 6, 'ordinal not in range(128)') And from Variables: Variables fa '' self self.tagu'label' co 'label\xc3\xa0' args('ascii', 'label\xc3\xa0', 5, 6, 'ordinal not in range(128)') the string raising the error is "labelà" and I see from Variables that it was encoded in utf-8 by xml I think. The original string was "label\xe0" (as I said a unicode string). Any suggestion? This is driving me crazy..thank you carlo

[web2py] Storing the Original Filename in the official web2py book

2011-01-12 Thread carlo
!=None: form.vars.image_filename = request.vars.image.filename if form.accepts(request.vars, session): response.flash = 'form accepted' elif form.errors: response.flash = 'form has errors' return dict(form=form) I think: if request.vars.image!=None ## always True should be if request.vars.image carlo

[web2py] Re: new features and new book sections/chapters

2010-09-10 Thread carlo
Hi Massimo, I bought the new edition and you made the usual great job. Just one thing: I can not find the "uploadfolder" parameter in the Field specs while it is present in the online edition..thanks On 16 Ago, 06:11, mdipierro wrote: > Or this: > > http://stores.lulu.com/web2py > > On 16 Ago, 0

[web2py] Re: form=auth and error 404

2010-04-13 Thread carlo
Hi, did you decorate the index action the way it is explained in the book? Are you sure the Auth class is instantiated correctly in your model? carlo On 13 Apr, 09:40, aure wrote: > Hi everyone, > > I already posted that at the end of a discussion ("How to by-pass user/ &g

[web2py] Re: auth.settings.actions_disabled.append('register')

2010-04-09 Thread carlo
you meant to avoid 404 page? mmh, It does not seem to work..maybe I misunderstood. carlo On 9 Apr, 17:07, mdipierro wrote: > You can set > > auth.settings.on_failed_authorization = URL(...) -- To unsubscribe, reply using "remove me" as the subject.

[web2py] Re: auth.settings.actions_disabled.append('register')

2010-04-09 Thread carlo
thank you, I knew all you said but I did not focus enough on the "double" model issue oops! About the 404 error page your link is broken but browsing the manual I think you pointed me to the routes_onerror solution. Thank you for bridging the execution stream clearly, carlo On 9

[web2py] Re: auth.settings.actions_disabled.append('register')

2010-04-09 Thread carlo
pected: I think that lastdb.py was executed after db.py, Auth tables (re)created and set auth.settings.actions_disabled=[]. Does it make sense to you? Another small question: what do you suggest as the best way to show the user a kind page instead of "404 NOT FOUND" after he tried registrat

[web2py] Re: auth.settings.actions_disabled.append('register')

2010-04-09 Thread carlo
, later I will post more results. carlo On 9 Apr, 00:45, Yarko Tymciurak wrote: > On Apr 8, 4:43 pm, carlo wrote: > > > thank you Yarko for replying. Well it is really a strange behaviour, I > > am trying to isolate the problem. > > Try with just a fresh app first - just a

[web2py] Re: auth.settings.actions_disabled.append('register')

2010-04-08 Thread carlo
7;/init/default/$f', '/$f'),) In fact the login page, where you are redirected after you call an auth-decorated function, breaks the above rule: http://www.mysite.com/init/default/user/login?_next=/add Do you think this make any sense? Could this in any way affect the 'register&#

[web2py] auth.settings.actions_disabled.append('register')

2010-04-08 Thread carlo
Following the manual I put this statement in my model file but it seems I can still access the register page and register a new user: did I miss something? carlo -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group,

[web2py] Re: Validation per object

2010-04-02 Thread carlo
quot; helpers in the controller is mandatory only if you want web2py validation in charge but it has nothing to do with the form actually rendered. rgds carlo -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to thi

[web2py] Re: Validation per object

2010-04-02 Thread carlo
ns with no particular care I think this is, in general, not such a remote choice. As you said: >>But ultimately, you need to know "I want to do this - how? what are my >>choices?" >>Web2py offers you FORM, SQLFORM, and SQLFORM.factory. My example is poor and maybe it

[web2py] Re: Validation per object

2010-04-02 Thread carlo
ese apparently futile arguments but I would just like that people beginning with Web2py do not have to read, like in many other python frameworks docs, "it is easy to get this thing done" but they can never grasp that "easy way". carlo -- You received this me

[web2py] Re: Validation per object

2010-04-01 Thread carlo
y DenesL but you did not answer the question as you supposed a model in place, so I would really appreciate a simple html form which preserves validation. Thank you carlo On 15 Mar, 21:09, DenesL wrote: > On Mar 15, 6:28 am, Mengu wrote: > > > > First of all, I am not sure what is

[web2py] Re: rows.response

2010-02-03 Thread carlo
thank you, carlo On 3 Feb, 00:46, mdipierro wrote: > Try this: > > {{db[table].id.represent=lambda id: A(id,_href=URL(r=request, > c='default',f='data_clienti',args=id,vars={'table':table})})) > {{=SQLTABLE(rows,_class='sortable',head

[web2py] Re: rows.response

2010-02-02 Thread carlo
an internal variable. It is > gone long ago. > If you show us how you were using we can point to a simple fix. > > On Feb 2, 9:43 am, carlo wrote: > > > I must have missed something lately, so forgive my question if it is a > > faq. > > > I have an application w

[web2py] rows.response

2010-02-02 Thread carlo
I must have missed something lately, so forgive my question if it is a faq. I have an application where I used rows.response in a view: it was ok until version 1.6.xx but it fails in the latest version, what is changed? thank you carlo -- You received this message because you are subscribed to

[web2py:33808] Re: Web2py concerns

2009-10-27 Thread carlo
seldom I use the web editor myself, but I admit it is a facility when you are at customers and you have to make a change on the fly. As other said, there is a lot of magic in web2py but fortunately you can tweek the environment the way you like. carlo On 24 Ott, 18:50, Doxaliber wrote: >

[web2py:33571] Re: Web2py concerns

2009-10-24 Thread carlo
thing important in his admin interface. I would add that the admin web2py console where you can test your query from the command line is also a great thing you should try. carlo On 23 Ott, 20:27, mdipierro wrote: > > authors = models.ManyToManyField(Author) > > This hides th

[web2py:33538] Re: running from source on Vista requires pywin32

2009-10-23 Thread carlo
st is that you often have win32 extensions installed though you are not aware of it. Massimo or other experts here can comment on my conclusion? carlo On 23 Ott, 00:50, stefaan wrote: > > do you mind posting again what kind of error you get? > > Sorry I see now that there's room

[web2py:33408] Re: running from source on Vista requires pywin32

2009-10-22 Thread carlo
do you mind posting again what kind of error you get? thank you carlo On 22 Ott, 13:02, stefaan wrote: > Hello, > > This problem occurred for me on windows xp professional version 2002 > service pack 3 on an intel pentium 4 cpu 3ghz with 504 MB of RAM (an > industrial rack). >

[web2py:33323] Re: running from source on Vista requires pywin32

2009-10-21 Thread carlo
could anyone post some technical issues about that? What's the problem with Vista? Is that a python issue or web2py? I am sure no problem with win 2003 server. thank you carlo On 21 Ott, 17:16, Jason Brower wrote: > +1 to that feature. :P > > On Wed, 2009-10-21 at 08:00 -0700, m

[web2py:33294] Re: running from source on Vista requires pywin32

2009-10-21 Thread carlo
never had that problem on tens of win installations: which web2py version? I am going to test newer versions on fresh xp installations. carlo On 21 Ott, 11:15, stefaan wrote: > Hello all, > > I guess my contribution was lost in the noise, > but I have the same problem o

[web2py:32738] security bug in Django, what about web2py?

2009-10-12 Thread carlo
This is the reported bug: http://code.djangoproject.com/changeset/11603 do you think web2py is also affected? carlo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this g

[web2py:31904] Re: Watch this Youtube video!

2009-09-30 Thread carlo
I think it is showing just known things: clear passwords over unsecure channels can be easily sniffed. Or did I miss something? carlo On 30 Set, 12:20, Pynthon wrote: > Hello everyone > > I am ill and I was lying in bed with my iPod Touch. However I searched > on Youtube for some s

[web2py:31405] Re: FORM, SQLForm - what should I use?

2009-09-21 Thread carlo
associated (other choices are also available to get the same result). I have examples if you need that. About example 33, I think you are right, code is about two input text fields but it shows 2 select instead. carlo On 21 Set, 12:01, mika wrote: > Thanks for your replies, they gave me some li

[web2py:29409] Re: web2py book, 2nd Ed

2009-08-26 Thread carlo
In fact I tried the same but what you get is the first edition, carlo On 26 Ago, 14:42, Benigno wrote: > Actually, my bad...  I have just checked the downloaded copy is 1st > edition, not second, I had not checked the downloaded file. > > Thanks Rev for pointing that out. > &g

[web2py:29391] Re: web2py book, 2nd Ed

2009-08-26 Thread carlo
Missing those categories I bought this at the bargain price of 9.69 euros ! btw, great work Massimo! carlo On 26 Ago, 12:37, mdipierro wrote: > I cannot reimburse people but I am happy to give it for free to high > school students and people who live in countries with an average &g

[web2py:29380] Re: web2py book, 2nd Ed

2009-08-26 Thread carlo
> Same price as before ($12.5) and same ID (which means if you bought > the old one you should be able to get the new one for free). Are you sure about that? Though I bought the first edition I do not see any way to get the second for free, thank you

[web2py:27706] Re: silly question: embedding flash files in views

2009-07-31 Thread carlo
w just put (shown only if the user does not have Flash player installed): http://www.adobe.com/go/getflashplayer";> http://www.adobe.com/images/shared/download_buttons/ get_flash_player.gif" alt="Get Adobe Flash player" /> Everything about swfobject at http://code.google.com

[web2py:27603] Re: silly question: embedding flash files in views

2009-07-30 Thread carlo
Jul 28, 2009 at 4:48 PM, carlo wrote: > > > After several tries I have to ask: are any particular issues with > > embedding flash objects in views? > > > I put the usual in my view: > > > {{url=URL(r=request,c='static',f='somefilename.swf)}} > &

[web2py:27509] Re: silly question: embedding flash files in views

2009-07-28 Thread carlo
no, I mistyped but I have the same : {{url=URL(r=request, c='static', f='somefilename.swf' )}} I can see the the "box" on the html page but no flash player starting. On 28 Lug, 18:38, Fran wrote: > On Jul 28, 4:48 pm, carlo wrote: > > > {{url=UR

[web2py:27502] silly question: embedding flash files in views

2009-07-28 Thread carlo
After several tries I have to ask: are any particular issues with embedding flash objects in views? I put the usual in my view: {{url=URL(r=request,c='static',f='somefilename.swf)}} what's bad here? Thank you carlo --~--~-~--~~~---~--~---

[web2py:26410] Re: code & book v2

2009-07-13 Thread carlo
form implementation and the best practice to follow. just a thought.. carlo On 13 Lug, 13:51, gluegl wrote: > When will the book be released? > I purchased 3 weeks ago the old book online.  :-( > -G > > On Jul 12, 3:00 pm, Tim Michelsen wrote: > > > Hello Massimo, >

[web2py:24625] Re: web2py with mysql

2009-06-21 Thread carlo
you always have to set a user in mysql: if you never set a user before I suppose you always accessed as 'root' and a blank password but these have yet to be present in the connection string (not a web2py issue here). carlo On 21 Giu, 07:00, weheh wrote: > I had to do some muckin

[web2py:24624] Re: Difficulty with mysql migration

2009-06-21 Thread carlo
from one db to another (and it should not do), I think you have to do some scripting or use some external mysql utility to convert data. carlo On 21 Giu, 03:09, weheh wrote: > Now 100% certain about causing reserved keyword conflict with mysql. > Thanks again for the reminder. > > I

[web2py:24622] Re: How using free id in db

2009-06-21 Thread carlo
here you can find some details about autoincrement in SQLIte: http://www.sqlite.org/autoinc.html as you can see ROWID is a 64 bit signed number and my conclusion is you never should worry about the 'id gaps'. carlo On 21 Giu, 00:01, Fauché JM wrote: > Annet ,has clearly explain

[web2py:24548] Re: web2py with mysql

2009-06-20 Thread carlo
when you launch web2py check if it reports MySQL installed from the console. In addition I think that although you have no password in mysql you should set 'user' and 'password' in the connection string. carlo On 20 Giu, 16:13, weheh wrote: > I'd like to

[web2py:24547] Re: Having an 'upgrade' distribution?

2009-06-20 Thread carlo
..and did you consider the source distribution? Once you have Python installed it is lighter and faster to download. carlo On 20 Giu, 01:43, Eddie Eyles wrote: > I like the pace of new releases of web2py, but it is a pain to > download each one (the Windows distribution takes an hour

[web2py:24543] Re: Can't get the server to work online...

2009-06-20 Thread carlo
Sincerely I miss the point of -i 0.0.0.0: what is your purpose here? carlo On 20 Giu, 14:29, Jason Brower wrote: > I start web2py with this... > python web2py.py -i 0.0.0.0 > And it seem to run fine on that server... but when I try to go to the IP > address from online it doesn

[web2py:24541] Re: Coming from grails world

2009-06-20 Thread carlo
Anyway I would be surprised to see CherryPy+SQLite performing slower than Apache+anything else at least under moderate load. carlo On 19 Giu, 20:18, Fran wrote: > On 19 June, 16:01, Daniel Guryca wrote: > > > I can see that performance coming from a default integrated server is

[web2py:24540] Re: How using free id in db

2009-06-20 Thread carlo
I think I do not grasp your point: if you delete one row you do not have empty id although it increments so there is no lost time when reading the db and you do not even heve th chance to access the "deleted" id. Or maybe I misunderstood your case.. carlo On 20 Giu, 13:57, Fauché

[web2py:24384] Re: forms validation

2009-06-17 Thread carlo
did you document this somewhere? Maybe in the new slides (that still I can not download from Scribd).. thank you carlo > > Massimo > > On Jun 17, 10:47 am, carlo wrote: > > > sorry Massimo to insist upon this but I would like to get it clear. > > I understand this: if

[web2py:24369] Re: forms validation

2009-06-17 Thread carlo
.flash='please fill the form' return dict() View: thanks carlo On 17 Giu, 17:07, mdipierro wrote: > in your code, the form that accepts is form=FORM() and it contains no > fields. No variable is transferred from request.vars to form.vars. > There are no errors b

[web2py:24359] Re: Web2Py Virtual Machine

2009-06-17 Thread carlo
could be great to download this VM and test, I think you made a great work. carlo On 17 Giu, 16:08, JohnMc wrote: > samwyse, > > The primary reason I picked Ubuntu was to avoid any licensing issues. > Offering something like this up to anyone who wants it,  means you > don

[web2py:24358] Re: forms validation

2009-06-17 Thread carlo
the controller.. maybe you can clarify this point? carlo On 17 Giu, 15:41, DenesL wrote: > carlo, > the INPUT in the view is not part of the form, the form has no fields. > When form.accepts runs it does not have any field to check against > request.vars . > > You will have

[web2py:24348] forms validation

2009-06-17 Thread carlo
>From the manual there is no reason this should not work, but the form is accepted even with the empty field. Why? Thank you carlo controller: def index(): form=FORM() if form.accepts(request.vars,session,formname='test'): response.flash='form accepted

[web2py:24346] Re: new slides

2009-06-17 Thread carlo
it is impossible to download from Scribd, it just launches an endless Loading.. carlo On 17 Giu, 08:21, mdipierro wrote: > sorry. fixed. > > On Jun 17, 1:12 am, "Francois (Jersey)" > > wrote: > > can not access as wel

[web2py:24290] adding vars to request.vars ?

2009-06-16 Thread carlo
values to request.vars . carlo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email

[web2py:23687] Re: how to prevent deletion of referenced records

2009-06-09 Thread carlo
Foreign key constraints are not implemented in Sqlite (although it parses the command). See: http://www.sqlite.org/omitted.html but you can use triggers. carlo On 9 Giu, 15:46, annet wrote: > Marco, > > Did you test this in Sqlite: > > db.define_table('table

[web2py:23685] Re: how to prevent deletion of referenced records

2009-06-09 Thread carlo
in most of other rdbms. Of course sort of referential integrity can be assured via software checking in every table which has a reference to the record you want to delete. carlo On 9 Giu, 13:51, Marco Prosperi wrote: > hi all, is there a validator or an easy way to prevent a user to > de

[web2py:23498] Re: slides again

2009-06-07 Thread carlo
any place to download without registering to scribd ? carlo On 6 Giu, 17:20, mdipierro wrote: > I posted a new version of the slides with typos fixed, and a couples > slides added. > > http://www.scribd.com/doc/16085263/web2py-slides-version-163 > > BTW 3000 viewers so far

[web2py:23184] Re: more slides - must read

2009-06-03 Thread carlo
suppose .html is there just to show you can access the extension with request.extension carlo On 3 Giu, 11:03, dlypka wrote: > On page 24, why does it include the '.html' ? > > In your original cookbook, there is no '.html' here: > > "A URL likehttp:/

[web2py:23025] Re: if you care about web2py...

2009-06-01 Thread carlo
added. carlo (aka sotospeak) On 1 Giu, 05:40, mdipierro wrote: > ... you should comment on threads like this: > > http://www.reddit.com/r/programming/comments/8ooh3/which_web_framewor... > > Massimo --~--~-~--~~~---~--~~ You received this message

[web2py:23024] Re: if you care about web2py...

2009-06-01 Thread carlo
mine comment added. carlo (aka sotospeak) On 1 Giu, 05:40, mdipierro wrote: > ... you should comment on threads like this: > > http://www.reddit.com/r/programming/comments/8ooh3/which_web_framewor... > > Massimo --~--~-~--~~~---~--~~ You receiv

[web2py:22553] Re: executesql is safe?

2009-05-24 Thread carlo
I would add that in appadmin.py there are several examples for using DAL when table and field names are generated at "runtime". carlo On 24 Mag, 08:09, mdipierro wrote: > > But I have some questions: > > > 1.- Is more safe to use  executesql? > > It is less

[web2py:22514] Re: new in trunk args[i] == None

2009-05-23 Thread carlo
I am definitely with AchipA this time: no need to change request.args carlo On 23 Mag, 21:32, AchipA wrote: > Hang on, not sure if we're talking about the same thing. Style, as in > preference of 'if' over 'try' is okay to discuss (although I think > *fo

[web2py:22393] Re: pre-populating forms and keepvalues=True ?

2009-05-22 Thread carlo
my solution is: {{if request.vars.myname:}} {{myvalue=request.vars.myname}} {{else:}} {{myvalue='mydefault'}} {{pass}} any better? carlo On 22 Mag, 17:33, carlo wrote: > I forgot to mention that my form is pure html and in the controller I > have: > > form=FO

[web2py:22391] Re: pre-populating forms and keepvalues=True ?

2009-05-22 Thread carlo
hat values inserted are always cleared after submission even if the field is not pre-populated. My answer is that because the form=FORM() is never passed to the view I can not have my values kept. Correct? Any work around for this leaving the form as pure html? carlo On 22 Mag, 17:12, carlo wrote:

  1   2   >