thanks,
I'll take a look at those.
cheers,
Stef
mdipierro wrote:
> http://web2py.appspot.com/survey/survey/take/5ffc03a6-d848-41c2-90d5-7dd71e89df8d/46476
>
> http://web2py.appspot.com/survey/survey
>
> to create your own. Reporting tools need to be improved. I found they
> have some problems.
>
Hi,
i've been trying all day to work out how to do this and cannot get it
working completely the way I want it to.
I'm building a blog and want to implement tagging.
The tagging would work as such:
There would be a text, tagging field that would accept multiple comma
or space separated 'tags'.
Cheers massimo.
Gr8 release. :)
On Fri, Feb 6, 2009 at 6:10 AM, mr.freeze wrote:
>
> This looks great! I'm glad auth and auth are integrated now (among the
> other many goodies in this release).
> The new site is looking good. Much more modern looking
> Minor typo here: http://mdp.cti.depaul.e
Grats all!
Very impressive!
On Fri, Feb 6, 2009 at 3:35 PM, Markus Gritsch wrote:
>
> On Fri, Feb 6, 2009 at 4:17 PM, mdipierro wrote:
> >
> > 05/Feb/2009 in 24 hrs
> >
> > 44735 http requests
> > 2340 distinct visitors
> > 216 downloads from distinct visitors
>
> Nice. I think the line "Used
update() and update_record() should accept callables:
def txn(record):
attrs = {}
if record.name == 'bob':
attrs['count'] = record.count + 1
elif record.name == 'alice':
attrs['count'] = record.count - 1
return attrs
#complex transactions
(db.posts.id>0).update(txn)
# simple tra
db.define_table('tag',dbField('name'))
db.define_table('taggable,db.Field('description'),db.Field
('tags','text'))
db.taggable.tags.requires=IS_IN_DB(db,'tag.id','%(name)
s',multiple=True)
Optional:
def tag_widget(self,value,tags=[]):
script=SCRIPT
("""
function web2py_tag(self
http://groups.google.com/group/pyjamas-dev/browse_thread/thread/f051f537ca9ee734#
oky, so i posted a test procedure there, which gets you to the
"first stage". it should turn up any day soon on web2py cos i cross-
posted but hey i'll link it here as well.
it is worthwhile emphasising that
On Feb 6, 10:22 pm, dhmorgan wrote:
> web2py creator Massimo Di Pierro just posted a request for help on
> drafting a brief tutorial on using Pyjamas with web2py (web2py
> disscussion group
> --http://groups.google.com/group/web2py/browse_thread/thread/9bb107c2fb...
> )
GREAT! (hi massimo,
I assume this is in your latest patch. I will try apply it during the
week-end.
On Feb 7, 8:39 am, Robin B wrote:
> update() and update_record() should accept callables:
>
> def txn(record):
> attrs = {}
> if record.name == 'bob':
> attrs['count'] = record.count + 1
> elif record.name
Thanks. Will do so.
On Feb 7, 6:44 am, lkcl wrote:
> On Feb 6, 10:22 pm, dhmorgan wrote:
>
> > web2py creator Massimo Di Pierro just posted a request for help on
> > drafting a brief tutorial on using Pyjamas with web2py (web2py
> > disscussion group
> > --http://groups.google.com/group/web2p
It is not in any patch. It is RFC to decide if it is a good idea and
how it is supposed to work...
this could be a shorter syntax, because you do not construct the
attrs, you just mutate the record directly:
def txn(rec):
if rec.name == 'bob':
rec.count += 1
elif rec.name == 'alice':
I am implementing the joins on GAE, and I realized that you should be
able to perform joins between DAL databases whether it is the same
driver or not.
fsdb = FSDB(...,name='fsdb')
gaedb = GAEDB(...,name='gaedb')
rows = ((gaedb.users.name=='bob')&
(gaedb.users.id==fsdb.users.id)).select(fsdb.use
And what about this:
dal = DAL()
dal.define_database('fsdb','filesystem')
dal.define_database('memdb','memcache')
dal.define_database('ramdb','dict')
cache.mem = CacheClient(db=dal.memdb)
cache.ram = CacheClient(db=dal.ramdb)
cache.disk = CacheClient(db=dal.fsdb)
@cache(request.env.path_info,ti
Namespaces can also be generalized by unifying under the DAL:
dal = DAL()
dal.define_namespace('app',request.application)
dal.define_namespace('shared','_shared')
dal.shared.define_database('gaedb','google')
dal.app.define_database('gaedb','google')
dal.shared.gaedb.define_table('posts',dal.Field
If each define_* returned its 'self', you can build a 'fluent
interface':
http://en.wikipedia.org/wiki/Fluent_interface
dal = DAL()
posts = dal.define_namespace('shared', '_shared').define_database
('gaedb', 'google').define_table('posts')
posts._tablename -> '_shared__posts'
Robin
On Feb 7,
Hi Folks,
t3 have some useful decorators like @xmrpc and @json do you know if we can
use it without t3?
Best Regards,
Tito
--
Linux User #387870
.
_/_õ|__|
..º[ .-.___.-._| . . . .
.__( o)__( o).:___
--~--~-~--~~~---~--~~
You received this
I am for the complex transaction. Not so convinced about the simple
transaction.
On Feb 7, 9:30 am, Robin B wrote:
> It is not in any patch. It is RFC to decide if it is a good idea and
> how it is supposed to work...
>
> this could be a shorter syntax, because you do not construct the
> attrs,
I think oue shoudl just do
db=DB(uri)
where usi can be 'slite://...','mysql://... 'fsdb', 'gaedb', etc.
On Feb 7, 11:25 am, Robin B wrote:
> I am implementing the joins on GAE, and I realized that you should be
> able to perform joins between DAL databases whether it is the same
> driver or no
I am missing the point. Caching in DB?
On Feb 7, 11:40 am, Robin B wrote:
> And what about this:
>
> dal = DAL()
> dal.define_database('fsdb','filesystem')
> dal.define_database('memdb','memcache')
> dal.define_database('ramdb','dict')
>
> cache.mem = CacheClient(db=dal.memdb)
> cache.ram = Cach
This is an un-necessary complication.
I think all we need (eventually) is
db=DB('postgresq://...',pools=20,prefix='xxx')
so that db.define_table('table',) translates into 'CREATE TABLE
xxx_table'. This is not so easy to implement.
On Feb 7, 12:03 pm, Robin B wrote:
> Namespaces can als
Hi Massimo,
I've just did few experiments and it works without reloading.. has
web2py changed in some way regarding the importing of modules ?
when is it necessary to use "reload" ?
thanks
"welcome/modules/mymodule.py"
from gluon.html import *
from gluon.http import *
from gluon.validators imp
Yes. Just make a model that contains
from gluon.storage import Storage
settings=Storage()
settings.rss_procedures=[]
settings.exposed_procedures=[]
settings.xmlrpc_procedures=[]
settings.json_procedures=[]
def rss(f):
settings.rss_procedures.append(f.__name__)
return f
def expose(f):
newbie on web2py, so sorry...
i need to deploy and manage the same application on a distribuited
architecture based on 4 server with a load balancer on the head. how i
can deploy and update the application?
tks
c
--~--~-~--~~~---~--~~
You received this message beca
the best way is just to install the app in a shared folder that
supports file locking.
Else you need to store session in database.
You can find details in the free manual chapters
http://mdp.cti.depaul.edu/examples/static/web2py_manual_cut.pdf
Massimo
On Feb 7, 3:30 pm, cromagn wrote:
> newbi
Thank you Massimo!
It works even without t2?
On Sat, Feb 7, 2009 at 7:59 PM, mdipierro wrote:
>
> Yes. Just make a model that contains
>
> from gluon.storage import Storage
> settings=Storage()
> settings.rss_procedures=[]
> settings.exposed_procedures=[]
> settings.xmlrpc_procedures=[]
> setti
Yes. No need of T2 or T3.
On Feb 7, 5:08 pm, Tito Garrido wrote:
> Thank you Massimo!
>
> It works even without t2?
>
>
>
> On Sat, Feb 7, 2009 at 7:59 PM, mdipierro wrote:
>
> > Yes. Just make a model that contains
>
> > from gluon.storage import Storage
> > settings=Storage()
> > settings.rss
Could any of you guy's run through the T2 "puppy" example using the
new gluon.tools syntax.
I am missing something (porting my T2 based code) and I'm sure this
would get me restarted.
thanks
chris
--~--~-~--~~~---~--~~
You received this message because you are subs
Thanks so much for the response.
Could you explain what you're doing there a little ?
I've had a go at using that, for example the many to one table but
unsure how / where the widget function works or is implemented?
thanks
Michael
On Feb 8, 2:09 am, mdipierro wrote:
> db.define_table('tag',dbF
asap. We need to rewrite T2 to use tools first. if anybody can help
please raise your hand.
Massimo
On Feb 7, 6:58 pm, murray3 wrote:
> Could any of you guy's run through the T2 "puppy" example using the
> new gluon.tools syntax.
> I am missing something (porting my T2 based code) and I'm sure
IS_IN_DB(,multiple=True)
sorry still undocumented is a portable (on GAE) way to do many to
many. it does not use an intermediate table. It stores all keys in the
field like in |3|5|7| etc etc.
It is used for example to select tutorials in the Pycon registration
page (using the jquery multis
http://www.99babysteps.com/how/base/index
This is my first attempt at a web2py app, & contains some web2py
documentation - a work in progress. Currently not taking registrations
or allowing comments. Any constructive comments welcome.
regards,
Peter Etchells
--~--~-~--~~~
love superlazy!
On Feb 7, 7:31 pm, Peter Etchells wrote:
> http://www.99babysteps.com/how/base/index
> This is my first attempt at a web2py app, & contains some web2py
> documentation - a work in progress. Currently not taking registrations
> or allowing comments. Any constructive comments welco
Almost there this
http://groups.google.com/group/web2py/web/web2py.app.pyjamas.tar
works but pyjamas does not understand the json response from the
server.
I am not sure what I am doing wrong. The json response if built in
models/pyjamas.py
Massimo
On Feb 7, 7:08 am, lkcl wrote:
> http://
Sorry but still not quite at the point of understanding, sorry!
Where does def tag_widget(self,value,tags=[]):(etc) go? What file does
it go into? models.py? (this is where i put it but it really hasn't
helped things...)
On Feb 8, 12:35 pm, mdipierro wrote:
> IS_IN_DB(,multiple=True)
>
> s
wow, superlazy is supercool...
On Feb 8, 12:37 pm, mdipierro wrote:
> love superlazy!
>
> On Feb 7, 7:31 pm, Peter Etchells wrote:
>
> >http://www.99babysteps.com/how/base/index
> > This is my first attempt at a web2py app, & contains some web2py
> > documentation - a work in progress. Currentl
Hi,
I'm tring to test web2 1.56 but when I try to use on_failed_authotization
atribute I get:
AttributeError: 'Auth' object has no attribute 'on_failed_authorization'
MODEL:
from gluon.tools import Mail, Auth, Crud # new in web2py 1.56
mail=Mail() # mailer
m
Sorry. You can put it in a module import is and use or just put it in
the model that needs it.
the simple solution is put everything in db.py. When it works you
clean up later.
On Feb 7, 8:45 pm, mickgardner wrote:
> Sorry but still not quite at the point of understanding, sorry!
>
> Where do
It is a bug. For now do
auth.settings.lock_keys = False
then do
auth.settings.on_failed_authorization=URL(r=request,f='error')
On Feb 7, 9:21 pm, Tito Garrido wrote:
> Hi,
>
> I'm tring to test web2 1.56 but when I try to use on_failed_authotization
> atribute I get:
>
> AttributeError: 'Aut
38 matches
Mail list logo