you can read the field and pass it as an arg to template.render.
it will act like a view file.
from gluon.template import render
row = db.mytable[id]
template = row.template
return render(template, dict(form=form, x=y))
http://zerp.ly/rochacbruno
Em 01/03/2012 08:57, Hassan Alnatour
is the experimental model map included? or it is not done yet?
http://zerp.ly/rochacbruno
Em 28/02/2012 17:28, Massimo Di Pierro massimo.dipie...@gmail.com
escreveu:
I am planning to release this tomorrow but you can test it today.
***Please help us test it today*** It is really important.
where the akb_signature_uuid is defined?
in a model or module
from gluon import current
current.akb_signature_uuid = akb_signature_uuid = something
then in appadmin
from gluon import current
does not works¿
http://zerp.ly/rochacbruno
Em 29/02/2012 06:26, Johann Spies johann.sp...@gmail.com
no, I mean the model-execution-mapping.
http://zerp.ly/rochacbruno
Em 29/02/2012 09:03, Alan Etkin spame...@gmail.com escreveu:
Massimo:
I've found that the timing changes to the LOAD() helper have learnt
the first lesson of not being seen. The problem is that the changes to
web2py.js I
Dont know if it helps, but note that you can enclose HTML as a function.
views/my_html_functions.html
{{def my_html_block(args):}}
{{if args.:}}
tag/tag
{{pass}}
{{=DIV(UL(LI()))}}
tag/tag
tag/tag
tag/tag
{{return}}
views/anyfile.html
{{extend
,writable=False,readable=False),
Field('created_on','datetime',default=current.request.now,writable=False,readable=False),
migrate=True)
return db[table_name]
--
Bruno Rocha
[http://rochacbruno.com.br]
= val.split( )
ValueError: need more than 1 value to unpack
ERROR SNAPSHOT
type 'exceptions.ValueError'(need more than 1 value to unpack)
--
Bruno Rocha
[http://rochacbruno.com.br]
: The ALTER table is a limitation of sqlite, other db engines works
nice with this.
--
Bruno Rocha
[http://rochacbruno.com.br]
I've never seen this plus icon, so I created a new widget with an add new
button. This widget I am using for cook recipes in Movuca. The code is in
github.
http://zerp.ly/rochacbruno
Em 28/02/2012 14:40, Massimo Di Pierro massimo.dipie...@gmail.com
escreveu:
I do it using the compute attribute, take a look:
http://movu.ca/demo/article/show/36/creating-thumbnails-with-web2py
On Tue, Feb 28, 2012 at 3:32 PM, Ivan Vilches Basaul
ivan_vilc...@hotmail.com wrote:
Any way for automatic thumbnails creation?
Thanks
Ivan Vilches Basaul
--
Bruno
That is my widget: http://awesomescreenshot.com/07fnx882
and this is the code:
https://github.com/rochacbruno/Movuca/blob/master/modules/helpers/widgets.py#L241
On Tue, Feb 28, 2012 at 4:20 PM, Bruno Rocha rochacbr...@gmail.com wrote:
I've never seen this plus icon, so I created a new widget
Massimo and Mariano are developing a conditional model_map, so you will be
able to choose which model files to run for each requested controller, it
will be a very good add to web2py.
Maybe it will be included only in web2py 2.0.
I still think we need a model-less approach using modules, and it
thanks Luciano! I will migrate your recipe to the new web2pyslices website.
http://zerp.ly/rochacbruno
Em 27/02/2012 09:16, Luciano Pacheco lucm...@gmail.com escreveu:
Example:
http://movu.ca/demo/article/show/31/web2py-cron-task
My first try in movu.ca :-)
On Mon, Feb 27, 2012 at 2:32
and Flask, Bottle etc.. all good frameworks,
It is very nice to give a try to everyone of them!
--
Bruno Rocha
[http://rochacbruno.com.br]
gluon import current and access current.object for
(session|request|response|cache|T)
--
Bruno Rocha
[http://rochacbruno.com.br]
- Last name
- email-id
- Password
- verify password
--
Bruno Rocha
[http://rochacbruno.com.br]
, precision)
precision in ['year', 'month', 'week', 'day', 'hour'] or 'auto'
'auto' gets the largest unit of time = now - date
mic
--
Bruno Rocha
[http://rochacbruno.com.br]
somebody implemented that?
can you share the code?
Thanks
--
Bruno Rocha
[http://rochacbruno.com.br]
db.othertable(db.person(db.person.id
).fk_to_other_table_id).field_other_table)
Not possible, but this is possible:
db.dog.owner.requires = IS_IN_DB(db, db.person.id, *lambda row:
db(db.othertable.foreign_key == row.reference_key
).select().first().somefield*)
--
Bruno Rocha
[http
I did not see web2py on the list...
Em 20/02/2012 03:03, pbreit pbreitenb...@gmail.com escreveu:
http://blog.curiasolutions.com/the-great-web-framework-shootout/
https://github.com/seedifferently/the-great-web-framework-shootout
refreshes with cleared inputs as new. The
form works with other browsers as expected (Firefox, Opera, IE) I'm running
on Windows 7.
Anybody knows what is causing such problem ??
--
Bruno Rocha
[http://rochacbruno.com.br]
pattern, also it can receive some extra values
as fields_order, include_fieldset=True, labels={}, and subform=FORM()
I did not started to code the plugin, I am just wondering about it.
--
Bruno Rocha
[http://rochacbruno.com.br]
Python is a Django-centric community.
http://zerp.ly/rochacbruno
Em 15/02/2012 12:05, Alan Etkin spame...@gmail.com escreveu:
That is the experimental 2.7 runtime version of GAE, I guess they just
didn't bother adding the web2py compatibility information
On Feb 15, 6:54 am, Sebastian E.
2012/2/15 Ciro cal...@gmail.com
badmin/index
se você renomeu para plugin_
então tente
plugin_badmin/index
--
Bruno Rocha
[http://rochacbruno.com.br]
1.
TD(*[INPUT(_value=var) for var in somelist])
2.
td = TD()
for var in somelist:
td.append(INPUT(_value=var))
--
Bruno Rocha
[http://rochacbruno.com.br]
of performance.
Someone already implemented it directly with web2py FORM, SQLFORM ?
--
Bruno Rocha
[http://rochacbruno.com.br]
thank you all, this post is a livensing tutorial.
I changed Movuca to LGPL, I will talk to Michele about facebook contribs.
I am finishing the instalation interface and admin panel. Planning to pack
and release b0.1 until next weekend.
Thank you all for the help.
http://zerp.ly/rochacbruno
Em
in the second example the DAL query operator == is taking care of trying to
convert your data to the right type.
http://zerp.ly/rochacbruno
Em 14/02/2012 05:14, Annet anneve...@googlemail.com escreveu:
I posted a question asking why this doesn't work:
if request.args(0)==1
the answer:
to
work).
Would anyone be interested in making a dedicated standalone IDE for
web2py?
--
--
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http://www.warplydesigned.com
http://www.fitnessfriendsfinder.com
--
Bruno Rocha
[http
I am interested in this, did you see how Magento inline translations works?
Let me know if I can help.
http://zerp.ly/rochacbruno
Em 10/02/2012 13:42, Bruce Wade bruce.w...@gmail.com escreveu:
Hello,
I am working on a module for my current site that will make doing
internationalization
On Fri, Feb 10, 2012 at 1:00 PM, Wikus van de Merwe
dupakrop...@googlemail.com wrote:
GPLv3
Whats the key differences between GPLv3 and LGPLv3 ?
--
Bruno Rocha
[http://rochacbruno.com.br]
/Home]
Maybe I am going to use another libraries, how can I know if it is
compatible or not?
--
Bruno Rocha
[http://rochacbruno.com.br]
requete/statement : ??
sql =
-- if tag :
sql += tag = xxx
-- if status:
sql += and status = xxx
result = db(sql).select()
it's just an example, wich don't work, but i don't understand how to
chain condition of a query :$
Best regards
--
Bruno Rocha
[http://rochacbruno.com.br]
: http://code.google.com/p/web2py/
official : http://www.web2py.com/
--
Bruno Rocha
[http://rochacbruno.com.br]
outside the function, it will be evaluated
only at the first request, and for the subsequents, the request object will
always be the same.
--
Bruno Rocha
[http://rochacbruno.com.br]
important
feature
for Large complex systems. My Project is growing big and should be able
to
organize code.
50 files of code spreading inside just one controller folder is a
management nightmare.
Thanks.
--
Bruno Rocha
[http://rochacbruno.com.br]
I dont know exactly how it works, but I had problems serializing db in to
current, so Massimo said to always pass it explicitly to classes ad
functions, I remember that SQLITE worked, but not Postgres.
--
Bruno Rocha
[http://rochacbruno.com.br]
most of the speed problem when it is needed, but
still maintains a lot of the features of the SQL DAL processing.
--
Bruno Rocha
[http://rochacbruno.com.br]
for this?
--
Bruno Rocha
[http://rochacbruno.com.br]
anyone wishing to take open source code for
free, closing it and sell binary only copies.
That really hurts free software in this case.
--
Bruno Rocha
[http://rochacbruno.com.br]
/web2py/
official : http://www.web2py.com/
--
Bruno Rocha
[http://rochacbruno.com.br]
was not an attribute of session?
Thanks,
Cliff Kachinske
--
Bruno Rocha
[http://rochacbruno.com.br]
it?)
--
Bruno Rocha
[http://rochacbruno.com.br]
://www.warplydesigned.com
http://www.fitnessfriendsfinder.com
--
Bruno Rocha
[http://rochacbruno.com.br]
+1 I would like to have it, lets start coding?
http://zerp.ly/rochacbruno
Em 18/01/2012 22:02, António Ramos ramstei...@gmail.com escreveu:
is it dificult to do something like this in web2py?
http://blog.aizatto.com/2009/12/07/ruby-on-rails-finite-state-machine-plugin-workflow/
of the page rendered, and there is some
debugging information.
How can I disable it?
regards
Praveen
--
Bruno Rocha
[http://rochacbruno.com.br]
intranets, also we are going to offer
commercial support and commercial plugins when the app outs of beta.
--
Bruno Rocha
[http://rochacbruno.com.br]
the plugin with any
license (not?)
So if someone change the core, it will be needed to released the changes as
open source.
--
Bruno Rocha
[http://rochacbruno.com.br]
.
Is there a license?
--
Bruno Rocha
[http://rochacbruno.com.br]
OK, I am going to change it to LGPL3 (the same of web2py)
--
Bruno Rocha
[http://rochacbruno.com.br]
/Resources/applications/images/views/default/index.html,
line 79
response.write('\n ', escape=False)
^
SyntaxError: invalid syntax
TiA.
Andreas
--
Bruno Rocha
[http://rochacbruno.com.br]
it
without code distribution, for example in a software as service model. Only
AGPL will prevent that, as it requires to make the source available
whenever the code is deployed on a server.
--
Bruno Rocha
[http://rochacbruno.com.br]
...@googlegroups.com
details : http://groups.google.com/group/web2py-developers
the project: http://code.google.com/p/web2py/
official : http://www.web2py.com/
--
Bruno Rocha
[http://rochacbruno.com.br]
16 GB shared across requests is called Database, to run a memory like
database you should go with Redis!
Not,
PowerGrid is based in pure Jquery Templates
--
Bruno Rocha
[http://rochacbruno.com.br]
On Sun, Feb 5, 2012 at 2:21 PM, Niphlod niph...@gmail.com wrote:
kill -1 `cat /var/run/uwsgi-python/appname/pid`
Thanks! that works!
--
Bruno Rocha
[http://rochacbruno.com.br]
with this approach is there a way to force web2py to tell about errors
found when loading a module?
This is a known issue, we are looking for a good solution, I am testing
traceback module, but it cannot catch the error message from
custom_importer.
--
Bruno Rocha
[http://rochacbruno.com.br]
in request.post_vars.items()})
--
Bruno Rocha
[http://rochacbruno.com.br]
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]
. (to slow)
thanks
--
Sebastian E. Ovide
--
Bruno Rocha
[http://rochacbruno.com.br]
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
Em 03/02/2012 06:41, Manuele Pesenti manuele.pese...@gmail.com escreveu:
Hi!
Can you suggest me how can I write a validator for sql table names?
I
, but anyway it can be implemented based in
Table.validate_and_update
--
Bruno Rocha
[http://rochacbruno.com.br]
31, 2012 at 7:54 PM, Bruno Rocha rochacbr...@gmail.comwrote:
Hi Bruce,
delete the database if the sample app created one, then replace
modules/datamodel/user.py with this https://gist.github.com/1714979
--
Bruno Rocha
[http://rochacbruno.com.br]
--
--
Regards,
Bruce Wade
http
request if
I'm using any special chars like %21 (!) or umlauts. Web2py is running
with the fcgihandler and Lighttpd. All special chars are encoded by
using urllib.quote().
Please help!
Thanks a lot.
--
Bruno Rocha
[http://rochacbruno.com.br]
Rocha rochacbr...@gmail.com
Bootstrap 2 released, full responsible layout!
I am working on porting scaffold app to bootstrap with jquery ui support!
http://twitter.github.com/bootstrap/download.html
http://addyosmani.github.com/jquery-ui-bootstrap/
--
Bruno Rocha
[http
',
self.db.languages.code, self.db.Language.code, self.entity.code. Tried
deleting the database but still same issue.
--
Regards,
Bruce
On Wed, Feb 1, 2012 at 9:37 AM, Bruno Rocha rochacbr...@gmail.comwrote:
You can set visibility and other options, but you cant use
urllib.quote().
Post an example, please, and the full text of the invalid-request
message.
--
Bruno Rocha
[http://rochacbruno.com.br]
On Wed, Feb 1, 2012 at 4:39 PM, Dan kor...@ironshark.de wrote:
Could this be fixed in the next update?
It is not a bug that needs to be fixed, certainly it is a security decision!
--
Bruno Rocha
[http://rochacbruno.com.br]
:14 AM, Sanjeet Kumar sanjeet@gmail.comwrote:
How to call the Controller function from javascript
--
Bruno Rocha
[http://rochacbruno.com.br]
that
do not use forms?
Regards
Johann
--
Because experiencing your loyal love is better than life itself,
my lips will praise you. (Psalm 63:3)
--
Bruno Rocha
[http://rochacbruno.com.br]
://hittingsmoke.com/blog/posts/view/1
I feel like this is simple and I'm just overlooking the obvious. Thanks.
--
Bruno Rocha
[http://rochacbruno.com.br]
to sql update)
It seems that crud.update is handling one record.
I thought about looping (for) and/or executesql.
An example will be perfect.
Regards,
Ashraf
--
Bruno Rocha
[http://rochacbruno.com.br]
...
*
On Tue, Jan 31, 2012 at 7:21 PM, Ashraf Mansour ad...@aqar-riyadh.comwrote:
Thank you for the immediate reply.
my problem is how and where to write the statement in controller and
views ?
Regards,
Ashraf
--
Bruno Rocha
[http://rochacbruno.com.br]
Hi Bruce,
delete the database if the sample app created one, then replace
modules/datamodel/user.py with this https://gist.github.com/1714979
--
Bruno Rocha
[http://rochacbruno.com.br]
...
--
Bruno Rocha
[http://rochacbruno.com.br]
the same for me, I always have to kill - 9 PID.
But it only happens after some time.
http://zerp.ly/rochacbruno
Em 29/01/2012 14:27, Massimo Di Pierro massimo.dipie...@gmail.com
escreveu:
I would like to post web2py 2.0 since we have no major pending issues.
Yet there are two issues I would
I like the idea. Currently I am loading user groups on login.
I just think it have to be called auth.user_groups so it will be more
compatible with auth.user_id
http://zerp.ly/rochacbruno
Em 29/01/2012 23:17, Massimo Di Pierro massimo.dipie...@gmail.com
escreveu:
auth.mygroups
is a
:
I'd use folders inside models.
I think I'd use web2py infrastructure that's already available to me.
And, AFAIK, /modules were not planned for that. Except for pluggable apps.
--
Vinicius Assef.
On Fri, Jan 27, 2012 at 10:35 PM, Bruno Rocha rochacbr...@gmail.comwrote:
I am using
and a chat.
--
Bruno Rocha
[http://rochacbruno.com.br]
:
invalid view (default/data.html)
I did expect something like a list of tables.
Out of the box there seems to be no default/data.html view.
Do I have to write my own data.html view to test the CRUD functionality?
Or did I do something wrong in the setup?
Regards
-Gian.
--
Bruno Rocha
[http
://www.cos-la.net
http://alfonsodg.net
Twitter: @alfonsodg
Redes sociales: alfonsodg
Telef. 991935157
1024D/B23B24A4
5469 ED92 75A3 BBDB FD6B 58A5 54A1 851D B23B 24A4
--
Bruno Rocha
[http://rochacbruno.com.br]
to restart?
Thanks
--
Bruno Rocha
[http://rochacbruno.com.br]
I also noted best performance directly rendering the templates and caching
views where it can be cached.
just replacing
return dict()
with
return response.render(filename, context)
in conttrollers and also usins @cached controllers and cached queries.
the bottleneck is always server and
I am using /models just to define small global functions and to set some
response and request keys.
All my code including datamodels I am putting into /modules
In my mind I changed the /models to /scripts or /batches so it is more easy
to understand why avoiding it.
my current structure is:
a lot of things woth both resources
unlock(resource B)
unlock(resource A)
else
so other things
unlock(resource A)
do more things
db.commit()
do more staff
any better idea ?
thansk
--
Sebastian E. Ovide
--
Bruno Rocha
[http
maybe if there's a way to .close() the db to be able to define it again.
http://zerp.ly/rochacbruno
Em 26/01/2012 12:18, Massimo Di Pierro massimo.dipie...@gmail.com
escreveu:
You cannot clone it. but can make two.
On Jan 26, 3:10 am, Sebastian E. Ovide sebastian.ov...@gmail.com
wrote:
2)
On Fri, Jan 27, 2012 at 12:06 AM, Tito Garrido titogarr...@gmail.comwrote:
Hey Matthew,
Were you able to implement facebook + web2py login?
I have facebook + google + web2py login in http://movu.ca/demo (source in
github)
--
Bruno Rocha
[http://rochacbruno.com.br]
))
AttributeError: 'NoneType' object has no attribute 'user'
Anybody got a clue what's going on?
--
Bruno Rocha
[http://rochacbruno.com.br]
You have to unpack the dictionary with **
ddb.mytbl.insert*(***ddict)
In Python dictionaries can be unpacked using ** and lists are unpacked with
*, it is knows as *args and **kwargs
optionally you can use the db.mytbl.filter_fields to remove the unknown
fields from the dict.
--
Bruno Rocha
For those who are looking for inspiration on how to develop a good
traditional-cms with web2py, take a look in to
http://www.fork-cms.com/before starting your code!
--
Bruno Rocha
[http://rochacbruno.com.br]
. Is it possible to go over in loading the page like the network was
completly unreachable?
thanks
Manuele
--
Bruno Rocha
[http://rochacbruno.com.br]
'actual_rows' attribute in the SQLFORM object
Is there a way to access actual rows (after a search) in .grid?
--
Bruno Rocha
[http://rochacbruno.com.br]
Email1.PNG
14KViewDownload
Email2.PNG
23KViewDownload
--
Bruno Rocha
[http://rochacbruno.com.br]
schemas. Can this line be
removed?
--
Bruno Rocha
[http://rochacbruno.com.br]
I am using Git
Em 24/01/2012 12:20, Ross Peoples ross.peop...@gmail.com escreveu:
Which one are we using as the primary repo now, is it Google Code or
GitHub?
Yes it is very nice, I am already using since the beta in http://movu.ca, I
am also developing a boostrap theme for the CMS
--
Bruno Rocha
[http://rochacbruno.com.br]
??
if it possible, how we can build this password manually ??
Thanks
--
Bruno Rocha
[http://rochacbruno.com.br]
self[key]
File /home/bruce/projects/web2py/gluon/dal.py, line 5457, in __getitem__
return dict.__getitem__(self, key)
KeyError: '_id'
with default auth_user table and some extra_fields added
--
Bruno Rocha
[http://rochacbruno.com.br]
on github should
be fine. You will find about 10 tickets marked as closed but the
trunk in googlecode will not show the fix.
Hopefully this will be fixed today.
Apologies.
Massimo
--
Bruno Rocha
[http://rochacbruno.com.br]
!
return dict(Erklaerung=Erklaerung ,
Veranstaltungsausgewaehlt=Veranstaltungsausgewaehlt, form=form)
--
Bruno Rocha
[http://rochacbruno.com.br]
601 - 700 of 2316 matches
Mail list logo