[web2py] Re: Redactor, request.post_vars, $_FILES['file']

2013-07-13 Thread Najtsirk
*coresponds On Sunday, 14 July 2013 02:06:16 UTC+2, Najtsirk wrote: > > Hi, > > I am struggling with implementation of image upload in Redactor wysiwyg. > > Does $FILES['file']['type'] corsponfs to request.post_vars.file.type ? > > Thanks for the anwser. > > Najtsirk > -- --- You received this

[web2py] 'NoneType' object is not iterable when viewing table

2013-07-13 Thread LMK
Hi Everybody, When I am viewing the table, "'NoneType' object is not iterable" occured. But, I am able to insert from admin page. General info: URL http://127.0.0.1:8000/mstureg/appadmin/select/db?query=db.cars.id%3E0 web2py™Version 2.5.1-stable+timestamp.2013.06.06.15.39.19PythonPython 2.7.3 T

[web2py] Redactor, request.post_vars, $_FILES['file']

2013-07-13 Thread Najtsirk
Hi, I am struggling with implementation of image upload in Redactor wysiwyg. Does $FILES['file']['type'] corsponfs to request.post_vars.file.type ? Thanks for the anwser. Najtsirk -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsu

Re: [web2py] Re: web2py EuroPython 2013 Talk

2013-07-13 Thread Massimo Di Pierro
The difference between the two is that in former case the output returned by the DB is normalized (each record is a Row object) while in the executesql case the output is not normalized (each record is a tuple containing data in the database specific representation). It does take time to loops

Re: [web2py] Re: Question about requires=IS_IN_DB(db, 'table.id', '%(nombre)s')

2013-07-13 Thread Eduardo Cruz
Thanks! On 13 July 2013 19:33, Anthony wrote: > requires=IS_EMPTY_OR(IS_IN_DB(db, 'area.id', '%(nombre)s')) > > > On Saturday, July 13, 2013 6:08:26 PM UTC-4, Eduardo Cruz wrote: >> >> is there a way to have something like << requires=IS_IN_DB(db, 'area.id', >> '%(nombre)s') >> but that the fi

[web2py] Re: Question about requires=IS_IN_DB(db, 'table.id', '%(nombre)s')

2013-07-13 Thread Anthony
requires=IS_EMPTY_OR(IS_IN_DB(db, 'area.id', '%(nombre)s')) On Saturday, July 13, 2013 6:08:26 PM UTC-4, Eduardo Cruz wrote: > > is there a way to have something like << requires=IS_IN_DB(db, 'area.id', > '%(nombre)s') >> but that the field is not actually required? I want > SQLFORM to make a

[web2py] Re: Changing SQLFORM.grid submit label from python without javascript?

2013-07-13 Thread Gergely Orosz
Hi step, You can do the following in your controller after defined your grid x = SQLFORM.grid() x.element(_type='submit')['_value'] = T("something") It will set all submit buttons labes as something in the grid 2013. július 12., péntek 16:14:24 UTC+2 időpontban step a következőt írta: > > How c

[web2py] Question about requires=IS_IN_DB(db, 'table.id', '%(nombre)s')

2013-07-13 Thread Eduardo Cruz
is there a way to have something like << requires=IS_IN_DB(db, 'area.id', '%(nombre)s') >> but that the field is not actually required? I want SQLFORM to make a html select with that field but I want to have the option to just not select any value. -- --- You received this message because y

Re: [web2py] Re: web2py EuroPython 2013 Talk

2013-07-13 Thread Michele Comitini
I don't care about ORM performance which is worse both in term of bare performance and in development speed, but using large databases and doing profiling I find that most of the time that is "spent on DB IO" is ispent inside python code unless executesql is used. There is still a lot of room for

[web2py] Re: Session Issues seen when users log into Web2py with an Andriod App

2013-07-13 Thread Christian Foster Howes
massimo's statement is a good starting point. for debugging i highly recommend getting charles http proxy: http://www.charlesproxy.com/ it's my best friend in debugging network calls from mobile apps! once you have some details about the networks calls and cookies etc we should be able to hel

Re: [web2py] Re: Is the "mobile" version of the admin interface not working for you?

