On Mon, May 22, 2017 at 4:35 PM, 'Annet' via web2py-users <
web2py@googlegroups.com> wrote:
> I have the following query and form:
>
> user = db.auth_user(vertexID=vertexID)
>
> form = SQLFORM.factory(db.auth_user, db.auth_dummy,
> extra_fields=extra_fields)
>
> If the form validates I want to upd
On Mon, Jan 18, 2010 at 7:46 AM, mdipierro wrote:
> By custom you mean {{=form.custom.widget.field}} or something else?
>
> That's what I mean.
if I replace the custom form with a regular form everything works fine.
Miguel
--
You received this message because you are subscribed to the Google G
On Wed, Jan 20, 2010 at 4:57 PM, Stefan wrote:
> Thanks for the heads up!
>
> On Jan 20, 10:09 am, mdipierro wrote:
> > The way the web normally works is that requests are initiated by the
> > client, not by the server.
> >
> > To have the server trigger and action in the client without some kind
There's some problem with the "noticia" view since the html of the news body
is rendering as text.
Congratulations on the site. Nice icon set. Is it opensource / free?
Miguel
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this grou
Hello Massimo,
I wonder if web2py's license would allow for a SaaS kind of application?
By SaaS I mean access to the site (web app) would be paid for. In practice
end users would pay a fee for accessing the site functionality. This seems
very, very borderline to me. I know you are not laywers. Bu
On Mon, Feb 22, 2010 at 9:46 AM, Kuba Kucharski wrote:
> I think short answer is this is allowed.
>
> http://osdir.com/ml/web2py/2009-09/msg01859.html
>
> --
> Kuba
>
>
You are right. But I still have doubts.
The way I see it if company X is selling access to some SaaS application.
Let's say an on
On Mon, Feb 22, 2010 at 7:06 PM, Thadeus Burgess wrote:
> This has come up in the past, the topics on this subject are in the
> google group if the search would actually work I would share the links
> to the posts.
>
I've searched too, but what I've found in the group was, in my opinion,
unclear
I'm using the "same name to all input type submits" technique. This is very
nice because it avoids some js and works like a charm :-)
In a regular controller the code works flawlessly. However when I try to put
it in a controller, it fails:
status_form = FORM(_id='status_form')
for status in OPPTY
usage in components is to use set a hidden
input text field via the click event of each button.
Miguel
On Mon, Aug 23, 2010 at 3:54 AM, Miguel Lopes wrote:
> I'm using the "same name to all input type submits" technique. This is very
> nice because it avoids some js and w
hnnycode.com/blog/2010/04/08/jquery-form-serialize-doesnt-post-submit-and-button-values-duh/
>
> We cannot fork jQuery to fix this. Eventually they will fix it.
>
> Massimo
>
> On Aug 23, 8:46 am, Miguel Lopes wrote:
> > As an update, the issue remains with the following combi
On Tue, Aug 24, 2010 at 1:04 PM, mdipierro wrote:
> jquery serialize also does not support type=file. If you have a way to
> get around these, please let me know.
>
>
I've researched this a bit. Although I have not found an authoritarive
source, the "problem" is that Javascript cannot access file
www.tecnicon.pt
is powered by web2py.
miguel
On Mon, Oct 26, 2009 at 2:46 AM, mdipierro wrote:
>
> www.appliedstacks.com is dead. This means I lost a way to keep track
> of web2py sites. So I made something trivial for now:
>
> http://web2py.com/poweredby
>
> I am sure I missing many sites that
Hi,
I'm looking to service another application with a web2py service.
A goal is connect to web2py and download a file via a webservice. I've
managed to do this using urllib (on the desktop client) and by
exposing a service.run in web2py. But the access to the service must
be secure, so I'm wonderi
Hi,
I've been trying to upload a file via a webservice, without any success.
I'm exposing a serv_upload() action via @service.run. How can I get a
handle of the file in the serv_upload() action?
I'm using (trying) to use urllib2 to get the file from the server.
I've googled but haven't seem to ma
On Wed, Dec 9, 2009 at 10:26 AM, Miguel Lopes wrote:
> Hi,
>
> I've been trying to upload a file via a webservice, without any success.
> I'm exposing a serv_upload() action via @service.run. How can I get a
> handle of the file in the serv_upload() action?
>
> I&
/app/default/call/run/add_two/hello/world
>
> Is that what you're looking for?
>
>
> On Dec 8, 11:59 am, Miguel Lopes wrote:
>> Hi,
>>
>> I'm looking to service another application with a web2py service.
>> A goal is connect to web2py and download a fil
On Wed, Dec 9, 2009 at 12:57 PM, mr.freeze wrote:
> I think session.forget is just for optimization since most services
> won't need to track sessions. You can remove it if you need session
> cookies.
Txs,
Miguel
> On Dec 9, 6:41 am, Miguel Lopes wrote:
>> I have call()
Please note that I neglected to encode data below:
data = { "file" : open(full_path, "rb") }
data = urllib.urlencode(data)
Just in case,
Miguel
On Wed, Dec 9, 2009 at 12:13 PM, Miguel Lopes wrote:
> On Wed, Dec 9, 2009 at 10:26 AM, Miguel Lopes wrote:
>> Hi,
>&
I'm posting this reluctantly, because I would expect to be doing
something wrong. However I can't figure out what is wrong.
Playing around with the CRM appliance I introduced a simple ajax
search. Strangely the target div gets loaded with a copy of the entire
page.
My view is as simple as it could
On Mon, Dec 14, 2009 at 12:58 PM, Miguel Lopes wrote:
> I'm posting this reluctantly, because I would expect to be doing
> something wrong. However I can't figure out what is wrong.
>
> Playing around with the CRM appliance I introduced a simple ajax
> search. Strangely t
On Mon, Dec 14, 2009 at 2:29 PM, mdipierro wrote:
> The view of the action served via ajax should NOT {{extend
> 'layout.html'}}.
I suppose / expect this is only the case with the crm appliance?
And, that the wiki example provided in the book correctly extends
layout, as if this is not the case h
mple in the book:
@auth.requires_login()
def list_results():
search_input=INPUT(_id='keyword', _onkeyup="ajax('bg_find',
['keyword'], 'target_div');")
target_div=DIV(_id='target_div')
return dict(search_input=search_input, target_div=target_d
ml'}}
>> goes in the master page, the one doing the ajax call.
>>
>> I still do not understand the problem. I tried you code and it worked
>> as I would expect, no page in page.
>> Can you send me a screenshot?
>>
>> Massimo
>>
>> On Dec 14,
On Mon, Dec 14, 2009 at 4:14 PM, mdipierro wrote:
> I just saw the effect and reminded of a similar problem in the past.
Txs for the help. I was going nuts!
Miguel
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send ema
I have a field with the following requirements:
Field('origin_account_id', db.account),
db.oppty_main.origin_account_id.requires=IS_IN_DB(db, 'account.id', '%(name)s')
In the controller:
form=SQLFORM(db.oppty_main, record=oppty_main, deletable=True,
fields=['name','origin_account
On Wed, Dec 30, 2009 at 2:54 PM, mdipierro wrote:
> before the form=... try
>
> db.oppty_main.origin_account_id.writable=False
>
> you may also want to add:
>
> db.oppty_main.origin_account_id.readable=False
>
Txs for the tip Massimo!
I tried, using readable and writable attributes in the Field
On Wed, Dec 30, 2009 at 2:57 PM, Miguel Lopes wrote:
> On Wed, Dec 30, 2009 at 2:54 PM, mdipierro wrote:
>> before the form=... try
>>
>> db.oppty_main.origin_account_id.writable=False
>>
>> you may also want to add:
>>
>> db.oppty_main.origin_acc
On Wed, Dec 30, 2009 at 3:17 PM, mdipierro wrote:
> Please try 1.74.4 before I look into this more.
I get the same problem with 1.74.4.
I've just reproduced this with a new application using appdamin I also
get the select tag.
I would say this is a bug.
The reproduction code is:
db.define_table(
On Wed, Dec 30, 2009 at 4:10 PM, mdipierro wrote:
> Are you talking about forms you made or forms in appadmin? forms in
> appadmin ignore writable and readable by design. Your own forms should
> not ignore them.
My forms are not behaving as I expected (although that might be the
intended behavior
On Thu, Dec 31, 2009 at 3:57 PM, mdipierro wrote:
> Before
>
> db.oppty_main.origin_account_id.writable=False
>
> insert
>
> db.oppty_main.origin_account_id.represent=lambda id: SPAN(db.account
> [id].name)
>
Others my think differently, but I feel that the expected behavior
would be for the repr
I have:
form=crud.update(db.contact,contact)
which raises an exception due to the model having writable=False on a relation:
db.define_table('contact',
...
Field('account_id',db.account,writable=False),
...
)
Is this correct?
How can I use crud without allowing for the relation to b
On Sun, Jan 3, 2010 at 4:01 PM, Miguel Lopes wrote:
> I have:
>
> form=crud.update(db.contact,contact)
>
> which raises an exception due to the model having writable=False on a
> relation:
>
> db.define_table('contact',
> ...
> Fiel
On Sun, Jan 3, 2010 at 4:17 PM, mdipierro wrote:
> If it is not writable you may aso want to give it a default when you
> crud.create it.
>
Yes!
The better I understand crud the more of SQLFORMs I see disappearing
in my app :-)
Miguel
--
You received this message because you are subscribed to t
I have a form to create related records with an input type select
element that should display a list of records that are also related to
the parent record. What would be the best approach to populate this
form. I'm trying to stick with SQLFORM since I feel this is not
achievable through CRUD.
In c
In many models I have the following field definitions:
...
Field('created_by',db.auth_user,default=me,writable=False),
Field('created_on','datetime',default=request.now,writable=False),
Field('modified_by',db.auth_user, default=me),
Field('modified_on','datetime',default=request.no
On Wed, Jan 6, 2010 at 5:50 PM, Miguel Lopes wrote:
> I have a form to create related records with an input type select
> element that should display a list of records that are also related to
> the parent record. What would be the best approach to populate this
> form. I'm try
I have the following tables: task, opportunity, and oppty_main
With the following relations:
* task.opportunity_id->opportunity.id
* opportunity.oppty_main_id->oppty_main.id
When updating a task I have a SELECT for the related opportunities:
db.task.opportunity_id.requires=IS_NULL_OR(
IS_
On Wed, Jan 13, 2010 at 2:07 PM, Alexandre Andrade
wrote:
> this works for me:
>
> db.plano_aplicacao.codigo.represent= lambda codigo:
> db.natureza_despesa[codigo].codigo + ' - ' +
> db.natureza_despesa[codigo].especificacao ),
("Olá Alexandre" == "Hello Alexandre")
I'm not trying to get to a re
No success.
Here's what I tested in the controller:
* All these alternatives result in an input text with the integer value of
opportunity_id being rendered:
1) db.task.opportunity_id.represent=lambda opportunity_id:
opportunity_id.oppy_main_id.name
2) db.task.opportunity_id.represent=lambda oppor
On Thu, Jan 14, 2010 at 3:26 PM, mdipierro wrote:
> I think all the problems arise from the fact that you do:
>
>IS_IN_DB(db(db.opportunity.id==db.task.opportunity_id),...)
>
> this is a join and you cannot do a JOIN in a validator because you are
> referencing one table, not the temp table r
I have a select field on a form. It might be empty or take one related
value.
I the model:
db.task.contact_id.requires=IS_IN_DB(db,'contact.id','%(name)s')
db.task.contact_id.requires.zero=''
In a custom form:
{{keys, values=[''],[0]
keys.extend([contact.name for contact in contacts])
values.exte
ere on this group).
Miguel
> 2010/1/15 Miguel Lopes
>
>> I have a select field on a form. It might be empty or take one related
>> value.
>>
>> I the model:
>> db.task.contact_id.requires=IS_IN_DB(db,'contact.id','%(name)s')
>>
On Fri, Jan 15, 2010 at 2:00 PM, DenesL wrote:
>
> Does the error occur on the 'empty' option of the select?.
> You are introducing a 0 index value which is invalid in the db
>
>
Yes. You are right!
But how can I have a select with an empty option.
Please note the following extra info:
The sele
On Fri, Jan 15, 2010 at 3:20 PM, DenesL wrote:
> Hi Miguel,
>
> contact_set=dict([(contact.id,contact.name) for contact in contacts])
>
> and in your controller override your requires:
> db.task.contact_id.requires=IS_EMPTY_OR(IS_IN_SET
> (contact_set,zero=None))
>
> note that you can use SQLFORM
I'm wondering how to filter query results based on some sort of user access
rights.
Can this be accomplished with Auth?
The basic use case is giving access to all records to all users, and then
have certain users create records that will be only accessible to a limited
number of users. Limited acc
On Sun, Jan 17, 2010 at 4:50 PM, mdipierro wrote:
> Yes. Look into auth.accessible_query.
>
> For example:
>
> db(auth.accessible_query('read', db.mytable)).select(db.mytable.ALL)
>
> returns a all records of mytable that current logged in user has
> access to:
>
> This does nested select so it i
Cool!
Has soon as I clean somethings I'll upgrade my development version and
check!
Miguel
On Sun, Jan 17, 2010 at 9:27 PM, mdipierro wrote:
> I have rewritten some of the code that deals with dropdowns, in trunk.
> In particular now you can do
>
> IS_IN_SET(...,sorted=True)
> IS_IN_DB(...,sort
On Sun, Jan 17, 2010 at 10:55 PM, mdipierro wrote:
> No auth takes security by the book. If used everything is restricted
> unless permission is granted explicitly.
>
> In your case is would just add a Field
> ('private','boolean',default=False) and if a user tried to access a
> record with priva
With crud when using a custom form boolean fields are not being updated.
If using the default form booleans get updated.
Leopard
web2py source 1.74.4
db SQLite
MacPython 2.5.4
Miguel
--
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To post to t
what about D?
On Thu, Oct 13, 2011 at 4:49 AM, wwwgong wrote:
> Vote for node.js
>
> On Sep 11, 5:40 pm, "dustin.b" wrote:
> > 1+ vote for node.js ;)
> >
> > On 11 Sep., 21:14, David Marko wrote:
> >
> >
> >
> > > Or to node.js :-)
>
Looks great!
It should be clear what the "Awarded the best..." is. Perhaps using
http://www.infoworld.com/sites/infoworld.com/files/imagecache/slideshow_slide/media/image/36SS-bossies-2011-web2py.jpg
or linking to InfoWorld.
Miguel
I'm having problems trying to make gluon.tools.Mail work on a vps, and
wonder if anyone knows what would be a minimal setup for sending mail.
I just need to send the an occasional mail. The server as sendmail working,
which I've confirmed in the command line. However, I'm unable to make it
work via
ince sendmail uses port 25 by default.
Miguel
>
> On Dec 3, 6:36 pm, Miguel Lopes wrote:
> > I'm having problems trying to make gluon.tools.Mail work on a vps, and
> > wonder if anyone knows what would be a minimal setup for sending mail.
> > I just need to sen
Hi Bernado,
2010/12/4 Bernardo Botella Corbí
> Hi Miguel,
>
> which test did you do from command line?
> does web2py print something? Any error?
>
> Try to do the next thing from the command line:
> tail -f /var/log/mail.log
>
If I try to send mail from web2py using local resources it fails sil
0 at 9:44 AM, José L. wrote:
>
>
> On 4 dic, 21:54, Miguel Lopes wrote:
> > Hi Bernado,
> >
> > 2010/12/4 Bernardo Botella Corbí
> >
> > > Hi Miguel,
> >
> > > which test did you do from command line?
> > > does web2py print somethi
with sendmail from web2py.
Txs for pointing me to the right direction.
Miguel
On Sun, Dec 5, 2010 at 5:17 PM, Miguel Lopes wrote:
> Ok. here's the situation:
>
> I only have sendmail installed and running, no exim, postfix or other. I've
> checked this listing running servic
Hi,
To learn Python I found these very helpful (no particular order):
- Hetland's stuff is concise and clear which is not always the case :-)
- http://hetland.org/writing/instant-hacking.html
- http://hetland.org/writing/instant-python.html
- Alan Gaud's on-line is also very cle
gluons/tools.py
Txs,
Miguel
On Sat, Jan 29, 2011 at 12:29 AM, Niphlod wrote:
> call_or_redirect() is the real "addition" here you can use both a
> URL or a function to manage on_failed_authentication and
> on_failed_authorization ... take a look in gluon/utils.py
>
> On Jan 28, 1:48 am, mi
On Fri, Jan 28, 2011 at 11:01 PM, mikech wrote:
> I've also found it pretty useful recently to run the web2py app from source
> in a good ide, in my case WingIDE which I have a 10 day trial on, and step
> thru the program using the debugger.
Eclipse or Aptana with PyDev is also a good and free so
You got me in the right direction.
Txs.
I'll be starting a separate thread on what I'm trying to achieve, so
far without success.
On Sat, Jan 29, 2011 at 8:13 PM, Niphlod wrote:
> sorry, my mistake!
>
> On Jan 29, 4:01 pm, Miguel Lopes wrote:
>> gluons/tools.py
>
on_failed_authorization can be a URL or a function.
I'm think I could use this to achieve conditional login redirection.
A use case would be service calls returning a simple string (or a JSON
or an XML reply to non-validated requests), while still allowing for
regular (non-service requests) to be r
c', 'failed_login']))
else:
redirect(URL(request))
auth.settings.on_failed_authorization = failedAuthHandler
Since using "failed_login" as a regular action or as a public_call
makes no difference. is this the correct way to use
auth.settings.on_failed_authoriza
On Sun, Jan 30, 2011 at 9:16 PM, Niphlod wrote:
> try with auth.settings.on_failed_authorization =
> failedAuthHandlerandler()
>
> it works for me ^_^
>
Not for me! And I can't see how.
Miguel
I need to deploy fast.
Since currently I've way too much on my hands already, I wonder if any
of the available hosting alternatives will setup a web2py environment
for the customer and if any of you could express their personal
experience with it (positive, negative, things to watch for...).
Alt
A little typo!
Should be "isinstance"
Traceback (most recent call last):
...
@service.amfrpc3
File "/Applications/web2py/gluon/tools.py", line 2128, in amfrpc3
if not ininstance(domain,str):
NameError: global name 'ininstance' is not defined
web2py version 1.65.5 (2009-07-15 17:10:40
On Sun, Jul 26, 2009 at 4:11 AM, mdipierro wrote:
>
> It should be
>
> @service.amfrpc3('somedomain')
>
> is this what you are using?
>
> Massimo
Since it's exposed at: http://localhost:8000/myapp/default/call/amfrpc
I guess that the controller is "default", I'm using @service.amfrpc3('default')
On Tue, Jul 28, 2009 at 4:48 PM, carlo wrote:
>
> After several tries I have to ask: are any particular issues with
> embedding flash objects in views?
>
> I put the usual in my view:
>
> {{url=URL(r=request,c='static',f='somefilename.swf)}}
>
>
>
>
>
>
> what's bad here? Thank you
> carlo
I
On Thu, Jul 30, 2009 at 12:18 PM, carlo wrote:
>
> Thank you Miguel but I found out that the problem is with my swf file.
> It is originally an mp4 file, I tried to convert it with Flash CS4 but
> any options I choose seems not working when I call the file form my
> web2py view.
If its in swf, it
On Thu, Jul 30, 2009 at 4:58 PM, Jonathan Lundell wrote:
>
> On Jul 30, 2009, at 7:47 AM, Jonathan Lundell wrote:
>
>> On Jul 30, 2009, at 7:42 AM, Miguel Lopes wrote:
>>
>>> If its in swf, it should work.
>>>
>>> Although, I notice an error in
On Fri, Jul 31, 2009 at 1:21 AM, Miguel Lopes wrote:
> On Thu, Jul 30, 2009 at 4:58 PM, Jonathan Lundell wrote:
>>
>> On Jul 30, 2009, at 7:47 AM, Jonathan Lundell wrote:
>>
>>> On Jul 30, 2009, at 7:42 AM, Miguel Lopes wrote:
>>>
>>>> If its i
I also prefer A.
But I like the current logo better and think that it should have been
included in the pool?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to
On Fri, Aug 14, 2009 at 3:21 PM, mdipierro wrote:
> On Aug 14, 8:57 am, Miguel Lopes wrote:
>> I also prefer A.
>> But I like the current logo better and think that it should have been
>> included in the pool?
>
> What do you refer to as "current logo"?
>
On Sun, May 22, 2011 at 9:02 AM, 黄祥 wrote:
> hi,
>
> is it possible to use form in loop view?
>
> e.g.
> {{for i, row in enumerate(rows):}}
>{{if i == items_per_page: break}}
>
>{{db.blog_comment.blog_id.default = row.id}}
>{{form = crud.create(db.blog_comment,
>
On Mon, May 23, 2011 at 10:50 AM, Stifan Kristi <
steve.van.chris...@gmail.com> wrote:
> ...
> === controller ===
> def blog_index():
> for i, row in enumerate(rows):
>if i == items_per_page: break
>
>db.blog_comment.blog_id.default = row.id
>form = crud.create(db.blog_
On Wed, Jun 1, 2011 at 7:40 PM, Jason Brower wrote:
> Me does a dance. Thanks!
> And yes it makes rain :-)
>
I'm experimenting with dynamically generating functions, aka 'actions' in
controllers. However, I've been unsuccessful. I can use exec and closures
successfully in regular Python code, but I can't make it work with web2py.
Any thoughts on how to achieve this?
A closure example - FAILS in web2py:
On Wed, Jul 6, 2011 at 1:57 PM, Massimo Di Pierro <
massimo.dipie...@gmail.com> wrote:
> Can you explain the goal?
>
> On Jul 6, 3:23 am, Miguel Lopes wrote:
> > I'm experimenting with dynamically generating functions, aka 'actions' in
> > control
Thanks. In conjunction with routes could supply a solution (shortening the
urls).
I think I should rethink the payoff (see my reply to Massimo regarding my
goals).
Thanks,
Miguel
On Wed, Jul 6, 2011 at 3:12 PM, Jonathan Lundell wrote:
> On Jul 6, 2011, at 1:23 AM, Miguel Lopes wrote:
>
7;dynamical/' part form the URL.
>
> This allows you to do what you want without necessarily meta-
> programming.
>
> On Jul 6, 9:35 am, Miguel Lopes wrote:
> > Thanks. In conjunction with routes could supply a solution (shortening
> the
> > urls).
> > I
It is unlikely that this is web2py related, but I'm about to go crazy with
this one. But I guess it's such a general thing someone must know what is
going on.
I'm using different uploaded media, such as files, images and flash files
(.swf files). I can display images without problem, but not flash
You can also use form.errors
if form.accepts(...):
...
elif form.errors:
...
HTH,
Miguel
On Wed, Jul 6, 2011 at 5:08 PM, Anthony wrote:
> form.accepts(...) returns True if all validators pass and False otherwise
> -- is that what you're looking for?
>
> Anthony
>
> On Wednesday, July 6, 2
I see closures are not even necessary. The solution is using routes.
For the interested routes is ok for production (the embargo was old-news).
Here's some info:
https://mail.google.com/mail/?shva=1#search/routes+production/12a53a18e7f6b2d5
Miguel
On Wed, Jul 6, 2011 at 4:03 PM, Miguel
Yesterday I posted about implementing dynamic actions (functions) in a
controller.
This is interesting because one can achieve clean urls, instead of passing
the names of the dynamic pages in args or vars. In a system with a cms this
has the benefit of user defined pages being indistinguishable fro
:-)
On Fri, Jul 8, 2011 at 2:25 AM, Massimo Di Pierro <
massimo.dipie...@gmail.com> wrote:
> yes. even better use router (vs routes)
>
> On Jul 6, 10:03 am, Miguel Lopes wrote:
> > Humm,
> >
> > Nice. Yes, closures are enough, and cleaner too.
> > Is
Yes. That's what I meant. Thank you for making it much clearer.
Like you mention the benefit is unclear. This makes it unnecessary to toy
with routes or router, which I believe is in the spirit of web2py and
benefits beginners with one less location to edit, thing to learn (routes
rules vs. simply
Yes. In my opinion basic Python is the only "almost requisite". The book
does a very good job at hand holding, it really helps to know a little
Python (which the book also caters for). My advice is follow along with the
book. If you get stuck by any Python stuff. Take a minute out of web2py and
jus
Let me add the advantage that the initiative stimulates focuses contribution
and supplies a platform for learning.
Some people may not wish, have the time or expertise to get involved with
the development of the web2py framework. This sort of initiative supplies a
narrower ground for contribution
I think this behavior I've just found is worth sharing.
Templates don't honor the if statement that conditionally "try" to include
or exclude template blocks.
I've just detected this (in 1.96.4 I think) and upgrade to 1.97.1 and the
issue/behavior remains.
{{rsd=None}}
{{if rsd!=None:}}
{{bloc
I missed that comments feature. Great you added one!
Miguel
On Tue, Jul 19, 2011 at 12:48 PM, Nico de Groot wrote:
> Good point, was just going to post this myself, you beat me to it. A hint
> should be added to the web2py book in chapter 5
> http://web2py.com/book/default/chapter/05?search=bloc
No problem be as criticl as you wish.
> Please do not take my critique in a bad way, but be very careful when
> adding "blocks of code" in your views, I understand the example above
> is just a "code sample" to illustrate a perceived deficiency in the
> view templating system, but unless you are
Actually I began by using functions too. But had some problems (can't
remember exactly what), and view functions, even if comprised exclusively of
view code didn't really tick my fancy. I much rather extract those snippets
of HTML to a module or model file exclusively dedicated to html snippets. In
There is some private offering, which I think should be listed in web2py.com
:
* a program at DePaul University:
http://www.cdm.depaul.edu/ipd/Programs/Pages/WebDevelopmentwithPython.aspx
* a program in Brasil: http://www.cursodepython.com.br/
And free courses (structured content, besides the www
Cool!
On Fri, Jul 22, 2011 at 3:24 PM, Bruno Rocha wrote:
> I have some (in portuguese)
>
> web2py + Ipython ( IDE for what?)
> http://vimeo.com/26387038
>
> Comet
> http://vimeo.com/18399381
>
> PowerTable
> http://vimeo.com/18447603
>
> Uploadify
> http://vimeo.com/20107460
>
> I am also recor
Great work, it will be/is very useful for many of us!
Thanks,
Miguel
On Fri, Jul 22, 2011 at 11:35 PM, Bruno Rocha wrote:
> Hi,
>
> I present you PowerGrid Plugin (now in beta 0.1) [
> http://labs.blouweb.com/PowerGrid/]
>
> What is it?
>
> A plugin to show, manage and paginate data
> It works w
1. web2py is especially good for freelancers and single developers because
it is such a tight package. Everything works really well together and right
out of the box.
2. From the forum I get the impression that there is a lot of intranet work.
But if you look for sites built with web2py I think th
The correct syntax is:
db(query).select( fields_to_include )
You can find the details at:
http://web2py.com/book/default/chapter/06#Query,-Set,-Rows
as for db.select(db.table.id>1) I would expect it to create a ticket due to
a KeyError since db as no select method.
2011/7/28 António Ramos
> c
The DAL is not SQL, it has a diferent logic.
What are you trying to achieve?
2011/7/28 António Ramos
> this
> db(db.requests.product==*db.products.id*==3).select()
>
> returns all field from *product* table only
>
> this
> db(db.products.id==*db.requests.product*==3).select()
>
> returns all
> product.description
>
>
> thank you
>
>
> 2011/7/28 Miguel Lopes
>
>> The DAL is not SQL, it has a diferent logic.
>> What are you trying to achieve?
>>
>>
>>
>> 2011/7/28 António Ramos
>>
>>> this
>>> db(d
Is there a way to find the previous location / address in an action?
For example:
Currently in www.domain.com/a/c/f/arg1
Follow some link to action_x
def action_x:
if something_is_wrong:
redirect(request.last_location) # including args
...
My goal is to send the user to the page is commi
s reliable or safe but request.env.http_referer
> might be what you're looking for.
>
> On May 3, 4:39 pm, Miguel Lopes wrote:
> > Is there a way to find the previous location / address in an action?
> >
> > For example:
> > Currently inwww.domain.com/a/c/f/arg1
&g
1 - 100 of 146 matches
Mail list logo