Something about this issue? Should it work?
2013. január 28., hétfő 15:44:22 UTC+1 időpontban szimszon a következőt
írta:
Hi!
I wonder if somebody could help me.
The
definet_table('sometable',
Field('otherid', compute=lambda r: r['id'])
)
doesn't work for me. :( Sould it work?
The really ugly thing is that compute can silently fail and you could end
up with None in the db table cell :(
2013. január 29., kedd 9:13:29 UTC+1 időpontban szimszon a következőt írta:
Something about this issue? Should it work?
2013. január 28., hétfő 15:44:22 UTC+1 időpontban szimszon a
Some other issue:
db:
import datetime
db.define_table('sometable',
Field('otherid',
compute=lambda r: 'SPPRIME%s' % (
datetime.date.today().strftime('%y%m%d'
))
)
If I insert a db row from modules
current.db.sometable.insert()
The new
Hi guys,
I'm looking for a clean way to make an update on mutiple tables with only
one form and cannot find anything clean/simple searching the mailing list.
Tables could be related (in parent-child relation) or not related at all.
I'm missing something or there is no easy way to do that?
OK, it seems that GAE isn't fond of floats, but is quite happy with
doubles
Good to know, but, how did you fix GAE?. Have you changed your model? This
might be a bug in the DAL adapter
--
---
You received this message because you are subscribed to the Google Groups
web2py-users group.
To
i've already tried that appliance and learn a lot from it.
actually that i want is to be able to add multiple form field and then put
it on multiple tables.
the one that i've found is sheepit jquery plugins.
the problem that i found when i learn from shopping cart concept it's hard
to use 1 form
In my application every registered user has a shortname stored in
auth_user, which he can use to reference his home page. For this purpose I
have the following code in 00_db.py:
if request.controller == 'default' and request.function == 'index' and
request.args(0) == 'nl':
In my application I have the following pattern of controllers:
addressbook
cmsaddressbook
about
cmsabout
calendar
cmscalendar
I am going to host this application at webfaction, where you can choose to
create a secure website, however, I don't want the entire site to be
secure, just
I think we could make the script work also for 6.x (not sure about the
minimalist option, that would perhaps require another script)
The changes would be:
- Have the script detect the os version
- If it's 6.x don't compile python/uwsgi (does 6.x provide precompiled
python 2.7 and an updated
I solved a similar problem the following way:
# retrieve records
node=db(db.node.id==id).select(db.node.ALL).first()
address=db(db.address.nodeID==id).select(db.address.ALL).first()
telecom=db(db.telecom.nodeID==id).select(db.telecom.ALL).first()
# build form
I've deleted the db but error still remains ...
Il giorno lunedì 28 gennaio 2013 16:32:10 UTC+1, Massimo Di Pierro ha
scritto:
I think your problem is corrupted data. You have Pippo Pippo in a field
that is either integer or reference. This can happen with sqlite if you
change a field
Ok, we have progress (!)
Now the installation completes fine, and the service uwsgi exists, but
crashes when I run it...
[root@harmonica2 ~]# service iptables status
iptables: Firewall is not running.
[root@harmonica2 ~]# service nginx status
nginx (pid 1295) is running...
[root@harmonica2
Wait a minute - this is not good... :
Install web2py
% Total% Received % Xferd Average Speed TimeTime Time
Current
Dload Upload Total SpentLeft
Speed
100 8690k 100 8690k0 0 1973k 0 0:00:04 0:00:04 --:--:--
Hi Annet!
This is freaking awesome and it worked like a charm!
I found a way to add automatically variables to form.vars, hope this helps!
record = db(...).select().first()
for table in [db.table1, db.table2]:
for field in table.fields:
form.vars[field] =
add
unzip sudo
to the requirement lines.
On Tuesday, January 29, 2013 11:31:14 AM UTC+1, Arnon Marcus wrote:
Wait a minute - this is not good... :
Install web2py
% Total% Received % Xferd Average Speed TimeTime Time
Current
Dload
Thank you for the replies, guys! I think my abstract/trivial example may
have obfuscated things a bit. I'm trying to use the IS_IN_SET() validator
in combination with a custom validator (yet to be fully written) to make it
so that all the elements of a dropdown menu/select are taken from a
To Massimo,
I think this should be in the book after this
http://web2py.com/books/default/chapter/29/07#One-form-for-multiple-tables
Thanks!
2013/1/29 Angelo Compagnucci angelo.compagnu...@gmail.com
Hi Annet!
This is freaking awesome and it worked like a charm!
I found a way to add
Yeah, already done, it's running...
On Tuesday, January 29, 2013 12:38:49 PM UTC+2, Niphlod wrote:
add
unzip sudo
to the requirement lines.
On Tuesday, January 29, 2013 11:31:14 AM UTC+1, Arnon Marcus wrote:
Wait a minute - this is not good... :
Install web2py
% Total%
Thanks Massimo - I think it would be good to modify
http://www.web2py.com/appliances
to reflect this.
BR,
Seán.
On Monday, January 28, 2013 5:21:30 PM UTC+1, Massimo Di Pierro wrote:
Please use the github issues:
https://github.com/mdipierro/web2py-appliances
On Monday, 28 January 2013
Hi Angelo,
I am glad you solved your problem.
I found a way to add automatically variables to form.vars, hope this helps!
record = db(...).select().first()
for table in [db.table1, db.table2]:
for field in table.fields:
form.vars[field] = record[table][field]
In my table I have a datetime field. In one condition I have to check only
date in that field, so I have tried as below
db(db.table_name.timestamp.date()==datetime.today.date())
but it is throwing error as 'AttributeError: 'Field' object has no
attribute 'date''.
I have tried both 'date()'
I am attempting to write a function that will eventually go in to a
migration script to upload legacy data files. As you can see I
Unable to handle load is too generic for this case. I'd better
temporarily let dal not to catch the error so there's a more precise
description of it.
db(db.table_name.timestamp.date()==datetime.today.date())
Dal supports the year, month and day operators. You could split the query
by the three values using
db((db... .year()==..date().year)(db ... .month()== ...date().month ...)
...
Not sure as I never tried it, but should work.
--
You have found a bug.
The problem is that identical field names are being generated in the form
for both Relation fields:
input autocomplete=off class=string id=Relation_contact
name=_autocomplete_Person_name_aux ...
input autocomplete=off class=string id=Relation_name
I have a time consuming server side calculation, which is triggered by
edit-form submitting and can run up to several minutes (its a sports event
data recalculation if rules are changed). During this time I want to
receive messages via ajax from server and post them in a div for a progress
can't reproduce right now, but usually for this kind of stuff I'd use a
totally external process.
Beware that several minutes standing requests may be killed by your
webserver to free up resources (usually governed by the timeout*
parameters).
If you'd like to have that running inside your
Sorry - yes, I changed the model, replacing the floats with doubles.
On Tuesday, January 29, 2013 4:33:12 AM UTC-5, Alan Etkin wrote:
OK, it seems that GAE isn't fond of floats, but is quite happy with
doubles
Good to know, but, how did you fix GAE?. Have you changed your model? This
Plugin wiki has to die. Almost all of its functionalities are now in web2py
core (auth.wiki). It will be removed from the book.
On Tuesday, 29 January 2013 03:02:11 UTC-6, Paul Whipp wrote:
This is an old thread but there is still the same issue with the
documentation which is very worrying.
Please open a ticket about this.
On Tuesday, 29 January 2013 03:05:17 UTC-6, szimszon wrote:
Some other issue:
db:
import datetime
db.define_table('sometable',
Field('otherid',
compute=lambda r: 'SPPRIME%s' % (
On Tuesday, January 29, 2013 4:40:04 AM UTC-5, AngeloC wrote:
Hi Steve,
Great suggestion, but the problem remains. How can I update a record that
I cannot select?
The SQLFORM.factory way cannot permits to select a record to prepopulate
the forms, so you only can insert, but not update a
Can you submit a patch?
On Tuesday, 29 January 2013 05:36:53 UTC-6, DenesL wrote:
You have found a bug.
The problem is that identical field names are being generated in the form
for both Relation fields:
input autocomplete=off class=string id=Relation_contact
Mind I think it should be possible to do:
auto =
SQLFORM.widgets.autocomplete(request,db.Person,id_field=db.Person.idhttp://db.person.id/
)
db.define_table('Person', Field('name'), format='%(name)s')
db.define_table('Relation', Field('name',db.Person), ('contact',db.Person))
I'll mention it on my Dallas Python mailing list too. Don't know how many
web2py users we have in Texas though.
--
---
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
Thanks Antony,
I think the previous solution is the most simple and clean way to make
multiple updates on Web2py and worked wonderfully. Anyway, thank you for
your intrest!
2013/1/29 Anthony abasta...@gmail.com
On Tuesday, January 29, 2013 4:40:04 AM UTC-5, AngeloC wrote:
Hi Steve,
Great
If you don't want to allow the user to select multiple options, then why is
the field type list:string rather than just string? If you make it just a
string type, then you will be able to apply a list of validators, as below.
Anthony
On Tuesday, January 29, 2013 5:39:59 AM UTC-5, Lamps902
When uploading zip files in a form I get this error
Traceback (most recent call last):
File gluon/main.py, line 503, in wsgibase
File gluon/main.py, line 321, in parse_get_post_vars
File cgi.pyc, line 534, in __init__
File cgi.pyc, line 659, in read_multi
File cgi.pyc, line 534, in __init__
File
And what about .as_dict()?
record = select_something.as_dict()
?
Richard
On Tue, Jan 29, 2013 at 9:28 AM, Angelo Compagnucci
angelo.compagnu...@gmail.com wrote:
Thanks Antony,
I think the previous solution is the most simple and clean way to make
multiple updates on Web2py and worked
http://code.google.com/p/web2py/issues/detail?id=1307
and
http://code.google.com/p/web2py/issues/detail?id=1308
Tnx.
2013. január 29., kedd 15:15:59 UTC+1 időpontban Massimo Di Pierro a
következőt írta:
Please open a ticket about this.
On Tuesday, 29 January 2013 03:05:17 UTC-6, szimszon
I wrote a reply, but pressed replay to author by mistake. Now I do not
know if it was PM or not and message is gone, this interface is confusing...
The thing is, what Niphlod suggested works on localhost, but does not work
on free pythonanywhere account. Server does not return 200OK for any
Hi all, I'm wondering about if .update_or_insert was enhanced or not yet?
Thanks in advance.
Christian.
El jueves, 3 de mayo de 2012 09:46:46 UTC-4, Anthony escribió:
You're manual version updates only two fields, whereas update_or_insert
updates six fields -- maybe that's the difference.
On 29 Jan 2013, at 1:44 AM, Annet anneve...@googlemail.com wrote:
In my application every registered user has a shortname stored in auth_user,
which he can use to reference his home page. For this purpose I have the
following code in 00_db.py:
if request.controller == 'default' and
Hi,
I like to add Graphs with matplotlib directly into my sites. I used a
web2py slice to get an image into a variable:
from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas
from matplotlib.figure import Figure
import cStringIO
def
I guess you can try
{{=IMG(_src=plotimg)}}
or
img src={{=plotimg}} /
--
---
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
On Tuesday, January 29, 2013 10:36:39 AM UTC-5, Richard wrote:
And what about .as_dict()?
record = select_something.as_dict()
Actually, you wouldn't need to use .as_dict() if you already have a Row
object -- you can submit that directly as the record. The problem is that
if the Row object
windows build should be against python 2.7.3
On Tuesday, January 29, 2013 3:52:27 PM UTC+1, select wrote:
When uploading zip files in a form I get this error
Traceback (most recent call last):
File gluon/main.py, line 503, in wsgibase
File gluon/main.py, line 321, in parse_get_post_vars
I tried that but it doesn't show an image it puts the img tag in the html
code and fills the src= with the pinary stuff but no image is displayed
On Tuesday, January 29, 2013 4:53:33 PM UTC+1, rochacbruno wrote:
I guess you can try
{{=IMG(_src=plotimg)}}
or
img src={{=plotimg}} /
Hi,
I am trying to use web2py to manage a database and display the resulting
JSON in AngularJS. To render an angular compatible view I need to pass raw
html in a view (for example the html needs to start with 'html ng-app'
and so forth). Of course I could place the files in the static folder,
Hi everybody, I've a problem and need your help.
I have a view which contains many things including an SQLFORM.factory used
to set the query for a report generation.
The first time I submit the form the report is correctly opened, the second
time the page is just reloaded...how can I fix the
Your problem number 1 is because you are commiting before
p.update_record(). Put your db.commit() after p.update_record() and
see what happens.
Your problem number 2 probably is because your GetProgres() function
should send a GET request. But your controller#2/GetProgress() is
reading more rows
I have a form that is going to hold a number of boolean fields. I want to
change them to buttons instead of checkboxes so I can use the bootstrap
button widgets. How can I chance the boolean widget from a checkbox to a
button and have the value properly put back into the database?
--
---
With trunk, I have tested the behavior of the ~ operator, and doesn't seem
consistent to me:
Here Bruno gives a working example of belongs negation
https://groups.google.com/d/msg/web2py/fCB9a4K9FqU/GBLwfzNnkjMJ
But the book uses this example:
rows = db((~db.person.name=='Alex') |
Sorry, here's the actual error:
db(q).select()
...
OperationalError: near DESC: syntax error
--
---
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
I did some experimenting the problem is putting the image into the return
dict() or into any variable.
I got no clue how to fix it or why that is the problem.
On Tuesday, January 29, 2013 5:07:16 PM UTC+1, BlueShadow wrote:
I tried that but it doesn't show an image it puts the img tag in the
Hello,
I found tooltip (no new line) issue with new bootstrap 2.2.2...
I would have look at the differences between bootstrap-tooltip.js v2.2.1
and bootstrap-tooltip.js v2.2.2, but I can't get a zip on the web of
bootstrap 2.2.1. I try download the github repo and revert to 2.2.1, but I
start
I share Bruno ideas, too.
On Mon, Jan 28, 2013 at 2:41 PM, Bruno Rocha rochacbr...@gmail.com wrote:
I think it is ok to have different dates on each places.
Each country/place can do in preferred data since it is in the same week.
Lets say:
place_here - May 16 (Thu)
place_here - May 17
https://github.com/twitter/bootstrap/blob/v2.2.1/js/bootstrap-tooltip.js ?
On Tuesday, January 29, 2013 5:55:59 PM UTC+1, Richard wrote:
Hello,
I found tooltip (no new line) issue with new bootstrap 2.2.2...
I would have look at the differences between bootstrap-tooltip.js v2.2.1
and
~ is an unary operator and has precedence over binary operators, that's why
the error pops out.
~db.person.name=='Alex' should be db.person.name!='Alex', and ~db.person.
name should be used in orderby=...
I don't like the ~(db.auth_user.id==0). I'm not even sure if it works.
Marin
On Tue, Jan
The thing is, what Niphlod suggested works on localhost, but does not work
on free pythonanywhere account. Server does not return 200OK for any
request while _recalculate function is running. I searched their forums and
indeed threads are disabled on pythonanywhere. So I guess it does
It works:
q = ~(db.auth_user.id == 1)
Query (NOT (auth_user.id = 1))
I don't like that way either, but is the example in the book correct or it
should be fixed?
--
---
You received this message because you are subscribed to the Google Groups
web2py-users group.
To unsubscribe from this
Thanks Niphold,
Think I will need to learn github as well :-)
Richard
On Tue, Jan 29, 2013 at 12:04 PM, Niphlod niph...@gmail.com wrote:
https://github.com/twitter/bootstrap/blob/v2.2.1/js/bootstrap-tooltip.js ?
On Tuesday, January 29, 2013 5:55:59 PM UTC+1, Richard wrote:
Hello,
I
Ok, maybe I misunderstood this. Here is topic on pythonanywhere forum -
https://www.pythonanywhere.com/forums/topic/432/
I will continue trying tomorrow.
--
---
You received this message because you are subscribed to the Google Groups
web2py-users group.
To unsubscribe from this group and
On 29 Jan 2013, at 8:50 AM, Alan Etkin spame...@gmail.com wrote:
With trunk, I have tested the behavior of the ~ operator, and doesn't seem
consistent to me:
Here Bruno gives a working example of belongs negation
https://groups.google.com/d/msg/web2py/fCB9a4K9FqU/GBLwfzNnkjMJ
But the
Damn... A whole day and I still have nothing to show for it...
The problem is complicated, so I've broken-up the script into 6 separate
installation scripts:
1. Yum packages
2. Python
3. uwsgi
4. web2py
5. nginx
6. configurations
My strategy, since I have it on a VM on Hyper-V, is to run each
A similar caveat applies to the use of | or in queries.
Ok, thanks for the tips Marin and Jonathan.
I assume then that the book's example should use parenthesis for negation,
since web2py cannot change the Python operator precedence.
--
---
You received this message because you are
On 29 Jan 2013, at 9:42 AM, Alan Etkin spame...@gmail.com wrote:
A similar caveat applies to the use of | or in queries.
Ok, thanks for the tips Marin and Jonathan.
I assume then that the book's example should use parenthesis for negation,
since web2py cannot change the Python operator
On 29 Jan 2013, at 9:46 AM, Jonathan Lundell jlund...@pobox.com wrote:
On 29 Jan 2013, at 9:42 AM, Alan Etkin spame...@gmail.com wrote:
A similar caveat applies to the use of | or in queries.
Ok, thanks for the tips Marin and Jonathan.
I assume then that the book's example should use
--
---
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...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Thanks, Anthony. I was under the impression that list:string is the
convention if you want the field to render as a selector with SQLFORM().
You're right that it's possible to change the field from list:string to
string and use IS_IN_SET() to maintain the field as a select element.
However, I
Hi, Jim. What about doing the following:
form.elements('input',_id='checkbox_field_n')[0]['_type'] = 'button'
I imagine the value can then be toggled with, for example, javascript's
'onclick' functionality, and stored in the db as usual.
On Tuesday, January 29, 2013 11:46:55 AM UTC-5, Jim S
The research I've done is telling me that IE won't allow you to change the
type of an element. Therefore, I need to generate it as a type=button
from the start. The bootstrap example also shows this as a button
element and not an input. Not sure if that is relevant though.
-Jim
On Tuesday,
Just tried the code I posted above with IE 9, and it did change the
checkbox to a button. Did you give it a shot?
On Tuesday, January 29, 2013 2:00:45 PM UTC-5, Jim S wrote:
The research I've done is telling me that IE won't allow you to change the
type of an element. Therefore, I need to
Damn... A whole day and I still have nothing to show for it...
There's a recipe that seems to solve the yum conflict
http://stackoverflow.com/questions/10624511/upgrade-python-without-breaking-yum
http://toomuchdata.com/2012/06/25/how-to-install-python-2-7-3-on-centos-6-2/
--
---
You
I have to apologize for my stupid question.
Of course web2py *does* deliver raw html. But AngularJS uses the same
brackets convention as web2py - that's what caused the conflict (I should
write a book: 'The Art of Reading Error Messages' ... *facepalm*)
There seems to be a workaround, since
Nope, but will now!
Thanks
-Jim
On Tue, Jan 29, 2013 at 1:15 PM, Lamps902 dheap@gmail.com wrote:
Just tried the code I posted above with IE 9, and it did change the
checkbox to a button. Did you give it a shot?
On Tuesday, January 29, 2013 2:00:45 PM UTC-5, Jim S wrote:
The
It may be if you want to always clean everything in the session (auth info
etc.)
I belive session.clear() is not documented in the book. Would it be
possible to add a general description of what it does and how to use it?
Thanks
--
---
You received this message because you are
On 29 Jan 2013, at 12:28 PM, Alan Etkin spame...@gmail.com wrote:
It may be if you want to always clean everything in the session (auth info
etc.)
I belive session.clear() is not documented in the book. Would it be possible
to add a general description of what it does and how to use it?
You can also just send the each command directly in terminal, once you are
sure the command execute correctly you translate it in bash script. Most of
the time, the command can be transfert in a script directly, sometimes when
there is parameters to pass to a command you need to google a bit to
I do not understand what you are trying to do. If the form is accepted you
should probably reload, not return different data.
On Tuesday, 29 January 2013 10:00:56 UTC-6, Luca Zacchetti wrote:
Hi everybody, I've a problem and need your help.
I have a view which contains many things including
You do not return the image that way. You need two actions, one only
returns plot() (the binary data) and another would be a regular action
which display a link to the other action.
def myimage(): return plot()
def Testing(): return dict() # in view img src={{=URL('myimage')}}/ ...
On
I think the problem may be the session preventing the duplicate submission
of the same form data.
--
---
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
Not to mention is_new() and is_expired()...
They are self-explanatory, but one has to search the api docs or this group
or dir(session) to find them. clear seems to be inherited from dict, but
there's no guarantee of what it does as it could overridden by the Session
class, etc, etc,
The confirmation is handled via js. You need to edit web2py.js.
On Tuesday, 29 January 2013 12:21:12 UTC-6, François Delpierre wrote:
--
---
You received this message because you are subscribed to the Google Groups
web2py-users group.
To unsubscribe from this group and stop receiving
You can also change the delimiters in web2py with:
response.delimiters = ('?','?')
On Tuesday, 29 January 2013 14:10:04 UTC-6, Dirk Krause wrote:
I have to apologize for my stupid question.
Of course web2py *does* deliver raw html. But AngularJS uses the same
brackets convention as
and it works.
links that helped:
http://jsfiddle.net/Bvc62/3/
http://stackoverflow.com/questions/12923521/angular-js-custom-delimiter
This would be your view
!DOCTYPE html
html
head
meta http-equiv=content-type content=text/html; charset=UTF-8
titleAngular demo/title
script
Hi Allen,
Yes the book has the example as written because I am uploading directly to
the database. Otherwise I get an error that store requires a value for
uploadfolder.
Sorry but I've been looking for how t temporarily not let the dal catch the
error. I tried running my app with the -S
I already tried that - breaking it up to 6 parts was the next step...
Copying and pasting the entire thing line by line would be insane...
I f@#n hate linux...
On Tue, Jan 29, 2013 at 12:45 PM, Richard Vézina
ml.richard.vez...@gmail.com wrote:
You can also just send the each command directly
haha!
I can say for others, but I would say we all do that once in a while to
learn/understand/debug...
I found that approach much less cumbersum then create destroy vm clone all
the time for each part of a script.
Anyway, you do the way you want.
Richard
On Tue, Jan 29, 2013 at 4:43 PM,
Just trying to return an excel file on SQLFORM submission
Il giorno martedì 29 gennaio 2013 22:13:18 UTC+1, Massimo Di Pierro ha
scritto:
I do not understand what you are trying to do. If the form is accepted you
should probably reload, not return different data.
On Tuesday, 29 January
Recently I upgraded to 2.32 from an older 1.99 version and have been
running into an odd auth problem. I have 2 copies of an application hosted
on a VM under one instance of web2py using Apache/WSGI. I can log into one
of the apps however if I then try to login to the other copy I instead get
I did not explain well what I meant:
File C:\web2py-1045bab06391\web2py-1045bab06391\gluon\dal.py, line 8258,
in _attempt_upload
raise RuntimeError(Unable to handle upload)
It seems that dal is returning a generic message so my idea was to take out
any exception handling in the dal.py
The proper way is to pass the input data to the another action which
returns the excel file and display a link to that action. You can pass the
data by storing it into a session and retrieving it.
On Tuesday, 29 January 2013 16:06:15 UTC-6, Luca Zacchetti wrote:
Just trying to open the
I'm new to web2py but not to Python or web application frameworks.
I love the dry pythonic nature of web2py. I'm less enamoured by its use of
magic but the convenient REP makes this mostly forgivable. I'm giving
web2py a go on a couple of real projects.
As I use emacs, it looks like it would
Is the PDF version going to get updated occasionally? HTML version
currently @ 4.9, PDF is still @ 4.1...
--
---
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
Please forgive me for not knowing this, but here is what I tried:
$('.web2py_form').elements('input',_id='rebates_tiered')[0]['_type'] =
'button';
But, I get:
TypeError: $(...).elements is not a function
Any clues on what I'm specifying incorrectly?
-Jim
On Tuesday, January 29, 2013 2:14:51
It looks like you might be sort of conflating javascript and python code
there. Before you do anything with javascript, modify the checkbox element
in the [controller_name].py file, as I described above. For example, if you
used SQLFORM() to generate your form from a database table, in your
Replacing the store call with this should avoid the error:
file_id=db.wiki_media.insert(filename=db.wiki_media.filename.store(stream,filename
=a file name, path=file_path)
--
---
You received this message because you are subscribed to the Google Groups
web2py-users group.
To unsubscribe
Yes, I was thinking this was javascript code. Sorry I missed that, it's
been a long day...
On Tue, Jan 29, 2013 at 7:59 PM, Lamps902 dheap@gmail.com wrote:
It looks like you might be sort of conflating javascript and python code
there. Before you do anything with javascript, modify the
Yup, worked just as you stated. Thanks for carrying me along...
-Jim
On Tue, Jan 29, 2013 at 8:02 PM, Jim Steil ato.st...@gmail.com wrote:
Yes, I was thinking this was javascript code. Sorry I missed that, it's
been a long day...
On Tue, Jan 29, 2013 at 7:59 PM, Lamps902
No problem. I think I see where the misunderstanding came from - it's
possible that javascript can't be used to change an element's type in IE,
since that would be done after the element has been rendered. In the python
controller, the element's type is changed before the element is rendered,
Maybe look into plugins:
http://web2py.com/books/default/chapter/29/12#Plugins
On Tuesday, January 29, 2013 6:39:44 PM UTC-5, Paul Whipp wrote:
I'm new to web2py but not to Python or web application frameworks.
I love the dry pythonic nature of web2py. I'm less enamoured by its use of
1 - 100 of 117 matches
Mail list logo