2013-07-13 Thread Jason (spot) Brower
Thanks Marin you did a great job On Jul 13, 2013 9:01 PM, "Marin Pranjić" wrote: > There is a patch pending: > https://github.com/web2py/web2py/pull/132 > > jQuery UI is already fixed in trunk > > > Marin > > > On Sat, Jul 13, 2013 at 7:17 PM, Jason (spot) Brower > wrote: > >> Yeah, I have one o

Re: [web2py] Re: Is the "mobile" version of the admin interface not working for you?

2013-07-13 Thread Marin Pranjić
There is a patch pending: https://github.com/web2py/web2py/pull/132 jQuery UI is already fixed in trunk Marin On Sat, Jul 13, 2013 at 7:17 PM, Jason (spot) Brower wrote: > Yeah, I have one of my employees working on it. Hopefully it will be fixed > soon as I like using it. Jqueryui is also n

[web2py] Field.Virtual does not show up in db.table.fields

2013-07-13 Thread Woody
I'm using version 2.5.1 stable and I've created a virtual field as part of a table definition, like this: db_mydb.define_table('my_table', Field('ROWID', 'id'), Field('test_field1', 'string', required=True), Field('test_field2', 'string', required=F

Re: [web2py] Re: Why not create Web2Py Forum?

2013-07-13 Thread Jason (spot) Brower
Personally, I would like to see more than a book in the book. Ways to post comments and cross link between items. Ability to create videos linking to various tasks. Downloading the source code in segments. (copy pasting is nasty right now.) I would be happy to make videos too. :) BR, Jason On Sa

Re: [web2py] Re: Is the "mobile" version of the admin interface not working for you?

2013-07-13 Thread Jason (spot) Brower
Yeah, I have one of my employees working on it. Hopefully it will be fixed soon as I like using it. Jqueryui is also not working. BR, Jason On Sat, Jul 13, 2013 at 12:39 AM, Stephan Holtmeier < stephan.holtme...@gmail.com> wrote: > Same for me! > > > Am Mittwoch, 26. Juni 2013 21:35:05 UTC+2 s

[web2py] Re: Why not create Web2Py Forum?

2013-07-13 Thread Massimo Di Pierro
I agree. Google group + web2pyslices have served us well. On Saturday, 13 July 2013 08:19:56 UTC-5, Anthony wrote: > > I think Google Groups already does most of that, no? If you want more > tags, we can always add them. There's also web2pyslices.com, which allows > you to ask questions, and of

[web2py] Re: changing from python the href value of SQLFORM.grid's back icon button?

2013-07-13 Thread Anthony
On Saturday, July 13, 2013 5:47:32 AM UTC-4, step wrote: > Incidentally, Anthony why did you use request.args[-3] instead of > request.args[0]? What's the reasoning behind the negative index idiom that > I see in use throughout the gluon files? > It is possible that links to an action that retu

[web2py] Re: Why not create Web2Py Forum?

2013-07-13 Thread Anthony
I think Google Groups already does most of that, no? If you want more tags, we can always add them. There's also web2pyslices.com, which allows you to ask questions, and of course, Stack Overflow. One thing I like about Google Groups is that it is used by a lot of open source projects, so you c

[web2py] London Meetup

2013-07-13 Thread Massimo DiPierro
Is there anybody in London willing to give a talk on web2py at a Python meetup? Massimo -- --- 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...

[web2py] Why not create Web2Py Forum?

2013-07-13 Thread shapovalovdenis
Hi! Searching this group and google showed that currently there is likely to be no forum for asking user question on Web2Py. Is there any reason? Or just no demand? I think that idea with forum is nice, because there can be categories for questions, i.e. DAL, Views, etc and some FAQs (i.e. on

[web2py] Re: changing from python the href value of SQLFORM.grid's back icon button?

2013-07-13 Thread step
Incidentally, Anthony why did you use request.args[-3] instead of request.args[0]? What's the reasoning behind the negative index idiom that I see in use throughout the gluon files? -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsu

[web2py] Re: changing from python the href value of SQLFORM.grid's back icon button?

2013-07-13 Thread step
Yes, thank you, this did it for me if request.args[0] in ('view','edit','new'): grid.element('[title='+T('Back')+']')['_href'] = URL('') I didn't need to use "parent" because in my case grid.showbuttontext == False On Friday, July 12, 2013 6:53:13 PM UTC+2, Anthony wrote: > > Maybe somethin