Hello!
The end of the month is approaching and although we're busy doing some amanda
backups in order to safely return back to (arch(linux, we're wondering what's
with the new version of printed web2py book?
Sincerely,
Gour
--
“In the material world, conceptions of good and bad are
all
I tried:
def mobile():
from gluon.contrib import user_agent_parser
ua = user_agent_parser.detect(request.env.http_user_agent)
if ua.dist.is_mobile:
and i got:
AttributeError: 'NoneType' object has no attribute 'is_mobile'
Browsers: Opera 11.50, Safari 3.1.2
(1) What is wrong?
Any directions to solve this issue?
i´m installing another machine with windows 7 to try again.
Em 24 de agosto de 2011 13:54, António Ramos ramstei...@gmail.comescreveu:
s 2.6.5 32bits and Windows 7(64Bits)
I tried, got an error and no one care. :(
2011/8/29 Massimo Di Pierro massimo.dipie...@gmail.com
... does it work for you? Pros? Cons? Errors? Did you stress test it?
Also, the pdf version should be free for the ones that bought the first
version, like me!
:)
2011/8/29 Gour-Gadadhara Dasa g...@atmarama.net
Hello!
The end of the month is approaching and although we're busy doing some
amanda
backups in order to safely return back to (arch(linux, we're
check this site,its free for viewing !
A lot of movie tutorials for python and other languages
http://marakana.com/techtv/index.html
Hi Martin,
In trunk the correct syntax should be:
from gluon.contrib import user_agent_parser
ua = user_agent_parser.detect(request.env.http_user_agent)
if ua.is_mobile: ...
Or better:
ua = request.user_agent()
if ua.is_mobile: ...
The mothod user_agent() search in session if the user_agent
Thanks for quick bug fixes
Are you considering adding pagination?
Peter
On Aug 29, 5:16 am, Massimo Di Pierro massimo.dipie...@gmail.com
wrote:
I would definitively want to see multiline records in SQLFORM.grid. Is
anybody interested in doing this?
Massimo
On Aug 28, 11:06 pm, kenji4569
Hi Angelo, it works now, thanks!
Any ideas about the second question?
There have been a lot of proposals how to change every view from .html to
.m.html if is_mobile is true.
Now I am a little bit confused: what would be the best code following if
ua.is_mobile...?
2011/8/29 Angelo
When I try running the current trunk on linux, I get the following
error.
(dp1
S'output'
p2
S''
sS'layer'
p3
S'Framework'
p4
sS'code'
p5
S''
sS'snapshot'
p6
(dp7
sS'traceback'
p8
S'Traceback (most recent call last):\n
File /opt/web-apps/web2py/gluon/main.py, line 484, in wsgibase\n
File
I just realised that I did not restart web2py. This solved the problem
Peter
On Aug 29, 10:58 am, peter peterchutchin...@gmail.com wrote:
When I try running the current trunk on linux, I get the following
error.
(dp1
S'output'
p2
S''
sS'layer'
p3
S'Framework'
p4
sS'code'
p5
S''
Hi Maritn,
In trunk you can now do:
#only at the top of you controller
from gluon.contrib import user_agent_parser
@mobilize
def index():
example action using the mobilizer decorator it is
rendered by views/default/index.html or
views/default/index.mobi depending if your browser
Just got a fresh clone from trunk. Am on Apache2+wsgi.
When clicking the edit button of a view, I get the following at the
browser resulting to a 404 Not Found. Notice the '%2F' which is
supposed to be just '/'.
https://.../admin/default/edit/welcome/views/default%2Findex.html
When clicking
On Sunday, August 28, 2011 11:29:05 PM UTC-4, pbreit wrote:
row.update_record is going to actually modify the text in the database (if
that's what you want).
Note, you can do row.update() if you just want to modify the current row
object _without_ changing the record in the database.
Probably due to this recent
fix:
http://code.google.com/p/web2py/source/detail?r=c5f6a123b846d9c9c84e2ddbe21beb8691057dea
On Monday, August 29, 2011 6:49:22 AM UTC-4, Noel Villamor wrote:
Just got a fresh clone from trunk. Am on Apache2+wsgi.
When clicking the edit button of a view, I get
Hmmm ... I can verify this by reverting gluon/html.py to the
2011-08-25 version. What is the command for that in hg?
Version 1.98.2 (2011-08-25 22:59:48)
Version 1.98.2 (2011-08-26 07:44:22)
Or perhaps I can just manually edit it.
On Aug 29, 11:18 pm, Anthony abasta...@gmail.com
Not sue that would help.
The insert goes into purchase_orders, not supplier_contacts.
On Aug 26, 4:16 pm, Anthony abasta...@gmail.com wrote:
Does it work if you set db.supplier_contacts.supplier_id.writable = True in
the controller function?
On Friday, August 26, 2011 11:12:31 AM
Try start python and type:
import platform
On Aug 29, 3:43 am, António Ramos ramstei...@gmail.com wrote:
Any directions to solve this issue?
i´m installing another machine with windows 7 to try again.
Em 24 de agosto de 2011 13:54, António Ramos ramstei...@gmail.comescreveu:
s
It is although the process is manual. You email me you purchase
receipt and I email you a link to the pdf book.
On Aug 29, 3:47 am, António Ramos ramstei...@gmail.com wrote:
Also, the pdf version should be free for the ones that bought the first
version, like me!
:)
2011/8/29 Gour-Gadadhara
SQLFORM.grid(query)
SQLFORM.smartgrid(table)
are replacements for SQLTABLE and crud. they have search, pagination,
sorting, and lots more. Give them a try.
On Aug 29, 4:40 am, peter peterchutchin...@gmail.com wrote:
Thanks for quick bug fixes
Are you considering adding pagination?
Peter
On
Sorry Ramos. The problem is that your error is not in the scheduler.
It is in import platform a standard Python module. Something is
wrong with your version of Python.
On Aug 29, 3:44 am, António Ramos ramstei...@gmail.com wrote:
I tried, got an error and no one care. :(
2011/8/29 Massimo Di
which questions?
On Aug 29, 5:06 am, Martín Mulone mulone.mar...@gmail.com wrote:
I'm on it. For me is working really nice, but I have some questions. Also
I'm working in a plugin to admin the scheduler.-
2011/8/29 António Ramos ramstei...@gmail.com
I tried, got an error and no one care.
Anthony, your suspicion is confirmed. I reverted to the older gluon/
html.py and the '%2F' issue is gone.
On Aug 29, 11:28 pm, Noel Villamor noe...@gmail.com wrote:
Hmmm ... I can verify this by reverting gluon/html.py to the
2011-08-25 version. What is the command for that in hg?
For now I have reverted that patch.
It is backward incompatible and breaks things like this:
URL('download',args='path/to/file')
To the developers, let's discuss it on web2py-developers.
massimo
-- Forwarded message --
From: Anthony abasta...@gmail.com
Date: Aug 29, 6:18 am
On Mon, 29 Aug 2011 04:58:11 -0700 (PDT)
Massimo Di Pierro
massimo.dipie...@gmail.com wrote:
It is although the process is manual. You email me you purchase
receipt and I email you a link to the pdf book.
I'd like to buy new printed edition and wonder when it will be available.
Sincerely,
to use the trunk version Which version of python should i run in my pc?
2011/8/29 Massimo Di Pierro massimo.dipie...@gmail.com
Sorry Ramos. The problem is that your error is not in the scheduler.
It is in import platform a standard Python module. Something is
wrong with your version of
no error importing platform!
I have python2.5 and 2.6 32 bits
2011/8/29 Massimo Di Pierro massimo.dipie...@gmail.com
Try start python and type:
import platform
On Aug 29, 3:43 am, António Ramos ramstei...@gmail.com wrote:
Any directions to solve this issue?
i´m installing another
Hopefully by the end of september.
On Aug 29, 7:28 am, Gour-Gadadhara Dasa g...@atmarama.net wrote:
On Mon, 29 Aug 2011 04:58:11 -0700 (PDT)
Massimo Di Pierro
massimo.dipie...@gmail.com wrote:
It is although the process is manual. You email me you purchase
receipt and I email you a link
Can anybody else reproduce this error that Ramos is having on windows?
http://web2py.googlegroups.com/attach/3a16ca7b8a2d7baa/Scheduler.jpg
The error is clearly at import platform in the web2py code.
Massimo
On Aug 29, 8:35 am, António Ramos ramstei...@gmail.com wrote:
no error importing
Can I suggest to pass a value to disable logging feature in the loop, I
already have my own logging methods in the scripts, mixing is a really bad
idea, and a headache. Also can't be customized.
2011/8/29 Massimo Di Pierro massimo.dipie...@gmail.com
which questions?
On Aug 29, 5:06 am, Martín
Cliff, please post the related dogs table model.
Did you show the correct controller code? Your form is define as a SQLTABLE
(rather than SQLFORM), and the table argument is db.suppliers, not
db.purchase_orders.
Anthony
On Monday, August 29, 2011 7:33:25 AM UTC-4, Cliff wrote:
Not sue that would help.
The insert goes into
It's just GREAT !!
I love the Suggest Widget.
On Aug 29, 7:00 am, Massimo Di Pierro massimo.dipie...@gmail.com
wrote:
SQLFORM.grid(query)
SQLFORM.smartgrid(table)
are replacements for SQLTABLE and crud. they have search, pagination,
sorting, and lots more. Give them a try.
On Aug 29, 4:40
A new feature in trunk allows natural language search in SQLFORM.grid
and smartgrid
for example given:
db.define_table('person',Field('name'))
form = SQLFORM.smartgrid(db.person)
you can search for
name is max
name is Max
person.name is Max
person.name = Max
person.name == Max
name contains max
like is not supported on GAE, and for your particular like clause there is
no real work-around for that on GAE. there are some tricks for a couple of
like cases mentioned on this thread here:
http://stackoverflow.com/questions/47786/google-app-engine-is-it-possible-to-do-a-gql-like-query
I did not look in the source yet. But.
Is it possible to support i18n?
name contains m
To
name contém m
name is equal or greater than
To
name é igual ou maior que
Is there some way to have a dictionary of terms?
(what if a field is named 'starts'? )
http://zerp.ly/rochacbruno
Em 29/08/2011
If a field is named starts you can do
starts starts with m
supporting internationalization here would be possible, but a mess. I
would not recommend it. I am not even sure full language in english is
a good idea.
On Aug 29, 10:41 am, Bruno Rocha rochacbr...@gmail.com wrote:
I did not look in
Tyrant, is available for highly-untrusted
environments.
This is the first release linkable as a shared library (will be the base for
pypy support). Look
at skel.c in source distribution for an example.
* Changelog for 0.9.9 [20110829]
- various spooler improvements
- upload progress optimizations
hello
i´m creating an app in web2py for mobile devices
i have an issue
i have a view that needs to parse a list . This list can go up to 1300
rows of data!
Sometimes the pages loads empty and i started to play with range values.
{{extend 'plugin_jqmobile/layout.html'}}
ul
On Mon, 29 Aug 2011 06:36:55 -0700 (PDT)
Massimo Di Pierro
massimo.dipie...@gmail.com wrote:
Hopefully by the end of september.
OK. Thank you for the info. We'll be patient. ;)
Sincerely,
Gour
--
“In the material world, conceptions of good and bad are
all mental speculations…” (Sri
I think database administration should also have a natural language tool to
update all/subset of record for example.
2011/8/29 Massimo Di Pierro massimo.dipie...@gmail.com
If a field is named starts you can do
starts starts with m
supporting internationalization here would be possible, but
The medium term plan is replace the entire appadmin with a few lines
of SQLFORM.smatgrid(...)
smartgrid allows to register a callback to perform operations on
selected rows (update, delete) but needs a little more work.
On Aug 29, 11:45 am, António Ramos ramstei...@gmail.com wrote:
I think
On Thu, Aug 25, 2011 at 9:31 PM, Eric Scott erictransla...@gmail.comwrote:
Perfect! This thread solved at least one major headache, and perhaps
another even greater headache. Massimo, I'm embarrassed I had not
tried grep. It worked. I found the string in the
db_wizard_populate.py file. I
emailed you a package anthony.
Can't get much simpler than this. I don't get it. The second
crud.update call is made with the same parameters, same session but
gets a different result.
CONTROLLER
def onaccept(form):
print(accepted)
def test():
print(request.vars)
print(request.args)
Anthony,
Good catch.
The form should be SQLFORM, the table should be db.purchase_orders.
bangs head on desk
On Aug 29, 10:18 am, Anthony abasta...@gmail.com wrote:
Did you show the correct controller code? Your form is define as a SQLTABLE
(rather than SQLFORM), and the table argument is
It would look something like this:
db.define_table('dogs',
Field('dog_name'),
Field('dog_birthdate', 'date'),
Field('dog_weight', 'integer'),
Field('dog_owner', db.owner)
)
db.dogs.dog_owner.requires=IS_IN_DB(db, db.dogs.id,
'%(owner_name)s', zero=Choose an owner)
Caveat: not
Hard to tell from your application description but sometimes it's better to
implement inter-application communication, for example through an API or
RPC.
On Aug 29, 1:22 pm, Cliff cjk...@gmail.com wrote:
It would look something like this:
db.define_table('dogs',
Field('dog_name'),
Field('dog_birthdate', 'date'),
Field('dog_weight', 'integer'),
Field('dog_owner', db.owner)
)
db.dogs.dog_owner.requires=IS_IN_DB(db,
Hello,
I have a few question on the power table:
- Can I make the columns re-sizable?
- Can I display a column hierarchically? I want to display a little
triangle or little + at the left of each item in a column so the user
can unfold the item like if it was a folder containing other folders
and
No need to do a fresh install. Why clobber all your test data?
Check out one or more of the sqlite gui interfaces at this link:
http://stackoverflow.com/questions/1507506/what-are-good-open-source-gui-sqlite-database-managers
Then drop the column using the gui.
On Aug 28, 9:51 am, Juan Tiger
I want to change the application language through URL function, but
this doesn't expect the lang parameter.
I did some tests with these adresses http://127.0.0.1:8000/es-es/default/index
and http://127.0.0.1:8000/fr-fr/default/index and it changed the
application language due to gluon.rewrite.
I recently decided to try web2py and so I am going through the
tutorials in Chapter 3.
I have Version 1.98.2. When I got to the Say My Name Example, I
followed the steps, but I found out that I have to add
response.generic_patterns = ['*'] because I kept getting Invalid
View.
Ok, so in my default
Hi,
I found a small bug:
You can get to the edit form by clicking the 'Edit' button in one row of the
grid.
It calls this URL:
http://127.0.0.1:8000/test/default/index/person/edit/person/1?_signature=...
So far so good
Using the view button in a row you can get to the non editable form of a
Datatables has resizeable feature. So you can do it with a bit of
javascript. But there is not an API for that in plugin yet.
PowerTable will be rewriten, may be using solidtable as base.
Web2py now has too many table/grid options and I think we can just extend
the existing best ones.
Does it insert the non-hidden fields, or is no record getting inserted at
all?
On Friday, August 26, 2011 5:43:15 AM UTC-4, Cliff wrote:
I use SQLFORM something like this:
fields = 'dog_name dog_weight dog_birtdate'.split(' ')
hidden = {'dog_owner' : some_known_value} # We already know
Hi everyone,
Since it's my first post, I'd like to first say great framework to the
whole team. I'm really enjoying using it.
I think I've found a small bug in the handling of list fields in an
invalid form.
I have a list:string field and another required field.
When there is only 1 input field
Thank you.
So, I don't have data coming SQL. Would then recommend solidtable?
On 29 août, 15:46, Bruno Rocha rochacbr...@gmail.com wrote:
Datatables has resizeable feature. So you can do it with a bit of
javascript. But there is not an API for that in plugin yet.
PowerTable will be rewriten,
Are the view files in views (incorrect) or views/default (correct)?
You don't need response.generic_patterns = ['*'] when you are creating
view files.
You can put response.generic_patterns = ['*'] in db.py model file so that
it applies to your whole app.
Rami,
I'm using the same version and just follow the chapter but It works
fine.
It runs under Rocket WSGI web server comming with web2py. If you are
using another web server, then you should check the configuration. Or
it could be a typo somewhere. I will send you my app to your mail
address.
On
Hi group, first time post!
A question about server side form validation.
I have been following the tutorials on the web2py website and I'm
building a simple form like this in the controller:
form=FORM(TABLE(TR(Username:,INPUT(_type=text,_name=username,requires=[IS_NOT_EMPTY(),
IS_NOT_IN_DB(db,
Validation is always performed server side.
if you use FORM(INPUT()) that each input gets its own
requires=[..]
if you use SQLFORM(table) than the requires are from the
table.field.requires.
Anyway, do not use FORM(...INPUT()...) but use
SQLFORM.factory(...Field(...)...) It is
Thanks for the rapid reply Massimo, It is much appreciated.
Chris
On Aug 30, 2011 12:23 AM, Massimo Di Pierro massimo.dipie...@gmail.com
wrote:
Validation is always performed server side.
if you use FORM(INPUT()) that each input gets its own
requires=[..]
if you use
what is your data source?
datatables can handle json and xml (but it is not implemented in the plugin,
but can be done with JS), if you want a JSON based grid I recommend
PowerGrid, another plugin I created. PowerGrid is based in JSON or PJSON, it
comes with a default callback module, but you can
On 29 août, 20:26, Bruno Rocha rochacbr...@gmail.com wrote:
what is your data source?
I have XML data.
datatables can handle json and xml (but it is not implemented in the plugin,
but can be done with JS), if you want a JSON based grid I recommend
PowerGrid, another plugin I created.
Hi,
Thanks for the great contributions to web2py. I'm looking forward to
trying them.
I implemented web2py.plugin.elrte_widget.w2p and while it worked great
with firefox, I had some problems using internet explorer.
Specifically, the dropdown boxes, such as the colorpicker, disappear
before I
I think this might be a bug, but I haven't tracked it down yet. Could you
please submit an issue on Google
Code: http://code.google.com/p/web2py/issues/list
Anthony
On Monday, August 29, 2011 1:02:49 PM UTC-4, apple wrote:
emailed you a package anthony.
Can't get much simpler than this. I
Can you try?
crud.settings.detect_record_change = False
SQLFORM has a mechanism to prevent two users from doing this:
user 1) visualize and edit record
user 2) visualize and edit record
user 1) save changes
user 2) save changes and override changes by user 1
in SQLFORM it is disabled by
better locking system. Now heartbeat are adjusted automatically and
dynamically (max 20 seconds apart).
Spiffy browser IDE but appears to require Node.js:
http://coreh.github.com/nide/
can you also try replace form.accepts(): with
form.process().accepted:
I think of the latter as the new way of doing for processing.
Massimo
On Aug 29, 9:44 pm, Massimo Di Pierro massimo.dipie...@gmail.com
wrote:
Can you try?
crud.settings.detect_record_change = False
SQLFORM has a
Yes, that is in fact the problem, but shouldn't you be able to make two
edits to a record in a row without an intervening failure? It's not just
that a failure message is missing -- the behavior seems wrong.
Anthony
On Monday, August 29, 2011 10:44:35 PM UTC-4, Massimo Di Pierro wrote:
Can
something like this: http://wijmo.com/Wijmo-Complete/samples/#tree|overview
or may be this:
http://wijmo.com/Wijmo-Complete/samples/#grid|grouping-and-aggregates
(the column resizing you talk
http://wijmo.com/Wijmo-Complete/samples/#grid|column-resizing)
So something like this:
http://www.amnesty.org/fr/how-you-can-help
and not this:
http://voiceofaccess.org/init/default/index?_language=fr-ca
?
The parametric router allows:
routers = dict(
# base router
BASE = dict(
default_application = app,
),
app = dict(
default_language = 'en',
languages = ['en', 'it', 'pt', 'pt-br'],
),
)
and than in the model you do:
T.force(request.lang)
Not clear
I commented in Anthony notes, but I will replicate it here.
---
I created my own mechanism for mobile detection, which I am using for
a long time. So there is one thing I decided.
It is better to prefix instead of suffix. so I named my views as
mobile.index.html instead of index.mobi.
why?
On Aug 29, 2011, at 8:50 PM, Massimo Di Pierro wrote:
The parametric router allows:
routers = dict(
# base router
BASE = dict(
default_application = app,
),
app = dict(
default_language = 'en',
languages = ['en', 'it', 'pt', 'pt-br'],
),
)
and
On Aug 29, 2011, at 9:26 PM, Jonathan Lundell wrote:
On Aug 29, 2011, at 8:50 PM, Massimo Di Pierro wrote:
The parametric router allows:
routers = dict(
# base router
BASE = dict(
default_application = app,
),
app = dict(
default_language = 'en',
languages
Good point. Couldn't you also do something like index.mobi.html or
index.html.mobi? I don't think these view names would necessarily have to be
exposed as URLs -- they just need to be used server side to render the page
appropriately.
Anthony
On Tuesday, August 30, 2011 12:01:53 AM UTC-4,
78 matches
Mail list logo