May I ask: is it very difficult to build a new jquery mobile plugin? Other
problems are solved during a few hours, but there are questions about
jquery mobile since a lot of months. I think many people would like to use
it (me too), but it does not work.
E.g. I have copies some files (all?) from
i think i am asking this properly. if i do
rtn = db(...query stuff...).select()
and then pass it as a parameter to a function like
some_fxn(rtn)
is there a property in this rtn instance to allow me to read and access the
original db instance? i need to run another query in some_fxn off of
you're looking for rtn.db .
PS: you can as well pass db around, keeps the code explicit
e.g.
some_fxn(rtn, db)
On Wednesday, May 1, 2013 9:49:54 AM UTC+2, lucas wrote:
i think i am asking this properly. if i do
rtn = db(...query stuff...).select()
and then pass it as a parameter to a
Replace plugin_jqmobile/layout.html for this :
!DOCTYPE html
html lang={{=T.accepted_language or 'en'}} class=no-js!-- no-js need
it for modernzr --
head
meta charset=utf-8 /
!-- www.phpied.com/conditional-comments-block-downloads/ --
!--[if IE]![endif]--
!-- Always
I am using the routers.domains method to routing the applications to
domains,
I have a problem that I can access to the applications which are not routed
to the assigned domain.
for example
routers = dict(
BASE = dict(
domains = {
'domain1.com' : 'app1',
Can you send me a patch for admin?
On Wednesday, 1 May 2013 03:15:33 UTC-5, toni campins wrote:
Replace plugin_jqmobile/layout.html for this :
!DOCTYPE html
html lang={{=T.accepted_language or 'en'}} class=no-js!-- no-js
need it for modernzr --
head
meta charset=utf-8 /
rtn is a set of rows. There is no exposed api to access the original db
connection since it may or may not exist. The db connection from which the
data was fetched may be closed.
That said rtn[0] is the first row. rtn[0].delete_record is a callable
object and rtn[0].delete_record.db is what
Did you restart your webserver / reload routes?
I use a similar routes.py for multiple domains and it works fine.
Maybe you could try :
routers = dict(
BASE = dict(
domains = {
'www.domain1.com' : 'app1',
'domain1.com' : 'app1',
'www.domain2.com' :
Yeah. I follow the same pattern.
Could you try to browse www.domain1.com/app2 to see if it doesn't direct
to app2? Mine does. hmm
On Wednesday, May 1, 2013 8:48:31 AM UTC-5, Loïc wrote:
Did you restart your webserver / reload routes?
I use a similar routes.py for multiple domains and it
I think I just fall on this one...
Is this issue fixed, because no ticket seems to have been open??
Thanks
Richard
On Mon, Apr 29, 2013 at 5:39 AM, Domagoj Kovač doctorko...@gmail.comwrote:
Thanks!
--
---
You received this message because you are subscribed to the Google Groups
Hi,
I have a DAL query which works OK when selecting integer 'float' fields (eg
4.0, 5.0, 6.0) (I'm using a MySQL database), but does not select rows
containing actual float numbers (eg 6.3).
Here is the code
for table_row in db((db.field_phenotype.field_phenotype_pk == db.
You're right.
On my webserver :
www.domain1.com redirects to app1 == OK
www.domain2.com redirects to app2 == OK
*but*
www.domain1.com/app2 redirects to app2, and I don't understand why...
Le mercredi 1 mai 2013 15:54:08 UTC+2, Kenneth a écrit :
Yeah. I follow the same pattern.
Could you try
I like explicit, so some_fxn(rtn, db)
or even tighter is some_fxn(rtn, db.sometable)
On Wednesday, May 1, 2013 3:49:54 AM UTC-4, lucas wrote:
i think i am asking this properly. if i do
rtn = db(...query stuff...).select()
and then pass it as a parameter to a function like
some_fxn(rtn)
you could use links something like
def get_stuff(user_id):
# fetch the items for that user
# iterate through items, intersperse with BR()
# return the whole mess in a SPAN()
# Caveat: not sure of following syntax and too lazy to look it up in manual
# Just look in the writeup for
The problem is that the Field object or db adapter contains information
about where the file was uploaded (and whether uploadseparate is True).
However, when using SQLFORM.factory to upload, there is no persistent Field
object or db adapter that can be referenced by response.download, so it has
Web2py supports a subset of HTTP status codes as listed here:
http://en.wikipedia.org/wiki/List_of_HTTP_status_codes
The LinkedIn service I am using employs throttling and I'd like to throw a 429
Too Many Requests exception.
Can this status code, along with other missing codes, be added to
I didn't say there were ORM features in the DAL, just that it includes
features that you might otherwise expect to find in an ORM
Well, it seems like a semantic-issue. DAL and ORM are pretty abstract-terms.
Here is how interpret them:
DAL - A way to construct schemas and queries without
Hello Anthony,
It's not my problem actually after more investigation and reading this
thread twice... My case is pretty weird or there is something I don't
understand... But I fall on 404, but files are there correctly named with
the proper read/write permissions... The only thing I made special
:) Thank you for trying, Loic!
Should I just ignore this concern? I am not too concerned about this but I
would like to learn about how to solve this problem.
On Wednesday, May 1, 2013 8:59:41 AM UTC-5, Loïc wrote:
You're right.
On my webserver :
www.domain1.com redirects to app1 == OK
So, if I do understand correctly the Niphold explanation if I want to
search for instance the first_name of the auth_user table that is
referenced from my table I can't just pass the to SQLFORM.grid my_table, I
better pass it a join query where all the represent are replaced with the
really field
I guess you could add 429 to gluon.http definitions in your model and then
use it, but I haven't tried it
Something like thin in your model
from gluon import http
http.defined_status[429] = 'Too Many Request'
And then in your controllers
raise HTTP(429)
Quarta-feira, 1 de Maio de 2013
Watch for the typos in the previous posts I must need more coffee or
something
Quarta-feira, 1 de Maio de 2013 15:13:05 UTC+1, Carl escreveu:
Web2py supports a subset of HTTP status codes as listed here:
http://en.wikipedia.org/wiki/List_of_HTTP_status_codes
The LinkedIn service I am using
thanks Leonel, I'm refactoring server calls at the mo, but I'll try that
straight afterwards.
On 1 May 2013 15:56, Leonel Câmara leonelcam...@gmail.com wrote:
I guess you could add 429 to gluon.http definitions in your model and then
use it, but I haven't tried it
Something like thin in
works sweetly.
from gluon import HTTP
from gluon.http import defined_status
if not(429 in defined_status):
defined_status[429] = 'Too Many Requests'
raise HTTP(429, Too Many Requests)
On Wednesday, 1 May 2013 15:57:36 UTC+1, Carl wrote:
thanks Leonel, I'm refactoring server calls at the
More simply, I think you can also just do this:
raise HTTP('429 Too Many Requests')
Anthony
On Wednesday, May 1, 2013 11:33:14 AM UTC-4, Carl wrote:
works sweetly.
from gluon import HTTP
from gluon.http import defined_status
if not(429 in defined_status):
defined_status[429] = 'Too
ah... the *tyranny of /w*
this works... HTTP('429 Too_Many_Requests')
In glucon/http.py HTTP regex_status isn't friendly to messages with
whitespace (or hyphens)
Thanks for pointing me to this. One line simple line beats 5 simple lines!
:)
On 1 May 2013 16:41, Anthony abasta...@gmail.com
I didn't say there were ORM features in the DAL, just that it includes
features that you might otherwise expect to find in an ORM
Well, it seems like a semantic-issue. DAL and ORM are pretty
abstract-terms.
Here is how interpret them:
DAL - A way to construct schemas and queries
I would like to understand too...
Maybe somebody else has an idea ?
--
---
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
I would like to understand too...
Maybe somebody else has an idea ?
--
---
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
Oops. Actually, I think this should be fixed -- I'll open an issue.
Anthony
On Wednesday, May 1, 2013 12:09:17 PM UTC-4, Carl wrote:
ah... the *tyranny of /w*
this works... HTTP('429 Too_Many_Requests')
In glucon/http.py HTTP regex_status isn't friendly to messages with
whitespace (or
thanks
On 1 May 2013 17:48, Anthony abasta...@gmail.com wrote:
Oops. Actually, I think this should be fixed -- I'll open an issue.
Anthony
On Wednesday, May 1, 2013 12:09:17 PM UTC-4, Carl wrote:
ah... the *tyranny of /w*
this works... HTTP('429 Too_Many_Requests')
In glucon/http.py
You don't get to define terms any way you see fit. DAL and ORM have
specific meanings.
DAL is a TLA (three letter acronym) for Database Abstraction Layer.
ORM is a TLA for Object Relational Mapping.
So, what does a DAL do? Wikipedia tells us that it ... is an application
programming
Hello,
I did some research about SQLFORM.grid() Search Question and I summarize
what I found here :
Search requirements for me to use SQLFROM.grid() in place of Datatables.net
:
1. Need to be able to search the representation for referenced fields *
(Solved)*
2. No database field
Hi Richard,
Thanks for your reply.
The one include in web2py is not ok?
The problem is that it's covering the date field when it pops up.
I find it quite convenient to be able to enter a date without using
the date picker, especially with birth dates.
Furthermore, it's not styled the
Comparing floats for equality is an issue with MySQL. Floats are rarely
equal, since the internal representation can be different than the actual
number. You'd want to use a different data type, or make your comparison a
greater than or less than.
On Wednesday, May 1, 2013 6:59:27 AM UTC-7,
can i use any function to login?
or
how can i login with function?
for ex:
gluon.tools.auth.login(a value from my database)
auth.login(db.auth_user(id)) etc..
1 Mayıs 2013 Çarşamba 01:10:57 UTC+3 tarihinde Giuseppe Marchetti yazdı:
I dont get any error.. i just want to be log in.. i get all
That's an interesting project. Have you taken a look at GIEWIKI? It's
tiddlywiki that runs on Google App Engine and it is amazing.
You can see it running here:
http://giewiki.appspot.com/
It will work with most any tiddlywiki setup. The default of GIEWiki is more
of a blog with comments, but
Hello all, I was wondering how to do promotions for products that have a
time limit to it? An example of this would be Valve's Steam, where each
individual game can have a unique promotion which ends after a certain time
is passed. The promotion can be tied to an individual product, to groups
I am sure this has been brought up before, but, is there any plan to allow
making more self-contained components. Where the model, view, and
controller are under the same directory?
In other words, something similar to Django, where one imports the div
element containing the component, but all
+1 !!
On Wednesday, May 1, 2013 11:37:20 AM UTC-5, Loïc wrote:
I would like to understand too...
Maybe somebody else has an idea ?
--
---
You received this message because you are subscribed to the Google Groups
web2py-users group.
To unsubscribe from this group and stop receiving emails
I'm not sure I follow
let's take an hypothetical do_this component
you can have
controllers/do_this.py
models/do_this.py or models/do_this/whatever.py
views/do_this/index.html views/do_this/anotherindex.html (or .load, or
.json, or .whatisneeded)
and in your view simply calling
+1 . http://dev.mysql.com/doc/refman/5.0/en/problems-with-float.html
On Wednesday, May 1, 2013 8:18:03 PM UTC+2, Derek wrote:
Comparing floats for equality is an issue with MySQL. Floats are rarely
equal, since the internal representation can be different than the actual
number. You'd
- Since the timer is ticking down on the client-side (using a javascript
countdown timer), how will the server know when a promotion has ended so
that it can immediately update the site's html to hide any signs of the
expired promotion? The server will also have to reset to its original
uhm..
2. seems hard but not impossible. However, what do you need specifically ?
instead of *auth_user.first_name=hello* just *First name=hello* or
*whatever
suites me best=Hello*? What if some column names collide ?
3. unless you're referring to custom-coded filters in datatables.net, all
What if you add exclusive_domain=True to the BASE dict? I believe that
prevents creating outgoing URLs like that, but not sure if it affects
incoming requests.
Anthony
On Wednesday, May 1, 2013 12:37:11 PM UTC-4, Loïc wrote:
I would like to understand too...
Maybe somebody else has an idea
PS: having the missing one in gluon/http.py shouldn't be a
performance-penalty.
Send a patch for the one missing but avoid being too much off the
standards (like a 750 Didn't bother to compile it)
--
---
You received this message because you are subscribed to the Google Groups
web2py-users
yep. you would have to fetch those fields for searching through them anyway.
On Wednesday, May 1, 2013 4:54:28 PM UTC+2, Richard wrote:
So, if I do understand correctly the Niphold explanation if I want to
search for instance the first_name of the auth_user table that is
referenced from my
There's more than just one missing --
http://www.iana.org/assignments/http-status-codes/http-status-codes.xml lists
28 4xx codes alone. Perhaps we should add some of them explicitly, but we
should also make it possible to raise other codes.
Anthony
On Wednesday, May 1, 2013 3:34:00 PM UTC-4,
Yep, let me be clearer: +1 on giving the possibility to raise whatever you
may find useful but if gluon/http.py misses some standard ones, we should
include them.
On Wednesday, May 1, 2013 9:53:02 PM UTC+2, Anthony wrote:
There's more than just one missing --
The existing code makes it possible to raise any 3-digit status code.
raise HTTP('xxx Messsage_text')
though, see above post, spaces aren't allowed in Message_text in current
regex.
On Wednesday, 1 May 2013, Anthony wrote:
There's more than just one missing --
This is faster I guest then making a lambda db query each record each
request...
I post an other thread about SQLFORM.grid() and search if you want to
comment...
Thanks
Richard
On Wed, May 1, 2013 at 3:35 PM, Niphlod niph...@gmail.com wrote:
yep. you would have to fetch those fields for
Wasn't know about your explanation for point 3 (contains() manner), so this
one seems to be solved. Will test if we can do, a space that mean b to
make sure it search for a b in association in all the columns though...
About 2, I agree with you it is a bigger challenge. But I think it could
On Wed, May 1, 2013 at 2:10 PM, Annet anneve...@googlemail.com wrote:
Hi Richard,
Thanks for your reply.
The one include in web2py is not ok?
The problem is that it's covering the date field when it pops up.
I find it quite convenient to be able to enter a date without using
the date
If so, can you share the code?
If not, I will put it on my todo list, but there are a lot of things in
front of it.
Thanks,
Cliff Kachinske
--
---
You received this message because you are subscribed to the Google Groups
web2py-users group.
To unsubscribe from this group and stop
I like the latest search in grid/smartgrid a lot. A very nice piece of
work.
I do have a tiny concern about exposing table names to the world at large,
though. Maybe it would be possible to obfuscate the table name by
presenting the plural of the table.
On Wednesday, May 1, 2013 4:23:23
Shouldn't be:
HTTP(750, 'Make my day')
i.e. with the code as int and a description as str?
2013/5/1 Carl Roach m...@carlroach.com
The existing code makes it possible to raise any 3-digit status code.
raise HTTP('xxx Messsage_text')
though, see above post, spaces aren't allowed in
Maybe this is not web2py issue but I'm trying to use thumnail class to
shows the three image blocks but the text in the paragraph inside is
strangely have too much space between the words.
Does anyone know how to adjust it?
h3How can we help you?/h3
ul class=thumbnails
li class=span3
div
Two parameters for supported codes, but check http.py to() code and you'll
see parsing present for the compressed parameter I described.
On 1 May 2013 22:02, Michele Comitini michele.comit...@gmail.com wrote:
Shouldn't be:
HTTP(750, 'Make my day')
i.e. with the code as int and a description
Why not write a driver for SQLA that speaks DAL instead of a sql dialect?
2013/5/1 Derek sp1d...@gmail.com
You don't get to define terms any way you see fit. DAL and ORM have
specific meanings.
DAL is a TLA (three letter acronym) for Database Abstraction Layer.
ORM is a TLA for Object
hi
i was testing solr and whoosh
now i'm using whoosh because it is python based and i can easily port my
application (no need to intall java, tomcat etc)
newer had any real problems
most of the time i spend figuring out how to use stemmer/lematization (not
for english), but this is not part
you are right! that's horrible
I would put a new parameter
HTTP(status, body='', status_msg='')
inside the __init__:
if status_msg:
defined_status[status] = status_msg
2013/5/1 Carl Roach m...@carlroach.com
Two parameters for supported codes, but check http.py to() code and you'll
see
I started doing this stuff hand hacking SELECT, INSERT, DELETE and UPDATE
statements and feeding them into MySQL via PHP. It was tedious, boring and
error prone.
This is probably not a typical background, but it is the one I have.
Given my experience, the Web2py DAL feels great. The whole
I created a decorator to allow binding a function to a Table instance.
IMHO, this helps organizing models, creating something similar to
Django's managers.
To an example, see: https://gist.github.com/viniciusban/5497532
To get an scaffolding application with organized model files and this
I've got an app from before 2.0 with wizard-generated code in multiple
views that looks similar to this.
{{=form}}
{{for t,f in db.t_sys_config._referenced_by:}}{{if not
t[-8:]=='_archive':}}[{{=A(t[2:],_href=URL('%s_select'%t[2:],args=(f,form.record.id)))}}]{{pass}}{{pass}}
Under
Is this different from using Field.Method:
http://web2py.com/books/default/chapter/29/06#New-style-virtual-fields
Anthony
On Wednesday, May 1, 2013 5:34:48 PM UTC-4, viniciusban wrote:
I created a decorator to allow binding a function to a Table instance.
IMHO, this helps organizing
HTTP(750, 'Make my day')
No, the second argument is the response body, not the status code
description. Currently, there is no way to specify a separate text
description for a numeric status code (though, as shown in other examples,
you can have a string status that includes both the code
I can't seem to get past the cross domain receiver page with web2py app
using Janrain setup as per latest template app and ie10. It seems to work
fine with Chrome, Firefox and ie9. Does this work for everybody else? -
there seem to be older issues with Janrain and ie and some tweaks to older
Feel free to comment:
https://code.google.com/p/web2py/issues/detail?id=1469start=100
On Wednesday, May 1, 2013 5:21:05 PM UTC-4, Michele Comitini wrote:
you are right! that's horrible
I would put a new parameter
HTTP(status, body='', status_msg='')
inside the __init__:
if status_msg:
I am not re-defining terms - I understand them correctly.
An ORM is a Mapping between Objects, and Relations.
Here are the parts of the wikipedia pages, that are actually-relevant* * to
this discussion (important parts in bold-text):
*ORM:*
...Data management
Yes, completely different.
Virtual fields/methods are defined at row level and receives row as
argument. @make_member_of() defines a method at table level.
For references, see this slide:
http://effectivedjango.com/slides/tutorial/models.html#5
And this documentation:
request.requires_https()
Newbie question: Where to you actually insert this?
--
---
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
Thank you as always, Anthony. Working great. ;)
On Wed, May 1, 2013 at 2:29 PM, Anthony abasta...@gmail.com wrote:
What if you add exclusive_domain=True to the BASE dict? I believe that
prevents creating outgoing URLs like that, but not sure if it affects
incoming requests.
Anthony
On
I am not as learned in these things but it seems to me that a DAL is a
small black box, whilst an ORM is a larger black box.
If I look inside the DAL 'black box', I can just about figure out what's
going on. If I look inside an ORM black box, it is already too complex
(for me).
If we add
agreed, and that is what i wound up doing. thanx. lucas
--
---
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
Based on this documentation
The request.env.http_* variables are parsed from the request HTTP header.
in http://web2py.com/books/default/chapter/29/04#request
I use request.env.http_mykey to get a variable in header. It works in my
local. But request.env.http_mykey returns None in server. We
The first thing to notice here, is that an ORM object-attribute can
contain NON-SCALAR values - meaning, a link to a list of other objects.
There is no feature in web2py that generates such an object.
The second thing to notice here, is that the attributes of an ORM object
usually
Well, it seems like a semantic-issue. DAL and ORM are pretty abstract-terms.
Here is how interpret them:
DAL - A way to construct schemas and queries without writing SQL or DBAPI
calls.
ORM - A way to construct domain-models using a DAL in a statefull manner.
I don't think you are
Are there any advantages on one or another or are they basically the same
thing?
I'm using psycopg2 atm.
--
[]'s
Marco Tulio
--
---
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,
Comparative::
http://blog.natesilva.com/post/250572698/python-postgresql-interfaces-pg8000-vs-psycopg2
Learn more about
http://wiki.python.org/moin/PostgreSQL
Ovidio Marinho Falcao Neto
Web Developer
ovidio...@gmail.com
83 8826 9088 -
On Wednesday, May 1, 2013 4:39:49 PM UTC-7, Anthony wrote:
The first thing to notice here, is that an ORM object-attribute can
contain NON-SCALAR values - meaning, a link to a list of other objects.
There is no feature in web2py that generates such an object.
The second thing to notice
First link (the comparison), was written on May 20 2008 (5 years ago), so I
believe a few things have changed from that point to now.
Second link does not provide a comparison that could help. Although it's
interesting in itselft.
Thanks anyway for your time and help.
Cheers,
Marco Tulio
I'm trying to execute web2py with this command:
$ python web2py.py -S bla/default/my
If I run this command before executing the app via browser, I receive
this following output: http://pastebin.com/ZC1DDEqK
I get same result when I remove databases folder. So, the problem is
the absense of
So, when I say the DAL implements features that might otherwise be found
in a typical ORM, I am not saying the DAL implements an ORM design pattern,
just that it replicates functionality for which you might otherwise use an
ORM.
No, it does not do that. It implements very different
Although ORM's may do that, such a feature is not unique to the ORM
pattern. In the web2py DAL, for example, in a Row object with a reference
to another table, the reference field is actually a DAL.Reference object,
not a scalar value (it includes the scalar value but also allows access
If you specify a controller, it will automatically execute the models, even
if you don't include -M (assuming if you want to be in the environment of
the controller, you want the controller's usual environment, which includes
the models).
Anthony
On Wednesday, May 1, 2013 9:58:55 PM UTC-4,
Oh, right. Cool.
On Wednesday, May 1, 2013 6:13:17 PM UTC-4, viniciusban wrote:
Yes, completely different.
Virtual fields/methods are defined at row level and receives row as
argument. @make_member_of() defines a method at table level.
For references, see this slide:
Even my contoller doesn't need a model?
Is it documented?
What about the inability to create databases folder running Web2py shell?
On Wed, May 1, 2013 at 11:29 PM, Anthony abasta...@gmail.com wrote:
If you specify a controller, it will automatically execute the models, even
if you don't
Since it does a redirect if not over HTTPS, probably early in your first
model file makes the most sense.
Anthony
On Wednesday, May 1, 2013 6:22:15 PM UTC-4, smaddox wrote:
request.requires_https()
Newbie question: Where to you actually insert this?
--
---
You received this
On Wednesday, May 1, 2013 10:36:54 PM UTC-4, viniciusban wrote:
Even my contoller doesn't need a model?
But when you make an HTTP request to a controller, web2py always runs the
(non-conditional) models, so it does the same when you request a shell in
the controller environment. The idea of
89 matches
Mail list logo