Would the test include a test of the Wizard's ability to implement this?
The error first surfaced there.
--
Luc.
On Friday, 30 November 2012 15:15:39 UTC, Richard wrote:
>
> Ask again when you are ready I have little app dedicated to check for this
> issue.
>
> Richard
>
> On Fri, Nov 30, 201
So I'm designing the world's greatest user interface and I happened on the
idea of making my numerous SQLFORMs easier to navigate by using jQuery UI
tabs and the "load ajax" feature.
Conceptually, what I want to do should be simple. Load the form using
=LOAD, but only when the tab is clicked o
load calls web2py_component(), that is defined in web2py_ajax.js . Look at
that if you're looking to an integration with your code.
On Saturday, December 1, 2012 10:45:49 AM UTC+1, Joe Barnhart wrote:
>
> So I'm designing the world's greatest user interface and I happened on the
> idea of making
I ended up putting them in separate divs and hiding the entire div. Works
like a charm!
Thanks guys
On Thursday, November 29, 2012 4:44:50 PM UTC, Anthony wrote:
>
> The easiest way is probably via a custom form:
> http://web2py.com/books/default/chapter/29/07#Custom-forms.
>
> Another option --
look at the first line of applications/admin/models/0.py :P
On Saturday, December 1, 2012 1:28:52 AM UTC+1, Luca wrote:
>
> I am developing an app, and I find it annoying that I get so many
> "communication error" when I try to save after working on the code for some
> length of time.
> Is there
Hmmm that's one option, but here's the problem.
Basically, I want users to sign up very easily. So I'm just using web2py's
default auth for that.
Then, I'd like them to pick if they are tutors/students or both. There is
additional information they'd have to input in some forms for both roles.
Whi
Hello web2py users,
I am in the process of completing the "edit profile" option for the web app
members and I am experiencing a particular problem that is causing me a
headache !
in the profile controller, I am using the following function to update a
user's profile :
def editprofile():
t
The LOAD helper simply generates HTML like the following:
loading...
So, a div with a particular id is created, and the web2py_component()
Javascript function (defined in /static/js/web2py.js) is called with the id
of that d
I found this:
https://developers.google.com/appengine/docs/python/datastore/overview#Cross_Group_Transactions
"For example, to increment a counter field in an object, you need to read
the value of the counter, calculate the new value, and then store it back.
Without a transaction, it is possible
i'm interested in allowing users to upload multiple profile pictures
stored as blobs. Obviously I need an intermediate table, images, to
store the images but I'm unclear how to link it to the users table
following
http://stackoverflow.com/questions/6334360/web2py-how-should-i-display-an-uploaded-i
Put everyone in the auth_user table and use groups. That could save you
heaps of time down the line. Otherwise I can imagine you'll start
reinventing what's already available to you in web2py. Use the framework
and the force will be with you!
If you need to keep lots of different info depend
You cannot do:
open(...,'wb').write(form.vars.myfile.file.read())
because this read the entire file in memory before writing it. You need to
use
http://docs.python.org/2/library/shutil.html
and do
shutil.copyfileobj(form.vars.myfile.file, open(...,'wb'))
Massimo
On Friday, 30 November 2012 1
Did you restart web2py/web server?
On Friday, 30 November 2012 15:07:26 UTC-6, Maggs wrote:
>
> Hm, ok, that makes sense. However I have changed the name of the module
> within my app and restart web2py but I'm still getting the same error.
> Now the case is:
> site-packages/mymodule/a.py
> site
I will look into this shortly anyway... having a picture in the auth_user
table is a vulnerability. This is because the upload entry may appear upon
registration allowing un-registered users to uploading large files.
On Saturday, 1 December 2012 08:59:21 UTC-6, Don_X wrote:
>
> Hello web2py user
Hello everybody,
I'm struggling for a while with a problem.
I have a page with two components. Each component contains a form.
I embedded both the components with LOAD. Unfortunately when I submit one
of the two forms, all the values are deleted and apparently there is no
submission. If then I sub
thank you for the response Massimo,
I do agree with your thoughts regarding the vulnerability exposed upon a
new registration ! that can easily be arranged by adding an additional
table to manage all users profile pics ! ... that way, a user can only
upload his avatar ( or picture ) only when the
Do the two components point to the same action, or do they contain forms
with same formname? Either case that would not work because multiple forms
in the same page must have different formnames?
On Saturday, 1 December 2012 13:32:48 UTC-6, David Sorrentino wrote:
>
> Hello everybody,
>
> I'm s
Hi,
I also removed "db.table.column.readable = False" to enable the column to
be displayed in the smartgrid.
However, when searching the linked column for a value in the smartgrid, an
error is encountered :
invalid literal for int() with base 10: 'JHB'
In this case, JHB was the value I search
this seems to me like a bug in polymodel on GAE. my guess is that the
proper implementation would be to have 2 tables, location_outdoor and
location_indoor in the GAE database. does this seem correct to you?
i can't guarantee my speed right now...but i can look into the DAL and see
if i can f
Probably not but I am not sure I understand the problem. Can you explain
step by step how to reproduce this?
On Saturday, 1 December 2012 16:07:57 UTC-6, Rakesh Singh wrote:
>
> Hi,
>
> I also removed "db.table.column.readable = False" to enable the column to
> be displayed in the smartgrid.
> H
Strange this is ok dependent.
On Tuesday, 27 November 2012 14:39:30 UTC-6, omicron wrote:
>
> And with CentOS 6.3 and his Python 2.6, this problem doesn't exist !!!
>
> Le jeudi 15 novembre 2012 12:24:16 UTC+1, omicron a écrit :
>>
>> I use an Ubuntu 12.04LTS, python 2.7 and web2py 2.2.1
>> lpod i
http://www.web2py.com/books/default/chapter/29/13#Caching-with-Redis
"_cache" missing in the module name:
from gluon.contrib.redis*_cache* import RedisCache
cache.redis = RedisCache('localhost:6379',db=None, debug=True)
Best regards
--
Just curious... did you end up using a completely custom form or were you
able to manipulate the SQLFORM inside the controller?
On Saturday, December 1, 2012 7:03:33 AM UTC-6, Daniele wrote:
>
> I ended up putting them in separate divs and hiding the entire div. Works
> like a charm!
> Thanks gu
I am trying to get the basic cron job to run on a new web2py application
but amnot having any success.
I read about starting web2py with the -Y option
I am running on ubuntu and using the native web2py server
I have a db.commit() in the controller function
the function runs perfectly when i run th
You are right. As usual. Thanks.
>
>>
>
--
I am trying these:
{{=(row.body1)+ \n\n +(row.body2)}}
{{=(row.body1)+ ' \n\n '+(row.body2)}}
{{=(row.body1)+ [[NEWLINE]] +(row.body2)}}
{{=(row.body1)+ '[[NEWLINE]]' +(row.body2)}}
and they are not working.
What am i missing?
Regards,
Ashraf
--
On Saturday, 1 December 2012 21:43:22 UTC-6, apps in tables wrote:
>
>
> I am trying these:
>
> {{=(row.body1)+ \n\n +(row.body2)}}
>
> {{=(row.body1)+ ' \n\n '+(row.body2)}}
>
> {{=(row.body1)+ [[NEWLINE]] +(row.body2)}}
>
> {{=(row.body1)+ '[[NEWLINE]]' +(row.body2)}}
I'm editing my data model in db.py and trying to add a field to a table of
accounts that groups them using a foreign key.
Field('group', 'reference groups', ondelete='CASCADE',
required=True, default=db(db.groups).select().first().id),
causes a ticket that reads: and
You are missing that you need to generate html and {{=anything}}
always escape anything.
You want:
{{=(row.body1)}}{{=(row.body2)}}
or
{{=CAT(row.body1,BR(),row.body2)}}
or
{{=CAT(row.body1,XML(''),row.body2)}}
or
{{=XML(row.body1+''+row.body2, sanitize=True)}}
The latter is not quite
Interesting development. This seems to address the common criticisms of
web2py, which aren't an issue for me but surely deter others.
On Friday, November 30, 2012 3:51:20 AM UTC+11, LightDot wrote:
>
> Some valid and interesting questions can get unanswered, slip below
> the radar, that's boun
I've found a strange behavior in 1.99.7 (which is the same in 2.2.1 except
for a code cleanup issue). This is either a bug or I'm confused (don't
rule that out). This is a long message -- I thought it was important to
include a detailed demo of the phenomenon.
The idea of generic views is won
try
DAL(..., check_reserved=['all'])
You cannot name a field "group" it is a SQL reserved keyword.
Bruno Rocha
http://rochacbruno.com.br
mobile
Em 02/12/2012 02:46, "David Tucker" escreveu:
> I'm editing my data model in db.py and trying to add a field to a table of
> accounts that groups the
That name is probably a reserved word in the database engine you're using.
Every DBMS has a list of words that are off-limits for use as object
(table, field, index, function etc.) names. GROUP is a pretty common one
because of the GROUP BY operation. Take a look at gluon /
reserved_sql_keyw
33 matches
Mail list logo