Hi Krista,
can you email me ticket and or the app?
Massimo
On Aug 26, 8:29 pm, klarson wrote:
> Hello,
>
> I'm trying to create a form in a custom module. It was originally in
> a controller file and worked fine. Here's the code:
> form = FORM(TABLE(
> TR("Contributor:", INPUT(_na
Is it out yet? When we upgrade we'll let you know.
I do not expect any problem.
On Aug 26, 9:46 pm, vvk wrote:
> Is web2py compatible with snow leopard final Gold master ( a432 )
> version ? Any issues there ?
--~--~-~--~~~---~--~~
You received this message becaus
Globals variables are not persistent. I do not understand how your
mechanism work. Can you explain?
On Aug 26, 9:54 pm, vvk wrote:
> Is it necessary to put authentication check for global variables in
> controller ?
>
> I am using global variables to make sure that certain functions are
> called
yes. this is right. If you add the validators you aslo get the dro
boxes.
On Aug 26, 10:53 pm, Tim McNamara wrote:
> Hi all,
>
> I am not a DB expert, but am sure there are some in here. I am trying
> to a many-to-many(-to-many?) relationship. I would like both
> organisations or individuals to
with 1.66.2 _newfilename is returning None from my upload
field.
Has anyone else experienced this?
Richard
On Aug 16, 6:30 pm, weheh wrote:
> OK, by getting from the trunk the gluon/sql.py and gluon.sqlhtml.py
> files, this problem is fixed in the 1.65.11 release. Thank you Massimo
> and Yarko
Yes, It's released on the developer network. I got mine and planning to
upgrade.
On Thu, Aug 27, 2009 at 12:54 PM, mdipierro wrote:
>
> Is it out yet? When we upgrade we'll let you know.
> I do not expect any problem.
>
> On Aug 26, 9:46 pm, vvk wrote:
> > Is web2py compatible with snow leo
This should not be. Please check for spelling errors.
On Aug 27, 2:32 am, Richard wrote:
> with 1.66.2 _newfilename is returning None from my upload
> field.
> Has anyone else experienced this?
>
> Richard
>
> On Aug 16, 6:30 pm, weheh wrote:
>
> > OK, by getting from the trunk the gluon/sql.py
I would also be greatly interested in this.
Nicol
JorgeR wrote:
> Any news about this?
>
> I am about to start a very complex application and have already the DB
> designed.
> >
>
>
--
Facts:
1) A pizza with the radius z and thickness a has the volume pi*z*z*a
2) Haikus are easy. Bu
On a related note, web2py works flawlessly on Windows 7 RTM :)
On Aug 27, 2:24 am, mdipierro wrote:
> Is it out yet? When we upgrade we'll let you know.
> I do not expect any problem.
>
> On Aug 26, 9:46 pm, vvk wrote:
>
>
>
> > Is web2py compatible with snow leopard final Gold master ( a432 )
Content is great -- but for me there is a niggle: where are the
bookmarks?
It is a trivial matter to include bookmarks, I just spent 15 mins
adding some; but surely these should already be included in a paid-
for PDF?
Please consider this a positive criticism because I think the book
itself i
http://www.reddit.com/r/programming/comments/9en88/how_to_insert_captcha_recaptcha_in_web2py_form/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@goog
Yes this was a mistake.
On Aug 27, 6:16 am, villas wrote:
> Content is great -- but for me there is a niggle: where are the
> bookmarks?
>
> It is a trivial matter to include bookmarks, I just spent 15 mins
> adding some; but surely these should already be included in a paid-
> for PDF?
>
> P
I think you have one too many closures on the end.
On Aug 26, 8:29 pm, klarson wrote:
> Hello,
>
> I'm trying to create a form in a custom module. It was originally in
> a controller file and worked fine. Here's the code:
> form = FORM(TABLE(
> TR("Contributor:", INPUT(_name="contr
If you don't like the default theme, you can change it (and other
options) by placing a script on the page:
var RecaptchaOptions = {
theme : 'clean',
tabindex : 2
};
More here: http://recaptcha.net/apidocs/captcha/client.html
On Aug 27, 6:39 am, mdipierro wrote:
> http://www.reddit.co
The link did not show in the "news". I deleted and reposted:
http://www.reddit.com/r/programming/comments/9enai/using_captcharecaptcha_with_web2py_forms/
It still does not show.
Massimo
On Aug 27, 6:46 am, "mr.freeze" wrote:
> If you don't like the default theme, you can change it (and o
any further help appreciated with this, as I am stuck??
just need to get the contoller action running from an onclick event in
the view, at present nothing happens and I'm not sure if it is jpolite
or just using the wrong code?
regards chrism
On Aug 26, 11:13 pm, murray3 wrote:
> Ok I have a be
Hi,
After a little mail conversation with Massimo, he agrees allows me
translate the new book to the spanish. I'll post this mail to avoid
duplicate work or communications problem, after receive the sources
i'll estimate the translation time.
Thanks to all (and specially Massimo)!!!
Saludos,
I am glad you volunteered to do it. We have volunteers for portuguese,
Chinese and german as well.
It would be nice to have somebody in charge of coordinating this
project and keep track of progess independently of the specific
language, and keep all translations in one place.
Massimo
On Aug 27,
Thanks guys. Yarko, you are nothing if not prolific - all I ever
wanted to know and more. :-)
I just felt like there must be some mechanism to tell python where to
find files from the command prompt short of typing the entire path and
that I was missing something. I didn't really think pythonpa
Hi,
Under windows, is there another way other than running "session2trash.py" in
the background(windws always show a command window) to clean up the session
files periodically? What if I do cleanup work every request-check the files
timestamp then delete them if time expired?
If the sessions are s
Hi list,
I want import some data from a CSV file through admin but it keeps
getting me error.
CSV is made with Excel app, by default those CSV files came with semi-
colon (;) and not coma (,)
which I chaged outside Excel. I exported some data that was in web2py
app and follow that format
but stil
some problems might come from python version:
python -V
Python 2.6.1
On Wed, Aug 26, 2009 at 8:46 PM, vvk wrote:
>
>
> Is web2py compatible with snow leopard final Gold master ( a432 )
> version ? Any issues there ?
>
--~--~-~--~~~---~--~~
You received this mess
Yes, makes no difference to me but consider, you'd be cutting few
valuable dollars from the web2py budget. ;-)
On Aug 27, 9:47 am, Don Lee wrote:
> I believe in a previous thread you wrote that people who bought the previous
> edition from lulu could get a free copy of the 2nd edition if they se
I believe in a previous thread you wrote that people who bought the previous
edition from lulu could get a free copy of the 2nd edition if they sent you
a copy of their receipt. Does that offer still stand?
On Thu, Aug 27, 2009 at 7:24 AM, mdipierro wrote:
>
> Yes this was a mistake.
>
> On Aug
The policy is that the translator and I will have joint copyright
ownership. I leave it to the translator to determine the distribution
venue. It is ok with me if they are distributed for free.
Massimo
On Aug 27, 10:29 am, DenesL wrote:
> Under what conditions will those translations be availab
If you start web2py without a password it is disabled. You can also
delete the parameters_80.py files which contains the password for
access via the 80 port.
On Aug 27, 10:36 am, Pynthon wrote:
> Ah so you did something so other people can't access admin? Wouldn't
> it be a good idea that you ca
On Aug 27, 2009, at 7:16 AM, ctalley wrote:
> Thanks guys. Yarko, you are nothing if not prolific - all I ever
> wanted to know and more. :-)
>
> I just felt like there must be some mechanism to tell python where to
> find files from the command prompt short of typing the entire path and
> that
Krista,
check your parentheses, they are unbalanced.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group,
I do not know but you can try from the web2py shell
improt csv
reader = csv.reader(open(filename, "rb"), delimiter=";")
for (k,row) in enumerate(reader):
if k==0:
keys=dict([(i,h.split('.')[1]) for (i,h) in enumerate(row)])
ncols=len(keys)
print 'keys=',keys
else:
Often I just put this in a model:
ps=os.path.join(request.folder,'sessions')
try: [os.unlink(os.path.join(ps,f)) for f in os.listdir(ps) if os.stat
(os.path.join(ps,f))[stat.ST_MTIME] wrote:
> Hi,
>
> Under windows, is there another way other than running "session2trash.py" in
> the background(wi
Check your csv file, does it contain some empty rows? Or does your data
contain any coma ( which will tell the csv reader you have more fields than
you expect)? Or some fields get illegal values?
good luck.
2009/8/27 Carlos Aboim
>
> Hi list,
>
> I want import some data from a CSV file through
Ah so you did something so other people can't access admin? Wouldn't
it be a good idea that you can disable the admin app like a config.py
file as example:
admin = false
On 26 aug, 15:50, Yarko Tymciurak wrote:
> On Wed, Aug 26, 2009 at 4:34 PM, mdipierro wrote:
>
> > Assuming you run web2py
Under what conditions will those translations be available?.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from thi
The standard options file is missing two attributes:
python web2py.py --config options_std.py
fails with the following:
Traceback (most recent call last):
File "web2py.py", line 20, in
gluon.widget.start(cron=True)
File "/opt/web2py/gluon/widget.py", line 779, in start
if options.e
also, for reference - on windows I believe it's pythonw.exe that will
run a script w/o a command window
On Thu, Aug 27, 2009 at 10:28 AM, mdipierro wrote:
>
> Often I just put this in a model:
>
> ps=os.path.join(request.folder,'sessions')
> try: [os.unlink(os.path.join(ps,f)) for f in os.listdir
My import statements:
from gluon.html import *
from gluon.validators import *
I haven't figured out why but I can't view the error tickets in web2py
(just started recently). If I click on the link, it redirects to a
new Internal Error with a new number (though no new error is logged).
Does anyon
Error tickets are stored in web2py/applications/yourapp/errors.
On Aug 27, 1:43 pm, klarson wrote:
> My import statements:
> from gluon.html import *
> from gluon.validators import *
>
> I haven't figured out why but I can't view the error tickets in web2py
> (just started recently). If I click
Minor observation that I hope helps, Massimo. Going out to Lulu, if
you do a search for web2py what is depicted is the old book cover from
V1. Going to the 'read more' link shows the new cover with the
revision title as V2.
Might want to suggest to the Lulu folks to get the new cover up there.
Ma
On Wed, Aug 26, 2009 at 4:32 PM, Yarko Tymciurak wrote:
>
>>>
>>> I've added the web2py.py path to sys.path using sys.path.append and
>>> verified using print sys.path
>>
>> Again - this would have an effect if you wrote a script that did
>> "import web2py" - but since web2py isn't a module (
On Thu, Aug 27, 2009 at 9:16 AM, ctalley wrote:
>
> Thanks guys. Yarko, you are nothing if not prolific - all I ever
> wanted to know and more. :-)
>
> I just felt like there must be some mechanism to tell python where to
> find files from the command prompt short of typing the entire path and
>
On Thu, Aug 27, 2009 at 11:26 AM, Yarko Tymciurak wrote:
> On Thu, Aug 27, 2009 at 9:16 AM, ctalley wrote:
>>
>> Thanks guys. Yarko, you are nothing if not prolific - all I ever
>> wanted to know and more. :-)
>>
>> I just felt like there must be some mechanism to tell python where to
>> find fil
No Flavio:
Kpfk is better! www.kpfk.org :)
On Aug 26, 11:30 am, OpenRising wrote:
> out of the topic :)
>
> Yeah @snfctech,
>
> http://www.kpfa.orgis the best RADIO on the Planet ;)
> Please support his amazing 50+ years World community radio located in
> Berkeley ;)
>
> I just bought my co
Please ignore the parentheses as I cut/paste a segment of the code
from the entire form. It has several more TR elements but they all
work once I remove the INPUT element. The entire code works in the
controller so there shouldn't be a parentheses problem.
On Aug 27, 10:22 am, DenesL wrote:
>
I just bought it a month ago. So it kind of burns to have to buy
another copy. Have you considered creating some kind of not profit
for web2py. Then setup a donation. I'd gladly donate to the web2py
to help fund your work and keep the documentation free(ly
accessible). Nothing is truly free ;
try reading the excel file with Open Office, and exporting a csv from
there - see if that works better.
On Thu, Aug 27, 2009 at 9:33 AM, Carlos Aboim wrote:
>
> Hi list,
>
> I want import some data from a CSV file through admin but it keeps
> getting me error.
> CSV is made with Excel app, by def
Well, its a good idea.
I can help translate to portuguese, if needed.
2009/8/27 mdipierro
>
> I am glad you volunteered to do it. We have volunteers for portuguese,
> Chinese and german as well.
> It would be nice to have somebody in charge of coordinating this
> project and keep track of proge
The example on the bottom of page 212 in the new book shows you how to
do it.
On Aug 27, 6:40 pm, ed wrote:
> Hi,
> It tried modifying the default.py auth.register() form with the
> following code:
> def user():
> if request.args(0)=='register':
> response.flash=T('Register')
>
On Aug 27, 11:38 am, mdipierro wrote:
> The policy is that the translator and I will have joint copyright
> ownership. I leave it to the translator to determine the distribution
> venue. It is ok with me if they are distributed for free.
>
> Massimo
Alfonso,
if you plan to make it available for
Bought it
On Aug 26, 2:34 am, mdipierro wrote:
> The new web2py book is available on lulu.com
>
> http://www.lulu.com/content/e-book/web2py/4968879
>
> Lots of new stuff with100 more pages (341 pages in total). Covers
> Auth, Crud, Services, interaction with Pyjamas, PyAMF, and better
> dep
On Aug 26, 11:54 pm, Jason Brower wrote:
> This is a simple website with some dynamic text that I am building for a
> manufacturing company in Taiwan. It was very easy to do.
> It will obviously get better with time. And a lot of the code you will
> never see. (That's a good thing. :D)http://tr
Hi,
The follows is a simplification.
If my controller is:
def buscar():
form = FORM(TABLE(
TR(INPUT(_name='mytxt', _id='mytxt', _value='a text...')),
TR(INPUT(_type='checkbox', _name='mychk', _id='mychk',
_value='')),
TR("", INPUT(_type="submit",_value="B
On Aug 27, 7:26 pm, mdipierro wrote:
> yes. this is right. If you add the validators you aslo get the dro
> boxes.
>
Thanks :) SQLFORM with drop boxes is a very nice feature, btw. Tim
> On Aug 26, 10:53 pm, Tim McNamara wrote:
>
>
>
> > Hi all,
>
> > I am not a DB expert, but am sure there are
When you get internal error it should show the traceback on the
console. Can you read that?
Massimo
On Aug 27, 12:51 pm, 陶艺夫 wrote:
> Thank you, mdipierro!
>
> I've put the cleanup code in logout method, to avoid per request check. I
> don't know if it is more reasonable.
>
> "pack-compiled" ju
Thank you, mdipierro!
I've put the cleanup code in logout method, to avoid per request check. I
don't know if it is more reasonable.
"pack-compiled" just give me a "Internal error" message by the message
flash.
I'm using the newest version of web2py, 1.66.2
2009/8/28 Yarko Tymciurak
>
> also,
This should not be happening. You are one of the first web2py users.
Is it possible you upgraded web2py but not the admin app? Try the
following:
1) delete everything in yourapp/errors and admin/errors
2) run web2py with
python web2py.py -upgrade=yes
and than check the ticket again. If you get a
I'm not sure why it's always on but you can store the state of the
checkbox in a hidden field and pass it back with the ajax request like
so:
def search2():
form = FORM(
TABLE(
TR(INPUT(_name='mytxt', _id='mytxt', _value='a
text...')),
T
No. There were not any errors shown in the console, it seemd nothing had
happened - that's why I could not figure out what was wrong.
Thanks.
2009/8/28 mdipierro
>
> When you get internal error it should show the traceback on the
> console. Can you read that?
>
> Massimo
>
> On Aug 27, 12:51 pm
On 27 ago, 23:27, "mr.freeze" wrote:
> I'm not sure why it's always on but you can store the state of the
> checkbox in a hidden field and pass it back with the ajax request like
> so:
>
> def search2():
> form = FORM(
> TABLE(
> TR(INPUT(_name='mytxt', _
Brought the new book, great job Massimo, I'll working with Zoom
translate this book into Chinese.
On Aug 26, 4:34 am, mdipierro wrote:
> The new web2py book is available on lulu.com
>
> http://www.lulu.com/content/e-book/web2py/4968879
>
> Lots of new stuff with100 more pages (341 pages in
Hi Massimo,
mdipierro wrote:
> The new web2py book is available on lulu.com
>
> http://www.lulu.com/content/e-book/web2py/4968879
>
> Lots of new stuff with100 more pages (341 pages in total). Covers
> Auth, Crud, Services, interaction with Pyjamas, PyAMF, and better
> deployment recipes.
oops. thanks.
On Aug 27, 10:45 am, Kevin Butler wrote:
> The standard options file is missing two attributes:
>
> python web2py.py --config options_std.py
>
> fails with the following:
>
> Traceback (most recent call last):
> File "web2py.py", line 20, in
> gluon.widget.start(cron=True)
>
I apologize for my comment below. It did not come out well.
1) Yes, if people send me receipts I will email back the new book
2) There should be a mechanism to accept donations.
3) There is no much profit on my side in selling the book and I try to
reinvest those profits into web2py (I pay for
On 28 ago, 00:26, "mr.freeze" wrote:
> I think I see what's going on. web2py's ajax function is explicitly
> getting the 'value' of each element id that is passed. The value of a
> checkbox doesn't change, ...
It is true, so look for ways to access the checked property.
Jose
--~--~---
I add printing taceback code into gluon.admin's app_pack method after
'Except:', and now I get the console output: " [Error 32] : ''. Does it mean I/O error in windows? I stopped the server,
deleted all files under the path, and try again... The error was still
there.
2009/8/28 陶艺夫
> No. There
Can anybody else reproduce this?
On Aug 27, 7:07 pm, 陶艺夫 wrote:
> No. There were not any errors shown in the console, it seemd nothing had
> happened - that's why I could not figure out what was wrong.
>
> Thanks.
>
> 2009/8/28 mdipierro
>
>
>
> > When you get internal error it should show the
Even better: let jQuery serialize the entire form since it knows how
to handle all of the form elements properly:
function ajaxSubmit(u,t){
query = jQuery("form").serialize();
jQuery.ajax({type: "POST", url: u, data: query, success: function
(msg) { if(t==':eval') eval(msg); else
On 28 ago, 01:44, "mr.freeze" wrote:
> Did you try my altered ajax function?
Works well!. You can add it to the trunk?
Jose
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this gr
I think I see what's going on. web2py's ajax function is explicitly
getting the 'value' of each element id that is passed. The value of a
checkbox doesn't change, it's just not sent during a submit unless it
is checked. The ajax function would need to be changed to account for
this.
On Aug 27,
I do not get error ticket output in the console on Windows.
On Aug 27, 7:29 pm, mdipierro wrote:
> Can anybody else reproduce this?
>
> On Aug 27, 7:07 pm, 陶艺夫 wrote:
>
>
>
> > No. There were not any errors shown in the console, it seemd nothing had
> > happened - that's why I could not figure
On 28 ago, 01:44, "mr.freeze" wrote:
> Did you try my altered ajax function?
I tried not entered because apparently when I was sending my message.
Now I try it.
Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Grou
You could also alter the ajax function in web2py_ajax.html:
function ajax(u,s,t) {
var query="";
for(i=0; i0) query=query+"&";
var elem = jQuery("#" + s[i]);
if (elem.attr("type")=="checkbox" && elem.attr('checked') ==
false) continue;
query=query+encodeURIComponent(s[i])+"="+e
Did you try my altered ajax function? It should only send back the
checkbox if it is check. Hope that helps.
On Aug 27, 8:40 pm, Jose wrote:
> On 28 ago, 00:26, "mr.freeze" wrote:
>
> > I think I see what's going on. web2py's ajax function is explicitly
> > getting the 'value' of each elemen
I appended a line "tar.close()" to the tar() method in the file
"fileutils.py", now it's ok.
:)
2009/8/28 陶艺夫
> The error occured when 'os.unlink(tarname)'. Error 32 means the file is
> still open. I don't know why and am working on it.
>
> 2009/8/28 陶艺夫
>
>> No. There were not any errors show
hehe... dang it your right!...
On Thu, 2009-08-27 at 13:43 -0700, Tim McNamara wrote:
> On Aug 26, 11:54 pm, Jason Brower wrote:
> > This is a simple website with some dynamic text that I am building for a
> > manufacturing company in Taiwan. It was very easy to do.
> > It will obviously ge
I'll submit a patch.
On Aug 27, 9:59 pm, Jose wrote:
> On 28 ago, 01:44, "mr.freeze" wrote:
>
> > Did you try my altered ajax function?
>
> Works well!. You can add it to the trunk?
>
> Jose
--~--~-~--~~~---~--~~
You received this message because you are subscrib
About 2), it is easy if you use paypal,
https://www.paypal.com/cgi-bin/webscr?cmd=p/xcl/rec/donate-intro-outside
2009/8/27 mdipierro
>
> I apologize for my comment below. It did not come out well.
>
> 1) Yes, if people send me receipts I will email back the new book
>
> 2) There should be a m
The error occured when 'os.unlink(tarname)'. Error 32 means the file is
still open. I don't know why and am working on it.
2009/8/28 陶艺夫
> No. There were not any errors shown in the console, it seemd nothing had
> happened - that's why I could not figure out what was wrong.
>
> Thanks.
>
> 2009/
I sent a patch to Massimo but for posterity, here is the fixed ajax
function and added an ajaxForm(url,formIndex,targetResponseID)
function that grabs the entire form (by index i so use 0 for single
form pages):
function ajax(u,s,t) {
query = [];
for(i=0; i wrote:
> I'll submit a patch.
>
> O
I am running 1.66.2 and have this in the view...
---
---
And this in the controller...
---
def img():
response.download(request,db)
---
And I can see it "Trying to load the image here...
http://trimaxsafety.com.tw/welcome/default/product_manager
I have found the images... they are uploading..
I upgraded to latest version of web2py and now I am getting this error
(not sure if those 2 events are related):
Traceback (most recent call last):
File "/home/web2py/gluon/restricted.py", line 178, in restricted
exec ccode in environment
File "/home/web2py/applications/studio09/models/d
I thought a file would be closed automatically as its handler unreferred(for
example, the method referred it ended) and garbage-collected. But we can't
count on this, for the time is uncertain.
Close the file explicitly maybe a good choice.
2009/8/28 陶艺夫
> I appended a line "tar.close()" to the
81 matches
Mail list logo