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
e=%s', 'cname_list')" %
>> HKEY
>> return form
>>
>> def name_list():
>> if not URL.verify(request, hmac_key=HKEY): raise HTTP(403)
>> if session.name == None:
>>session.name = "0"
>> else:
>> sess
t;
return "Name list component: %s" % session.name
# the view index.html
{{extend 'layout.html'}}
{{=LOAD('inter_component', 'myform', ajax=True, target="cmy_form")}}
{{=LOAD('inter_component', 'name_list', ajax=True, targ
On Mon, Jul 2, 2012 at 2:08 PM, Santiago wrote:
> Hello,
>
> I have a field defined as below :
>
> Field('id_indra', length=5, label=T('ID Indra'), notnull=False,
> requires=[REQUIRED, MAX_5, IS_MATCH(r'^[a-zA-Z0-9]{5}$')])
>
> Is it is possible to intercept all inserts / updates over this field
I have a view index.html with two components - myform and namelist.
The index action requires_login() and both myform and namelist actions
requires_signature()
This works as expected.
The problem is that the update of namelist via response.js set in the
myform action fails.
I figure that since in
Find it.
titles = "'"+titles.replace('|', "','")+"'"
with:
SCRIPT(" ... jQuery.prettyPhoto.open(**images=%(images)s,titles=[%(**
titles)s]);})" % dict(images=images, titles=titles), _language='javascript')
works! Tested on Firefox and Safari.
Though I've failed to find any references on this (th
No dia 27 de Mar de 2012 17:46, "Derek" escreveu:
>
> Check the meta tag - if it's UTF-8, that's most likely the issue. You
can try ISO-8859-1 and see if that works for you.
>
Txs. Will also check that.
No dia 27 de Mar de 2012 17:41, "Derek" escreveu:
>
> What's the character set in your browser?
>
I have safari set for default. But I don't think that's the problem,
because if I hardcode the string there is no problem.
I'm certainly missing something, but the culprit operation seems to be the
st
No dia 27 de Mar de 2012 16:13, "Miguel Lopes"
escreveu:
>
>
> BTW this is a prettyPhoto widget I developed for plugin_wiki, which is
awesome :-)
>
I mean plugin_wiki is awesome :-)
lol
This is not strictly a web2py issue. Though it is a problem that apps
dealing with some character sets must deal with.
I confess that the source of my problem is that I have been delaying
reading-up on encoding and decoding far too long. But I'm pressed for time
and I'm sure that this is a simple i
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
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 :-)
>
> 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
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
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
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
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
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
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
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
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
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
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
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
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
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
:-)
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
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
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
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
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
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
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:
>
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
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, Jun 1, 2011 at 7:40 PM, Jason Brower wrote:
> Me does a dance. Thanks!
> And yes it makes rain :-)
>
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 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 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
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_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
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 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
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
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
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
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
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
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
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
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
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
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
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
dded in view.
>
> On Aug 13, 10:01 am, Miguel Lopes wrote:
> > Yes your explanation makes perfect sense, and that solves my
> encapsulation
> > problem. Thank you.
> > You mention normal web2py controllers and views, what would the other
> kind
> > be?
> >
&
Yes your explanation makes perfect sense, and that solves my encapsulation
problem. Thank you.
You mention normal web2py controllers and views, what would the other kind
be?
Miguel
On Fri, Aug 13, 2010 at 1:19 PM, mdipierro wrote:
>
> 2) You can include a js in a component
>
> def oppty_contact
In order to include scripting in a very dynamic component I'm appending a js
file to the response files of every template that uses the component, such
as:
{{response.files.append(URL(request.application,'static/base_components','view_oppty.js'))}}
{{extend 'layout.html'}}
However, this has the p
plication,'default','view_detail',args=[rec.contact.id])
>
> .load is not appended to the link.
>
> 2010/8/10 Miguel Lopes
>
> I'm pretty sure this as been asked, but I can't find it anywhere.
>>
>> I would like to use the URL function
I'm pretty sure this as been asked, but I can't find it anywhere.
I would like to use the URL function to construct a link inside
a component view (i.e. views/components/view_x.load). This would be a link
to a completely new page, to be loaded in the browser and not in the
component div. However,
le').my_func()}
>
> # In modules/my_module.py
> def my_func():
>return FORM(...)
>
> Iceberg
>
> On Aug 2, 10:19 pm, Miguel Lopes wrote:
> > yes I've tried it. local_import does not work. the LOAD function
> signature
> > expects a controller name and fun
On Tue, Aug 3, 2010 at 2:41 AM, pabloest wrote:
> Thank you for the extended description.
> This is almost exactly what I had been following.
You welcome. Interesting to know you came up with a similar solution.
> I had skipped the
> arguments partially because I think Eclipse is not taking t
Aug 2, 2010 at 2:51 PM, Bruno Rocha wrote:
> Have you tried local_import()?
> I really dont know if that will work in your case, Give it a try
>
> http://web2py.com/book/default/chapter/04?search=local_import
>
> 2010/8/2 Miguel Lopes
>
> I have several functions returnin
I have several functions returning forms in a module file, and started
experimenting with the LOAD function, but I can figure out how to use this
functions without moving them to the controller. I would prefer to keep
these functions in a module for code organization reasons. I wonder if it is
poss
Here's my naif setup - note that this should be exactly the same for Eclipse
or Aptana (Aptana is Eclipse + goodies):
1. Use web2py source.
2. Make sure you have PyDev installed in Eclipse/Aptana.
3. Create a project a PyDev project:
* this will link to the web2py folder on the file system - so
On Thu, Jul 29, 2010 at 2:38 PM, pabloest wrote:
> Hi,
>
> I'm having some trouble simply getting started with Eclipse and Pydev
> for web2py development.
> I can't get into a debugging mode with web2py.py and the web server
> will not even start. When I right-click and select Debug As > Python
>
On Sun, Aug 1, 2010 at 9:20 AM, Neveen Adel wrote:
> Hello,
>
> i have function for example
> def form_1():
> form = SQLFORM (_name='form_1')
>
> and i want inside a different function to load this form and insert
> element into it
>
> For example:
>
> def another_fn(form_name):
>form = #
Hi,
How can a token be stored between service calls in order to know a service
is logged in?
Miguel
oes not look like a browser problem)?
>
> Massimo
>
> On May 17, 1:43 pm, Miguel Lopes wrote:
> > The net effect is that response.files.append seems to be ignored.
> > The client receives the page but the appended files are missing.
> >
> > On Mon, May 17, 2010 a
The net effect is that response.files.append seems to be ignored.
The client receives the page but the appended files are missing.
On Mon, May 17, 2010 at 7:38 PM, mdipierro wrote:
> How does it fail?
>
> On May 17, 1:29 pm, Miguel Lopes wrote:
> > Correction and extra data:
&
Correction and extra data:
Fails on Windows XP with 1.78.2 with SSL enabled,
Works on the same setting with 1.77.3 SSL off.
On Mon, May 17, 2010 at 7:12 PM, Miguel Lopes wrote:
> I have an app running smoothly on OSX that fails on Windows XP.
> I've traced the cause to
I have an app running smoothly on OSX that fails on Windows XP.
I've traced the cause to the use of response.files.append(URL(...)) in views
that extend layout
In OSX this works with web2py 1.74.4:
{{response.files.append(URL(r=request, c='static/biz', f='common.js'))}}
{{response.files.append(UR
reply. Always nice to know the reason.
Keeping with Massimo's suggestion I added solved to the post!
LOL
>
> On 5/13/2010 1:40 PM, Miguel Lopes wrote:
>
>
>
> On Wed, May 12, 2010 at 7:45 PM, Timothy Farrell wrote:
>
>> This is the error that Jon Lundell's guys f
Thanks for sharing.
Miguel
On Thu, May 13, 2010 at 4:50 PM, mr.freeze wrote:
> This has been updated for anyone interested:
> http://www.web2pyslices.com/main/static/share/web2py.app.web2pyslices.w2p
>
>
On Wed, May 12, 2010 at 7:45 PM, Timothy Farrell wrote:
> This is the error that Jon Lundell's guys found already. Note that it's
> trying to connect to port 8000 as HTTP. Connect as HTTPS and it should
> work.
>
> Also try upgrading to trunk, that should issue a "400 Bad Request".
>
> -tim
>
>
On Tue, May 11, 2010 at 9:41 PM, mr.freeze wrote:
> Do you have the win32 extension for Python installed?
> http://sourceforge.net/projects/pywin32/
>
> On May 11, 3:33 pm, Miguel Lopes wrote:
> > On Tue, May 11, 2010 at 7:54 PM, mdipierro
> wrote:
> >
I suppose you want to return several positions that match (domain ==
session.target_domain) then you must not use return (as it escapes the loop
and exits the function scope). You should collect all your matches in a list
and the return the list in the end. Something like:
def check():
result_l
On Wed, May 12, 2010 at 1:48 AM, mdipierro wrote:
> Can you describe what happens in the uncessful test? Do you see a new
> ticket file being generate in the errors/ folder? What does it say?
>
>
Upps! Sorry false alarm. I was calling the remote server with the port and
this was causing the conn
I've managed to successfully call on a jsonrpc service using localhost.
However I cannot replicate this with a remote server.
For the client I'm using jsonrpc at the Python prompt:
>>> sv = ServiceProxy('http://127.0.0.1:8000/testapp/default/call/jsonrpc')
>>> sv.getRequests()
['json test']
>>>
T
On Tue, May 11, 2010 at 9:41 PM, mr.freeze wrote:
> Do you have the win32 extension for Python installed?
> http://sourceforge.net/projects/pywin32/
>
>
No. Maybe that's he problem.
Tomorrow I'll re-test the thing with pywin32 installed.
Miguel
On Tue, May 11, 2010 at 7:54 PM, mdipierro wrote:
> This is concerns me more:
>
> WARNING:root:WEB2PY CRON: Disabled because no file locking
>
> what os are you using?
>
>
Windows XP I can check the flavour and service pack tomorrow.
Very cool.
Congratulations,
Miguel
On Mon, May 10, 2010 at 10:09 PM, mdipierro wrote:
> Anthony made some good points:
> http://groups.google.com/group/web2py/msg/a40b27807edc8603
>
> For now let's concentrate on one of them for now. If you have
> developed software in web2py that you use internally in your company
> but you canno
I followed the www.web2py.com/AlterEgo/default/show/140 in order to generate
a self-certified ssl key using OpenSSL for windows(
http://www.slproweb.com/products/Win32OpenSSL.html)
The certificates are in the web2py folder
Running web2py I get this error:
C:\Programas\web2py>c:\python26\python w
Yeah! shows how conservative I am :-)
On Fri, May 7, 2010 at 10:10 PM, mdipierro wrote:
> > Massimo already answered this. But I've been using web2py from the
> > beginning, have a site running on it with absolutely no problems.
> Upgrading
> > to a new release is as simple as (well just import
On Fri, May 7, 2010 at 3:42 PM, Miguel Lopes wrote:
>
>
> On Fri, May 7, 2010 at 3:29 PM, mdipierro wrote:
>
>> Errors in form.errors (which is a Storage object and extends a dict).
>> Perhaps they can be displayed somewhere else?
>>
>>
> Yes of course.
On Fri, May 7, 2010 at 4:06 PM, blackthorne wrote:
> Is it possible to customize the order by which models are loaded/
> imported in a web2py application?
> Are they loaded by alphabetical order?
>
>
Yes. They are loaded alphabetically.
> It comes to my mind an idea of an interface for this bas
nge all form error displaying functionality everywhere!
Miguel
> On May 7, 7:26 am, Miguel Lopes wrote:
> > Encapsulating javascript code within some widgets is a good solution when
> > the functionality is generic. This widgets act like drop-in components.
> >
> >
On Thu, May 6, 2010 at 6:37 AM, Anthony wrote:
> I am brand new to web application development, and I'm looking for a
> good web framework to learn in order to build a new web application
> (sort of a personal task/project management system). I want it to look
> (and act) like a serious, polished
+1 * (Works out of the box) All in one packages with no dependencies and no
config files
+1 * Backward compatibility
* Very easy to extend (like Python fits my brain)
Miguel
On Thu, May 6, 2010 at 4:18 PM, Álvaro Justen [Turicas] <
alvarojus...@gmail.com> wrote:
> Hi folks,
> I'm writing an ar
Encapsulating javascript code within some widgets is a good solution when
the functionality is generic. This widgets act like drop-in components.
Two examples by mr.freeze are (txs for the nice concept mr.freeze):
http://www.web2pyslices.com/main/slices/take_slice/24
http://www.web2pyslices.com/ma
On Mon, May 3, 2010 at 11:08 PM, Jonathan Lundell wrote:
> web2py probably isn't setting referer on a redirect, and if it did, you'd
> have to interpret the URL.
No. If I have no redirect and call a location with no args the referer is
not set when I arrive at web2py's default "Internal error" p
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
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
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
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
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
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
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
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
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
1 - 100 of 146 matches
Mail list logo