Ok figured out what was causing that - I had one record with '0' for a
sire_id and no dog with id = 0. Fixing that up makes the representation
code below work. Yay! *But*... now the edit drop down list is showing
id's instead of names... scratches head I'm sure that *was* working
before
I
i am trying to use wing but how can i use it on a application that is
deployed on apache
If so, would appreciate any pointers. I'm a beginner with little or no
experience and don't know where to start... :o)
we should have a mobile solution for web2py "out of the box". Would this be
possible?
service like reddit(korean) : http://www.feed9.com/
source : https://github.com/sungchi/feed9
Thank you web2py,
Thank you twitter !
most prominent changes of twitter bootstrap 2.0 :
New 12-column, "responsive grid system"
New table styles with a common base class for improved compatibility
with other tools
New form styles with smarter defaults, requiring less HTML
Icons, graciously provided by Glyphicons
New, smarter navigatio
+1
2012/2/5 Oli :
> we should have a mobile solution for web2py "out of the box". Would this be
> possible?
--
Carlos J. Costa
Cientista da Computação
Esp. Gestão em Telecom
EL MELECH NEEMAN!
אָמֵן
Hello!
What is the best way to transparently convert all variables in
request.post_vars to Python unicode strings?
When I submit string with non-ascii characters using AJAX from browser
to web2py application I receive usual Python 2.6 string (str) in
request.post_vars.foo with submitted string en
On Sun, Feb 5, 2012 at 11:26 AM, Vladimir Rutsky
wrote:
> unicode(request.post_vars.foo, 'utf-8')
>
Use dictionary comprehension, in models 0.py do:
from gluon.storage import Storage
>
> request.post_vars = Storage({key: unicode(value, 'utf-8') for key, value
> in request.post_vars.items()})
>
Perhaps web2py must retrieve the client's charset and convert
accordingly the input, as the framework uses UTF-8 internally. If
web2py expects always UTF-8, this could be reported as an issue. The
server response could also be re-converted for client's compatibility.
On 5 feb, 10:26, Vladimir Ruts
Congratulations. I tried to open the url of the project and it returns
a 404 error.
On 4 feb, 12:54, whowhywhat wrote:
> Dear Web2py community,
> I just finished writing a web2py authentication plugin (custom
> authentication) to authenticate using BrowserID accounts (https://
> browserid.org). B
The web2py book's 13.1.8 section has information to install web2py in
shared hostings with apache and mod_python
On 5 feb, 07:07, Edward Shave wrote:
> If so, would appreciate any pointers. I'm a beginner with little or no
> experience and don't know where to start... :o)
Il 05/02/2012 03:16, DenesL ha scritto:
In the issue report you say:
What steps will reproduce the problem?
1. create a table (for example: db.define.table('mytab',
Field('foo')))
...
IS_IN_DB(db, 'mytab.id', '%(foo)s', multiple=True)(value)
but IS_IN_DB(..., multiple=True) should be u
looks much better than Jquery mobile, and simple to implement.
Thanks for sharing it!
On Fri, Feb 3, 2012 at 2:53 PM, Massimo Di Pierro <
massimo.dipie...@gmail.com> wrote:
> http://www.lungojs.com/
--
Bruno Rocha
[http://rochacbruno.com.br]
Rally Nice.
On Feb 5, 4:58 am, sungchi wrote:
> most prominent changes of twitter bootstrap 2.0 :
>
> New 12-column, "responsive grid system"
> New table styles with a common base class for improved compatibility
> with other tools
> New form styles with smarter defaults, requiring less HTML
> I
You you be able to add a README to the github page with a screenshot
and a link to feed9?
On Feb 5, 4:52 am, sungchi wrote:
> service like reddit(korean) :http://www.feed9.com/
> source :https://github.com/sungchi/feed9
>
> Thank you web2py,
> Thank you twitter !
Il 03/02/2012 11:03, Bruno Rocha ha scritto:
look the code in dal.py referencing check_reserved, you can copy
patterns and dicts from there in to your validator.
http://zerp.ly/rochacbruno
ok thanks again Bruno,
I solved defining this subsequent custom validator with some cut&paste
code fr
Yes. Right now web2py comes with skeleton which provides flexible
layouts. Do people think we need to include something like lungo.js?
And/or replace skeleton with boostrap 2.0?
On Feb 5, 4:46 am, Oli wrote:
> we should have a mobile solution for web2py "out of the box". Would this be
> possible?
How do I get the name of the current Web2Py app, so that my code is
resilient to app-name changes?
Il 04/02/2012 16:30, Massimo Di Pierro ha scritto:
We are working on this and you should expect it as one of the next
web2pu features.
veeery good news :)
thanks!
M.
On 2/5/12 10:06 AM, Sathvik Ponangi wrote:
How do I get the name of the current Web2Py app, so that my code is
resilient to app-name changes?
request.application I think, but its in the docs.
Hello, recently there was some discussion on mongodb intergration effort
... what is the current status? Is there anyone working with web2py and
mongodb? Any experience ?
David
well, same old, same old sorry for the introduction, but I work as
a DBA and query tuning/optimization is in front of my eyes for more
than 8 hours a day ;-)
The first thing you learn in this job is try. The second is try. The
third is try. The fourth is "understand the complexity". The fifth
You could do:
def register_dog():
if request.args(0) == 'edit':
db.dog.sire_id.requires = IS_IN_DB(db(db.dog.id!
=request.args(2)), db.dog, db.dog._format)
form=SQLFORM.grid(db.dog, csv=False, paginate=5,
user_signature=False)
return dict(form=form)
On Feb 5, 4:23 am, Mark Kir
Il 05/02/2012 15:58, Manuele Pesenti ha scritto:
ok thanks again Bruno,
I solved defining this subsequent custom validator with some cut&paste
code from dal.py as suggested:
I beg your pardon too many bugs in my previous code and not enough
test... that's a better solution:
in modules/plugi
I think the default /etc/init.d script for uwsgi-python allows
specifying the "app" name (actually it's the name of the config file)
only for "status", i.e. /etc/init.d/uwsgi-python status appname
However, pids are in /var/run/uwsgi-python/appname/pid.
If I'm not wrong, sighup to the master proce
Hello,
I need to add logging to my application. Out of the box, httpserver.log
supplies 90% of what I want, but I'd love to add another piece or two of
data to it. The data to add is specific to my application and present on
the incoming URLs.
Any advice on where I should start ?
Thanks,
Joh
The logging is done by appfactory, in main.py at around line 700.
appfactory is a wsgi middleware that wraps wsgibase (the main web2py
wsgi app).
Anything passed in the http headers can be logged.
On Feb 5, 10:22 am, JC11 wrote:
> Hello,
>
> I need to add logging to my application. Out of the b
https://browserid.org/ .. seems to be working fine here. It is a
promising project in its infancy. I think they may have some teething
problems.
They won a rookie award at the 2011 black duck open software awards:
http://www.blackducksoftware.com/rookies/
Am sure every good web service has had its
I need to do something like this:
variable_field = 'val1'
x = 2
id = 1
db.define_table('a',
Field('name', type = 'integer'),
Field('val1', type = 'integer'),
Field('val2', type = 'integer')
)
db(db.a.id==id).update(variable_field=x)
this obviously doesnt work.
Any way to do that?
On Sunday, February 5, 2012 2:04:13 PM UTC-5, Serbitar wrote:
>
> I need to do something like this:
>
> variable_field = 'val1'
> x = 2
> id = 1
>
> db.define_table('a',
> Field('name', type = 'integer'),
> Field('val1', type = 'integer'),
> Field('val2', type = 'integer')
> )
Looks cool. Note, it's GPLv3 for app development, and paid commercial for
OEM uses.
On Friday, February 3, 2012 11:53:40 AM UTC-5, Massimo Di Pierro wrote:
>
> http://www.lungojs.com/
As a 'bystander', I personally think that Niphlod's response is of
such good quality that the gist of it deserves inclusion in the book.
Normally I don't need big "messes" but if you show us a sample
dataset (original data on the table) and a "required" resultset (data
in the format you want) at least we can analyze it and tell you the
"ways" of doing that.
Just looking at your request I can tell that if you have gazillions of
A simpler fix for the edit/add functions is to specify a format in the
model:
db.dog.sire_id.requires = IS_EMPTY_OR(IS_IN_DB(db, 'dog.id', '%(name)s'))
(Hmm ... suspect I had that there before at some stage which, but edited
the format away when I was trying to pin down the other problems -
o
GAE gives me fractional sections all the time when i convert to strings (to
say pass as a URL parameter to query for the next section of the results).
turns out that GAE stores fractional sections in the DB, and an accurate
query would include them. i have worked around it satisfactorily for n
+1
On Feb 5, 3:20 pm, Simon Lukell wrote:
> As a 'bystander', I personally think that Niphlod's response is of
> such good quality that the gist of it deserves inclusion in the book.
Hi All,
Is it possible to keep a BIG chunk of information in memory RAM permanently
(without reloading it for each new session/request) so that different
sessions (from X different users using the system at the same time) can
access (R/W) it concurrently ? For the kind of processing that need to b
Redis or MongoDB seems to be what you are looking for!
On Sun, Feb 5, 2012 at 9:58 PM, Sebastian E. Ovide <
sebastian.ov...@gmail.com> wrote:
> Hi All,
>
> Is it possible to keep a BIG chunk of information in memory RAM
> permanently (without reloading it for each new session/request) so that
>
I tried to maintain backward compatibility in the best way possible - by
keeping the old code in place if you don't need higher resolution.
(Note, however, that there's a place in DAL where time() retains
microseconds, and datetime does not, which was probably a bug -- in that
case, I fixed it
Thank you for your advice.
On 2월5일, 오후11시57분, Massimo Di Pierro
wrote:
> You you be able to add a README to the github page with a screenshot
> and a link to feed9?
>
> On Feb 5, 4:52 am, sungchi wrote:
>
>
>
>
>
>
>
> > service like reddit(korean) :http://www.feed9.com/
> > source :https://gith
Hello,
Anyone has some experience installing web2py in arvixe shared hosting?
I created an account but they are not having success to install it.
Thanks
Alex
On Feb 3, 6:07 am, Massimo Di Pierro
wrote:
> OK, let's add a minifier in contrib.
Thanks! :-)
Yes, thanks for that. I managed to run info.py and there was no mention of
mod_python. I couldn't even work out how to copy files to htdocs. Anyway,
have decided to move to webfaction where it seems I will have much more
control and access. I was just hoping someone may have already done it. ;o
Hi,
I have a bit of a problem with my connection string in db.py -
specifically, the database password has a '@' symbol, and so web2py chokes
because it assumes this is the delimiter between password and host.
I had a look at dal.py and I guess the regex needs modifying to take this
case into a
My view did include the default layout, I omit it when I writing this
discussions.
The response.flash can show up when I submit my first form.
But it doesn't work when I submit the second form which used the
widget = SQLFORM.widgets.radio.widget.
On Feb 3, 1:27 am, DenesL wrote:
> Your view does
46 matches
Mail list logo