Interesting, thank you. I will add autoencode parameters to
the grid construnctor.
I saw that setting the parameter to true will enable the encoding
for all columns of the grid. Maybe, if we want to have some column
with html data,
it's better to encode the data in w2p?
Massimo, you know an easy w
I would like to add a list of web2py hosting providers that people can
contribute to. Wiki doesn't seem ready (see above) - any other
options?
Richard
On Mar 25, 11:54 am, Richard wrote:
> I tried using the wiki and have some feedback:
>
> How do I create a new page? The front page suggests goi
You need a left outer join. Here are a couple of examples that I think
should work (caveat: I didn't test them):
#way1
qry1=((db.t2.f22==db.t1.id) && (db.t1.f12==10))
rows = db(qry1).select(db.t2.ALL)
#way2
qry1=(db.t1.f12==10)
leftjoin=db.t2.on(db.t2.f22==db.t1.id)
rows=db(qry1).select(db.t2.ALL
Rewrite IS_IN_SET, everything is ok. But I don't know how to submit a
branch .
class IS_IN_SET(Validator):
def __init__(
self,
theset,
labels=None,
error_message='value not allowed',
multiple=False,
zero='',
sort=False,
):
thanks for your kindly help.
On 3月30日, 上午1时47分, Yarko Tymciurak
wrote:
> On Mar 29, 10:54 am, Yarko Tymciurak
> wrote:
>
> > anyway, I am sure this is about encoding to unicode - someone who has
> > done this will hopefully add comments.
>
> For example, looking
> athttp://docs.python.org/lib
On Mar 29, 7:59 pm, Michael Toomim wrote:
> Yes, this is on linux! Do you recommend upgrading and trying again?
>
> mturk doesn't affect anything, I am just serving webpages that appear
> in iframes on the mturk website. From our perspective, I'm serving
> webpages.
>
> Do you have a method of l
Thank you all. I can access the website now!
On Mar 29, 5:39 pm, mdipierro wrote:
> I think I unblocked it. Please check.
>
> On Mar 29, 5:55 pm, Feng wrote:
>
> > oh, my IP now is 98.111.83.0
> > so far, I still can't reachwww.web2py.com
>
> > Does anybody know how I can access the website?
>
>
Yes, this is on linux! Do you recommend upgrading and trying again?
mturk doesn't affect anything, I am just serving webpages that appear
in iframes on the mturk website. From our perspective, I'm serving
webpages.
Do you have a method of logging how much time it takes to serve a page
with rock
I think I unblocked it. Please check.
On Mar 29, 5:55 pm, Feng wrote:
> oh, my IP now is 98.111.83.0
> so far, I still can't reachwww.web2py.com
>
> Does anybody know how I can access the website?
>
> Thanks,
> - Feng
>
> On Mar 29, 2:22 pm, Thadeus Burgess wrote:
>
> > It works for me.
>
> > -
Massimo has an (overly) aggressive intrusion detection system. Try
using a public proxy to see if you can reach it. If it still doesn't
work then it may be on your end.
On Mar 29, 5:55 pm, Feng wrote:
> oh, my IP now is 98.111.83.0
> so far, I still can't reachwww.web2py.com
>
> Does anybody kno
oh, my IP now is 98.111.83.0
so far, I still can't reach www.web2py.com
Does anybody know how I can access the website?
Thanks,
- Feng
On Mar 29, 2:22 pm, Thadeus Burgess wrote:
> It works for me.
>
> -Thadeus
>
> On Mon, Mar 29, 2010 at 2:03 PM, Feng wrote:
> > Hi, I started to learn and use
add the idea here so people can vote on its importance:
http://web2py.uservoice.com/forums/42577-general
On Mar 30, 9:40 am, Chris wrote:
> It would be great if this could fixed or an added feature. It's how a
> lot of sites function.
>
> On Mar 29, 3:43 pm, Thadeus Burgess wrote:
>
> > Now th
Try this:
animals = request.vars.animals
if not isinstance(animals, list):
animals = [animals]
res = db(db.table.field.belongs(animals)).select(db.table.ALL)
On Mar 29, 10:59 pm, pacopyc wrote:
> With this code works, but I don't like this:
>
> if type(animals) == str:
> res = db(db.tabl
would be good not to have a catch all except too, which can mask other
errors.
On Mar 29, 8:29 pm, "hamdy.a.farag" wrote:
> Hi
>
> in the appliacnce 'appliances'
>
> http://web2py.com/appliances/default/show/4
>
> there's a typo in appadmin.py line 125
>
> except: reponse.flash='unable to parse
It would be great if this could fixed or an added feature. It's how a
lot of sites function.
On Mar 29, 3:43 pm, Thadeus Burgess wrote:
> Now that you mention this, this is an issue. My google analytics on my
> blog I have noticed lots of pages being request down the rabbit hole,
> since I have t
It works for me.
-Thadeus
On Mon, Mar 29, 2010 at 2:03 PM, Feng wrote:
> Hi, I started to learn and use web2py recently. It's a great web
> development framework, simple and easy to start.
>
> Though for me, starting from yesterday, web2py.com seems to be down on
> me.
>
> I read some past a
Hi, I started to learn and use web2py recently. It's a great web
development framework, simple and easy to start.
Though for me, starting from yesterday, web2py.com seems to be down on
me.
I read some past articles about filtering. So is it the site down or
my ip is being blocked?
Thanks!
Feng
Now that you mention this, this is an issue. My google analytics on my
blog I have noticed lots of pages being request down the rabbit hole,
since I have the error redirecting.
Except for overriding the template in routes, not sure how to make it
look the same as the site.
-Thadeus
On Mon, M
Hi,
Is there a way to override the template used by the error pages so
that they match my site by extending the base template? I tried to use
the routes_onerror in routes.py to redirect on error, however, this
removes the proper status codes (400, 404 etc.) which the site should
return.
Chris
--
On 3/29/2010 1:39 PM, Michael Toomim wrote:
I was having slowness problems with cherrypy too! That's why I
switched to rocket. So perhaps it's something common to cherrypy and
rocket, or perhaps they are both slow in their own ways?
This is using web2py from march 16th, so it's not the latest
I was having slowness problems with cherrypy too! That's why I
switched to rocket. So perhaps it's something common to cherrypy and
rocket, or perhaps they are both slow in their own ways?
This is using web2py from march 16th, so it's not the latest rocket.
Do you think something important chang
I don't, but in any case its still a nice bargaining chip for a company iphone.
-Thadeus
On Mon, Mar 29, 2010 at 12:17 PM, Yarko Tymciurak
wrote:
>
> You get error tickets? Really?! ... ;-)
>
> But, actually - it would be nice to get private tweets from sites you
> manage w/ links you
On Mar 29, 1:00 pm, Thadeus Burgess wrote:
> Remotely administer error tickets from your mobile phone!
You get error tickets? Really?! ... ;-)
But, actually - it would be nice to get private tweets from sites you
manage w/ links you could follow remotely if you wanted
>
> -Thadeus
>
> On
Alternatively if this is just a script (like cron) or a simple program
and you do not mind loading the entire web2py environment
python web2py.py -S welcome -M -R /path/to/my/script.py
-S denotes the app name, -M denotes execute models and -R is the path
to the script to execute in the environmen
They should both operate the same in any case.
-Thadeus
On Mon, Mar 29, 2010 at 12:00 PM, Thadeus Burgess wrote:
> I almost want to say that as long as it is still a python object it
> should stay python objects.
>
> That being said, we already have the datetime_to_str flag, leave the
> defa
I almost want to say that as long as it is still a python object it
should stay python objects.
That being said, we already have the datetime_to_str flag, leave the
defaults as they were if someone wants it differently they can alter
the flag.
-Thadeus
On Sun, Mar 28, 2010 at 10:09 AM, Icebe
Remotely administer error tickets from your mobile phone!
-Thadeus
On Mon, Mar 29, 2010 at 8:12 AM, blackthorne wrote:
> Hey!
>
> Nice to see this layout idea. I think I've suggested it a good while
> ago.
> One interesting thing about this approach is that you can also great
> different gra
On Mar 29, 10:54 am, Yarko Tymciurak
wrote:
> anyway, I am sure this is about encoding to unicode - someone who has
> done this will hopefully add comments.
For example, looking at
http://docs.python.org/library/codecs.html#standard-encodings
and searching for Chinese, from your (pasted) examp
Hey!
Nice to see this layout idea. I think I've suggested it a good while
ago.
One interesting thing about this approach is that you can also great
different grades of complexity. E.g. if you want to create a
minimalistic theme without images, and Tweets on the admin page you
can simply hide those
What can I say, I am a dreamer.
http://vishpala.com/resources/web2py/images/screenshot.png
C.
On Mar 29, 10:21 am, Yarko Tymciurak
wrote:
> On Mar 29, 8:57 am, Yarko Tymciurak
> wrote:
>
> > Careful -
>
> > HTML5 is behind schedule, and expected to reach standard stage in 2022
> > (?!)...
>
>
anyway, I am sure this is about encoding to unicode - someone who has
done this will hopefully add comments.
On Mar 29, 10:04 am, Yarko Tymciurak
wrote:
> On Mar 29, 8:33 am, hywang wrote:
>
> > ---model file is like this -
> > db.define_table('options_contain_chinease',
I tried it with sqlexecute but I would need to do quite a lot of
processing on the results...
Is there any work around you can think of? Is there any way to use
the DAL with a select statement in the format generated from _select?
Thanks,
J
On Mar 23, 9:35 pm, jonatron wrote:
> I get the foll
On Mar 29, 9:27 am, ciastek wrote:
> I've had the same problem ("unable to create application") on Ubuntu
> JeOS 8.04.3 configured as shown athttp://vimeo.com/10377947[
> web2py production deployment on vps.net (VIDEO) by mdipierro].
> Ubuntu fully upgraded, web2py installed using setup-web2py-ubu
On Mar 29, 8:33 am, hywang wrote:
> ---model file is like this -
> db.define_table('options_contain_chinease',
> Field('student_name', requires = IS_IN_SET(["Jim","小长","老李"],
> multiple=True)),
Using this last string from your IS_IN_SET example (I hope my copy/
paste
Hi Giovanni,
I had the same problem and here is my simple solution:
model.py:
from gluon.dal import DAL, Field
db = DAL("sqlite://storage.db")
db.define_table("reference",
Field("name", "string", notnull=True),
Field("L", "double"),
Field("a", "double"),
I've had the same problem ("unable to create application") on Ubuntu
JeOS 8.04.3 configured as shown at http://vimeo.com/10377947 [
web2py production deployment on vps.net (VIDEO) by mdipierro].
Ubuntu fully upgraded, web2py installed using setup-web2py-ubuntu.sh
script.
Running web2py from console
On Mar 29, 8:57 am, Yarko Tymciurak
wrote:
> Careful -
>
> HTML5 is behind schedule, and expected to reach standard stage in 2022
> (?!)...
>
> Hoewever, the new canvas element is supported already
... that is, supported by many browsers already; if we are going to
add any new, bleeding edge ele
On Mar 29, 8:45 am, hywang wrote:
> There is something wrong with validators.py in line 289
> values = re.compile("[\w\-:]+").findall(str(value))
> if I change it with
> values = value
> everything is ok
>
> Maybe it's a bug
I do not know - but to help you along a little:
See the description of
Careful -
HTML5 is behind schedule, and expected to reach standard stage in 2022
(?!)...
Hoewever, the new canvas element is supported already (so that flash /
silverlight, etc. isn't needed) --- and IE-9 might even do will with
this (the preview is out now - it seems pretty fast).
I woulnd't wo
There is something wrong with validators.py in line 289
values = re.compile("[\w\-:]+").findall(str(value))
if I change it with
values = value
everything is ok
Maybe it's a bug
On 3月29日, 下午9时33分, hywang wrote:
> ---model file is like this -
> db.define_table('options_cont
Given:
db.define_table('t1',
Field('f11'),
Field('f12', 'integer'),
)
db.define_table('t2',
Field('f21'),
Field('f22', db.t1),
)
I make this query [1] (I see that you can not) but without using a
subselect
[1]
qry1 = (db.t2.f22.f12 == 10)
rows = db(qry1).select(db.t2.ALL)
How
---model file is like this -
db.define_table('options_contain_chinease',
Field('student_name', requires = IS_IN_SET(["Jim","小长","老李"],
multiple=True)),
)
db.options_contain_chinease.student_name.widget =
CheckboxesWidget.widget
--controller file is like this ---
---model file is like this -
db.define_table('options_contain_chinease',
Field('student_name', requires = IS_IN_SET(["Jim","小长","老李"])),
)
db.options_contain_chinease.student_name.widget =
CheckboxesWidget.widget
--controller file is like this -
Sorry,
db.table_contain_chinease.student_name.widget =
CheckboxesWidget.widget
should be :
db.options_contain_chinease.student_name.widget =
CheckboxesWidget.widget
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send e
model file like this ---
db.define_table('options_contain_chinease',
Field('student_name', requires = IS_IN_SET(["小王","小长","老李"])),
)
db.table_contain_chinease.student_name.widget =
CheckboxesWidget.widget
-controller file like this -
def test_chinease():
form = SQ
Perhaps a simpler set of questions:
Did you have this working with Cherrypy beforehand?
If so, is Rocket the only thing to have changed?
The latest changes to Rocket were committed to the Mercurial web2py repo
on March 18th. I'm assuming you've run a checkout since then.
-tim
On 3/28/2010 4
Great!,
I am going to do a little research and then put together some
options / samples. Two other items I am going to look into (which are
also suggested on the ez.css page) are html5 semantics and WAI ARIA
landmark roles. Roles would require a code tweak or flag as some
(most?) validation sites
With this code works, but I don't like this:
if type(animals) == str:
res = db(db.table.field==animals).select(db.table.ALL)
else:
res = db(db.table.field.belongs(animals)).select(db.table.ALL)
Can you say me a better method?
Thank you
On 29 Mar, 13:29, pacopyc wrote:
> Hi, I've a problem
Hi all,
there is a simple way to run DAL oustide web2py?
I need to write a script to access to the DB using the web2py model,
something like
import myappmodel
import DAL
[...otherstuff...]
db = DAL('sqlite://storage.sqlite')
etc etc
Where can I find an example?
Thank you!
--
Software Archi
Canada with various language settings:
Google Site : http://www.google.ca/
Language: fr-ca
Total : 109,000
Generated URL :
http://www.google.ca/#hl=fr&source=hp&q=web2py&meta=&aq=f&aqi=g3&aql=&oq=&gs_rfai=&fp=73cab96ac3bd1594
Google Site : http://www.google.ca/
Languag
Hi, I've a problem with belongs. I've a page with a list of checkbox
(dog, cat, mouse, ...). For example If I choose dog and cat I'd like
execute:
select * from table where field in ('dog', 'cat')
I've written this code:
animals = request.vars.animals
res = db(db.table.field.belongs(animals)).se
109K in ISR
On Mar 28, 4:23 am, mdipierro wrote:
> When you google "web2py" how may hits do you get? from which country?
>
> When I do it from the US I get ~106,000. The number has been steady
> for one year. Before that is was much higher ~600,000.
>
> When I did it from India the number was abo
Hi
in the appliacnce 'appliances'
http://web2py.com/appliances/default/show/4
there's a typo in appadmin.py line 125
except: reponse.flash='unable to parse csv file' should be except:
response.flash='unable to parse csv file'
--
You received this message because you are subscribed to the Go
South Africa:
Results *1* - *10* of about *109,000* for *web2py
*
On Mon, Mar 29, 2010 at 5:11 AM, Vidul Petrov wrote:
> 109,000 from Bulgaria
>
>
> On Mar 28, 3:23 am, mdipierro wrote:
> > When you google "web2py" how may hits do you get? from which country?
> >
> > When I do it from the US
54 matches
Mail list logo