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)
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?
=form)
def c():
return c *
a, b and c have their own views. I do not want to allow any user to start
at function b or c. Everybody has to start at a.
I think, this problem could be solved using a decorator, but I could not
find how.
Regards, Martin
--
--
Bruno Rocha
',callback=URL('delete_record',args=id),delete=tr)
--
--
Bruno Rocha
[ About me: http://zerp.ly/rochacbruno ]
[ Aprenda a programar: http://CursoDePython.com.br ]
[ O seu aliado nos cuidados com os animais: http://AnimalSystem.com.br ]
[ Consultoria em desenvolvimento web: http
On Sun, Aug 28, 2011 at 12:06 PM, JaapP j...@tetra.nl wrote:
db.bestelling.bedrag.update = '10'
It is wrong. shoud be simething like:
db(db.bestelling.id==request.args(0)).update(bedrag = '10')
--
Bruno Rocha
[ About me: http://zerp.ly/rochacbruno ]
[ Aprenda a programar: http
For those who likes jQueryUI I recommend WijmoUI
Wijmo is jQUeryUI extended and has a free and a comercial version.
I am using this in many projects with web2py and works great.
http://www.wijmo.com/demo/explore/
--
Bruno Rocha
[ About me: http://zerp.ly/rochacbruno ]
On Sun, Aug 28, 2011 at 1:51 PM, pbreit pbreitenb...@gmail.com wrote:
It's nice but still too thick for my tastes. I wish these types of
libraries would be designed to fit in better with a broader array of site
designs. They all need so many modifications to avoid clashing with an
existing
()(!)
('!', 'enter only numbers')
def __init__(self, error_message='enter only digits'):
IS_MATCH.__init__(self, '^[0-9]*$', error_message)
Regards,
Saurabh Sawant
--
--
Bruno Rocha
[ About me: http://zerp.ly/rochacbruno ]
[ Aprenda a programar: http
Jonathan,
Lets say I have a dict of all my controlers/actions
dict(default=['index','page'], account=['user','login','profile','logout'])
when requests any that are in the dict should be executed, normal.. but
if request anything that are not in the dict I want to pass it to a default
Proxy is a great idea, but I would like to keep the url as it is.
I will make account the default controller, and in account I will create a
proxy to redirect to the index page if passed /index, or something like
this.
Thanks.
free - http://wijmo.com/Wijmo-Open/samples/
comercial - http://wijmo.com/Wijmo-Complete/samples/
On Sun, Aug 28, 2011 at 3:44 PM, Martín Mulone mulone.mar...@gmail.comwrote:
beautifull what is the difference free and commercial?
2011/8/28 Bruno Rocha rochacbr...@gmail.com
On Sun, Aug
I am not sure if DAL can handle SQL mult-insertions but you can build a
string and do:
db.execute_sql(INSERT IN)
http://pythonfiddle.com/
Maybe they can include gluon in packages
--
Bruno Rocha
[ About me: http://zerp.ly/rochacbruno ]
it before.
Does anybody know what the command is to compile from the command line ?
Also is there are website or part of the book that will collect this so I
can
add it ?
Thanks in advance.
With regards,
Mike Veltman
--
--
Bruno Rocha
[ About me: http://zerp.ly/rochacbruno
On Sun, Aug 28, 2011 at 10:42 PM, Anthony abasta...@gmail.com wrote:
All the functions available in the 'admin' app are available in
/gluon/admin.py for command line use. The function for compiling the app is
app_compile(app, request), which in turn calls
gluon.compileapp.compile_application.
if onaccept raises an exception, there will be a rollback?
On Mon, Aug 29, 2011 at 12:32 AM, pbreit pbreitenb...@gmail.com wrote:
I meant the look and feel. The designs of many of these types of libraries
are so stylized that they always seem to clash with existing sites.
You do not have do use default themes, you can start with a clean theme and
On Mon, Aug 29, 2011 at 12:59 AM, Massimo Di Pierro
massimo.dipie...@gmail.com wrote:
Not automatically.
OK, I was just thinking if it could be the origin of the problem.
).
I'll appreciate your feedback and advises (especially for design
decisions).
I'll keep trying to create useful plugins and to improve them!
--
--
Bruno Rocha
[ About me: http://zerp.ly/rochacbruno ]
[ Aprenda a programar: http://CursoDePython.com.br ]
[ O seu aliado nos cuidados com os
I loved the extracolumns feature! this really need to be included in
SQLTABLE!
On Sat, Aug 27, 2011 at 8:01 AM, Martín Mulone mulone.mar...@gmail.comwrote:
Bruno extracolumns are in SQLTABLE.
really?
LOL.. never knew about it.
. After the user clicks on the email link, the user
will be able to login again with full access.
--
--
Bruno Rocha
[ About me: http://zerp.ly/rochacbruno ]
[ Aprenda a programar: http://CursoDePython.com.br ]
[ O seu aliado nos cuidados com os animais: http://AnimalSystem.com.br
Or, we need to logout the user and force the to login again.
temporarily solved with auth.settings.verify_email_next = URL(r=request,
c='default', f='user', args='logout')
so when user loggin again he got no auth.user.registration_key
But, there is a way to do it inside tools.py verify_email ?
plugin_chkeditor has spell check
2011/8/26 António Ramos ramstei...@gmail.com
hello, is it possible to have spell check in a text field?
thank you
--
--
Bruno Rocha
[ About me: http://zerp.ly/rochacbruno ]
[ Aprenda a programar: http://CursoDePython.com.br ]
[ O seu aliado nos
Do you have some field.of type list:... ?
I am having trouble with it in grid.
http://zerp.ly/rochacbruno
Em 26/08/2011 10:54, Johann Spies johann.sp...@gmail.com escreveu:
Hallo Martín,
Thanks for your reply.
Unfortunately the problem persists:
I have in Massimo's demo code for the
(especially for design
decisions).
I'll keep trying to create useful plugins and to improve them!
--
--
Bruno Rocha
[ About me: http://zerp.ly/rochacbruno ]
[ Aprenda a programar: http://CursoDePython.com.br ]
[ O seu aliado nos cuidados com os animais: http://AnimalSystem.com.br
Go to GAE dashboard and manage versions choose the default version.
rename your app to 'init'
Then you have now myapp.appspot.com
I ran in the same problem, I figured out that using custom auth tables in
provider app make the client app to run in infinite loop. I also tried to
include 'username' field to the custom Auth table but did not solve the
problem.
My custom Auth Table
https://gist.github.com/1172687 ( I tried with
, but this apps has
default auth table and runs very well, I also created an adapter to bring
groups and permissions from provider to client and stores in a kind of
cache.
The problem seems to be when using custom auth tables.
Any clue?
--
--
Bruno Rocha
[ About me: http://zerp.ly/rochacbruno
custom auth tables.
Any clue?
--
--
Bruno Rocha
[ About me: http://zerp.ly/rochacbruno ]
[ Aprenda a programar: http://CursoDePython.com.br ]
[ O seu aliado nos cuidados com os animais: http://AnimalSystem.com.br ]
[ Consultoria em desenvolvimento web: http://www.blouweb.com ]
.
It's very nice, another thing yesterday I have an exception using with
table auth_membership.
2011/8/24 Bruno Rocha rochacbr...@gmail.com
JqueryUI Applied! (Any Theme from http://jqueryui.com/themeroller)
Take a look in attached screenshots (a patch is comming to Massimo's mail
Working demo:
http://labs.blouweb.com/web2pygrid (Choose a theme)
Note that darker themes conflicts with base.css (but this is not a problem,
users can override it with !important, in case of use darker themes)
I dont understand why we do need jquery to take this action?
just incluce label for='' and this wiill be done! or not?
They have pro plans. Starting in $1 to $9 month.
But. If I understand well, the goal there is not website/webapp hosting. The
main purpose there is webservices histing.
You can write bots, schedullers, or post tasks throught some API.
As a webservice this consumes less requests but has more
Your modal uses Iframe?
nyroModal needs target='_blank' to open in iframe and work as you want.
Other modal plugins has other ways for doing it.
For redirect in parent window. You ll need to execute a javascript inside
modal.
window.parent.location = ''
http://zerp.ly/rochacbruno
Em
I have a patch for adding for attr in labels for checkbox, radio and upload.
I sent the demo code to Massimo, now I will submit a patch.
I also think this widgets needs to follow the formstyle and not always be
hander as a table.
http://zerp.ly/rochacbruno
Em 23/08/2011 11:35, Anthony
On Tue, Aug 23, 2011 at 11:18 PM, DenesL denes1...@yahoo.ca wrote:
Thanks pbreit, but they are not virtual fields, they are just based on
another field definition.
Maybe with a function:
def like(field, name):
import copy
f = copy.copy(field)
f.name = name
f.label = '
Of course or you pass desired template explicit to Field.template or set
globally in DAL
# define field templates
DAL.field_templates = dict(
text = Field('name','text',requires=IS_NOT_EMPTY(), represent=...),
integer = Field('name','integer',.)
)
Field.template(integer,'') and
the triangle but
also a few more action icons (on, off, edit, delete, etc.).
Should be small, color neutral, free.
Can you suggest one?
--
--
Bruno Rocha
[ About me: http://zerp.ly/rochacbruno ]
[ Aprenda a programar: http://CursoDePython.com.br ]
[ O seu aliado nos cuidados com os animais: http
practice to get into?
Is there an ideal way?
--
--
Bruno Rocha
[ About me: http://zerp.ly/rochacbruno ]
[ Aprenda a programar: http://CursoDePython.com.br ]
[ O seu aliado nos cuidados com os animais: http://AnimalSystem.com.br ]
[ Consultoria em desenvolvimento web: http://www.blouweb.com ]
pm, Bruno Rocha rochacbr...@gmail.com wrote:
I guess it is not wrong, but I do not recommend too much code in
controllers, controllers should be for decide the app flow.
I reccomend you to create a module in /modules
# modules/myobjects.py
from gluon import
did you imported in this way:
from objects import Search
return dict(search=Search.show(db))
???
I just realized another benefit, for some reason you can create and
validate/store forms directly in views.
{{=SQLFORM(db.auth_group).process()}}
share your whole code in some pastie, gist or send the .py files I will take
a look and try it here.
I am using nyroModal which I think is a very nice modal plugin, but I really
think it is time to include jQuery UI in to web2py scaffold. so we an use
jQueryUI dialog.
This should work
http://pastie.org/2412537
I installed by pushing to github. That is the way.
http://zerp.ly/rochacbruno
Em 22/08/2011 23:00, nic nicats...@gmail.com escreveu:
This looks fantastic.
Got web2py up and running in 2 mins as advertised.
However when I tried to install the plugin_wiki I got the following
error.
Internal
Anyway, let me know how you think it should work, perhaps I am missing
something and I am sure it can be improved.
Welcome already comes with default/data which is an API for crud, I do that
in PowerGrid plugin, buttons calls default/data passing record id (with
signature).
No need to write
?
( auth.settings.verify_password = False ??? )
--
Bruno Rocha
[ About me: http://zerp.ly/rochacbruno ]
[ Aprenda a programar: http://CursoDePython.com.br ]
[ O seu aliado nos cuidados com os animais: http://AnimalSystem.com.br ]
[ Consultoria em desenvolvimento web: http://www.blouweb.com ]
,
is there a simple way to remove the need of Verify Password from
auth/register?
I want the user only to use [name, email, password, submit], I know how to
do that hacking a bit or using custom forms. But, is there an API way?
( auth.settings.verify_password = False ??? )
--
Bruno Rocha
Very good!
And admin works perfectly! I am already running an app with MySQL and web2py
Trunk.
We can create our instalations on github by forking this;
https://github.com/nus/web2py-for-fluxflex and customizing to our project
needs, so deployment will be very very easy.
I didt find any
Found about the QUOTA
Processed Time 19 / 1 Requests Processed Time 5.25 / 900.0 seconds (0.25
Hours) Transfer In 14646 / 268435456.0 Bytes (0.25 GB) Transfer Out 106990 /
268435456.0 Bytes (0.25 GB) Storage Size 0.0 / 256.0 MBytes (0.25
GB)Database Size0.0 / 25.6 MBytes (0.025 GB)
and PLANS
PlanProjects TrafficProcessed Time Transfer InTransfer Out Disk SpaceDB
Space *super geek*
($9.0/month)100 unlimited 10.0GB/day3.0GB/day 3.0GB/day4.0GB
0.5GBChangehttps://www.fluxflex.com/settings/billing#
*standard*
($1.0/month)15 5.0/day 5.0GB/day1.0GB/day 1.0GB/day1.0GB
def user()
if request.args(0) == 'profile':
db.auth_user.email.readable = db.auth_user.email.writable = False
why static_method is used to define this? not better to have some @lazy
decorator?
Massimo,
As you are dealing with VirtualFields, consider including some standard
properties such as:
Label, Comment, Represent, and Type.
Label is the more usable of them, specially to display headers=labels in
SQLTABLE.
In PowerTable I used something like:
@virtualsettings(label=..., type=...)
The caveat is teh fact that it is designed for modern browsers only, even in
Chrome the fonts seems to be strange.
I prefer to continue using the pack: 960.gs, HTML5 Boilerplate, CSS3Buttons,
EasyFramework + Wijmo.
a request.utcnow would also be useful (now can be derived from
utcnow, but the other way around is not 1:1 on days when daylight saving
time changes)
--
--
Bruno Rocha
[ About me: http://zerp.ly/rochacbruno ]
[ Aprenda a programar: http://CursoDePython.com.br ]
[ O seu aliado nos cuidados com os
I have been working on another projects, but web2yslices2.0 is being
developed.
The delay was very good because now we can enjoy the new features of web2py.
I think in few weeks I will come with the new website!
(Wiki, Repository, Plugins, Pyforum...) All integrated.
def imagepicker(text):
if text = :
return IMG()
elif text = :
return IMG()
...
db.table.field.represent = lambda text: imagepicker(text)
table = SQLTABLE(.)
Another possibility is using Virtual Fields or manipulating the object with
server side
problems with large tables because it is not resized
automagically.
I ended up using SenchaTouch for my applications which is a bit more
complicated
On Thu, Aug 18, 2011 at 5:59 AM, Massimo Di Pierro
massimo.dipie...@gmail.com wrote:
http://mobilizejs.com/
Opinions?
--
--
Bruno Rocha
this should be SQLTABLE.smart SQLFORM.grid or both?
On Thu, Aug 18, 2011 at 2:18 PM, Massimo Di Pierro
massimo.dipie...@gmail.com wrote:
If I understand, jquery.mobile requires that you edit the html.
mobilize.js will change the html for you on the client side.
Yes!
you set in JavaScript which selectors need to be placed in header, content
just tested! very nice! I see a new version of PowerTable coming based on
this! thanks.
would be very nice to have a jquery-iu=True|False (default to false) option
to include ThemeRoller classes in to this
http://jqueryui.com/themeroller/
, Aug 18, 2011 at 2:21 PM, Bruno Rocha rochacbr...@gmail.comwrote:
just tested! very nice! I see a new version of PowerTable coming based on
this! thanks.
would be very nice to have a jquery-iu=True|False (default to false)
option to include ThemeRoller classes in to this
http://jqueryui.com
2011/8/18 António Ramos ramstei...@gmail.com
where can i download this plugin?
This is not a plugin, this is included in web2py in trunk.
)}} where rows is the
result of a select, is there any way to specify a default numeric precision,
e.g. '%0.2f' to be applied to all float values in the table?
Thanks,
Mike
--
--
Bruno Rocha
[ About me: http://zerp.ly/rochacbruno ]
[ Aprenda a programar: http://CursoDePython.com.br ]
[ O seu
CORRECTIONl:
for field in db.mytable.fields:
*field = db.mytable[field]*
if field.type == 'double':
field.represent = lambda value: %.2f % value
On Wed, Aug 17, 2011 at 3:28 AM, TomPliss tompl...@gmail.com wrote:
Can't you use the represent field of the column, to show an image ?
Yes you can.
db.table.field.represent = lambda value: IMG(_src=URL(...), _alt=value)
useful reading
http://programmers.stackexchange.com/questions/46716/what-should-a-developer-know-before-building-a-public-web-site
I need to create this:
div data-role=controlgroup data-type=horizontal
using helpers this should be:
DIV(_data-role='controlgroup', _data-type='horizontal')
but the code above raises a Python error:
SyntaxError: keyword can't be an expression
what shoud I use in the place of dashes?
thanks.
and excellence.
2 Pet. 1:2b,3a
--
--
Bruno Rocha
[ About me: http://zerp.ly/rochacbruno ]
[ Aprenda a programar: http://CursoDePython.com.br ]
[ O seu aliado nos cuidados com os animais: http://AnimalSystem.com.br ]
[ Consultoria em
No more need to use lical_import it is deprecated. Newest web2py has a
custom importer which works much better.
http://zerp.ly/rochacbruno
Em 17/08/2011 08:20, Johann Spies johann.sp...@gmail.com escreveu:
On 17 August 2011 12:55, Bruno Rocha rochacbr...@gmail.com wrote:
try changing
Thank you Massimo, this works very well. For the record, this is needed by
JqueryMobile and Sencha Touch.
On Wed, Aug 17, 2011 at 8:28 AM, Massimo Di Pierro
massimo.dipie...@gmail.com wrote:
DIV(**{'_data-rol':'controlgroup', '_data-typ':'horizontal'})
On Aug 17, 5:29 am, Bruno Rocha
(models), they
are huge, and I haven't had the chance to prepare something much smaller ...
but I hope someone out there (Massimo?) can help me fix these show-stopper
problems.
Any clues?, thanks,
Carlos
--
--
Bruno Rocha
[ About me: http://zerp.ly/rochacbruno ]
[ Aprenda a programar
How do I customize the rendering into:
div name=tags id=tag_tags class=list
input type=checkbox value=12 name=tagsbusinessbr /
input type=checkbox value=11 name=tagsfamilybr /
input type=checkbox value=10 name=tagsfriendbr /
/div
Thanks in advance.
--
--
Bruno Rocha
[ About me: http
?
Thanks in advance for suggestions.
Valter
--
--
Bruno Rocha
[ About me: http://zerp.ly/rochacbruno ]
[ Aprenda a programar: http://CursoDePython.com.br ]
[ O seu aliado nos cuidados com os animais: http://AnimalSystem.com.br ]
[ Consultoria em desenvolvimento web: http://www.blouweb.com ]
You can also do.
def action():
return dict(form=SQLFORM(db.table).process())
Or.
def action():
form = SQLFORM(...)
form.validate() # as shortcut to if form.accepts...
return dict(form=form)
http://zerp.ly/rochacbruno
Em 14/08/2011 19:14, Massimo Di Pierro
http://www.w3schools.com/html5/att_meta_name.asp?output=print
http://zerp.ly/rochacbruno
Em 11/08/2011 04:37, rif feric...@gmail.com escreveu:
If we validate the welcome app with http://validator.w3.org we only have
two
errors:
1.
2. *Line 12, Column 66*: Bad value X-UA-Compatible for
Strange.
copyright is not listed as html5 meta tag
http://www.w3schools.com/html5/tag_meta.asp
http://zerp.ly/rochacbruno
Em 11/08/2011 04:37, rif feric...@gmail.com escreveu:
If we validate the welcome app with http://validator.w3.org we only have
two
errors:
1.
2. *Line 12, Column 66*:
I am using wingIDE for debug.
But not always. Most times I only need shell and prints.
http://zerp.ly/rochacbruno
Em 11/08/2011 07:49, Mariano Reingart reing...@gmail.com escreveu:
There is online shell debugger (based on PDB) approach already
included with web2py:
Interesting project, a JSON+SQLite based database with rest API.
https://bitbucket.org/robertodealmeida/jsonstore
May be web2py DAL can have an adapter for it, or something like this.
A schema-free database for JSON documents, exposed through a REST API.
JSONStore supports a wide range of
On Wed, Aug 10, 2011 at 1:57 PM, mikech mp.ch...@gmail.com wrote:
Very nice! - Going to retweet this again :)
Acording ti this table -
http://www.infoworld.com/d/application-development/pillars-python-six-python-web-frameworks-compared-169442?page=0,2
web2py only misses a real time debugger,
yep, and web2py.com suffers from slashdot effect.. I am curious to see the
access report for today!
rows = db(...).select(...)
rows.compact = False
and now you always have the rows[i].table.field syntax. no more
rows[i].field shortcuts.
Thank you Massimo, this will save some 'ifs' that i've made in my plugins.
thank you, I am already testing it, nice solution.
I was working with this one
https://github.com/lucasdavila/web2py-queue (which
is not complete yet)
but now I am trying your solution for one of my systems.
Thanks
it get this path from?
Thanks
Peter
On Aug 6, 6:01 pm, peter peterchutchin...@gmail.com wrote:
It is 1.98.2
On Aug 6, 5:28 pm, Bruno Rocha rochacbr...@gmail.com wrote:
What is your web2py version?
The plugin works only in 1.97+
http://zerp.ly/rochacbruno
Em 06/08/2011
I enabled a different set of toolbar buttons. I will send a patch which
provides an python API to deal with toolbar set.
http://zerp.ly/rochacbruno
Em 08/08/2011 10:59, Ross Peoples ross.peop...@gmail.com escreveu:
I have applied Bruno's patch to the plugin on BitBucket. Thanks again
Bruno
for
You do not have to define field type when referencing.
Field('fieldname', db.referencetable)
No need to define as 'integer'
http://zerp.ly/rochacbruno
Em 08/08/2011 17:46, Ramiro B. da Luz ramiro...@gmail.com escreveu:
I asked this in the irc channel but as I was leaving I pasted it here:
I mean, this:
Field('a_fon_codigo', 'integer', db_pgsql.t_fone)
should be:
Field('a_fon_codigo', db_pgsql.t_fone)
db(db.posts.id0).select(limitby=(0,10))
http://zerp.ly/rochacbruno
Em 06/08/2011 05:00, Web2Py Freak halna...@gardeniatelco.com escreveu:
Hey guys ,
Anyone Used Pagination before , i have a table named blogpost and i
want it to view every 10 post in a page , how can i do that ??
What is your web2py version?
The plugin works only in 1.97+
http://zerp.ly/rochacbruno
Em 06/08/2011 08:55, peter peterchutchin...@gmail.com escreveu:
I have powergridapp working on my system, however when I added the
powergrid plugin to my app I get
No module named
Probably with subqueries.
select (select sum(...) from. ..) as mysum, otherfield, otherfield...
http://zerp.ly/rochacbruno
Em 06/08/2011 20:02, Massimo Di Pierro massimo.dipie...@gmail.com
escreveu:
How would you do it in SQL? I do not know.
On Aug 6, 5:54 pm, Tim Korb jtk...@gmail.com wrote:
I guess you have to replace crud.select with db.select
Crud returns a form using tables by default unless you specify formstyle
parameter.
In your case. You probably need only data as a value. So use db.select not
crud.select
http://zerp.ly/rochacbruno
Em 06/08/2011 23:45, Hybride
I do my dev on a Mac and deploy to 2 Ubuntu cloud servers, one for testing
and one for production. I use Fabric scripts to pull from a Bitbucket repo.
Works fine.
I use Ubuntu on local server, I jsut use mercurial to deploy, push from
local, pull from remote. managing branches etc...
I
I found an issue, as issues is disabled in your bitbucket, I created a wiki
page.
https://bitbucket.org/PhreeStyle/web2py_ckeditor/wiki/issue
=demo,message=demo)
thank you?
António
--
--
Bruno Rocha
[ About me: http://zerp.ly/rochacbruno ]
[ Aprenda a programar: http://CursoDePython.com.br ]
[ O seu aliado nos cuidados com os animais: http://AnimalSystem.com.br ]
[ Consultoria em desenvolvimento web: http://www.blouweb.com ]
I am writing some docs and solving some issues.
Thanks
http://zerp.ly/rochacbruno
Em 01/08/2011 11:28, Johann Spies johann.sp...@gmail.com escreveu:
I am trying out PowerGrid. As I could not find good documentation that
explains how to use it, I was following the examples to try and figure out
://www.yakitome.com
is for that. It will be supported in parallel until the new site is
solid. Feedback on the new site will be appreciated. Use the contact
form. Thanks.
--
--
Bruno Rocha
[ About me: http://zerp.ly/rochacbruno ]
[ Aprenda a programar: http://CursoDePython.com.br ]
[ O seu
1101 - 1200 of 2316 matches
Mail list logo