torage object ... so you can use it (see:
http://web2py.readthedocs.io/en/latest/storage.html?highlight=gluon.storage.Storage).
Just do:
form.vars.field1 = value1
form.vars.field2 = value2
user.update_record(**db.auth_user._filter_fields(form.vars))
Miguel
--
Resources:
- http://web2py.com
- http://web2py.
uest_tenant default to an integer id? Or is my feeling of reducing
record size, senseless knit-picking here?
5. Is it possible to somehow test this feature on localhost? How?
Is my overall picture correct or am I missing anything?
Txs,
Miguel
--
Resources:
- http://web2py.com
- http:
Cool, I tried grouping the regex, put back the section I had comented out
and it seems to be working.
Thanks
-Miguel
On Fri, Oct 10, 2014 at 9:43 AM, lpg wrote:
> Hi Miguel, I've been talking with Niphlod, w2p maintainer. See here.
> https://groups.google.com/forum/#!topic/web2py
Hi
Please find my app.yaml file attached.
I have not tried the "release pipeline with GitHub".
-Miguel
On Fri, Oct 3, 2014 at 6:51 AM, Lucas Geiger wrote:
> I'm not having luck with that. Can you post your yml file here?
>
> Another question: have you tried using GAE
Hi
I cleared the cache and also tried running in IE and Chrome.
Everything is still working properly for me.
-Miguel
On Thu, Oct 2, 2014 at 9:57 AM, Lucas Geiger wrote:
> Hi Miguel, this seems to break the rest of app for me, including welcome:
>
> https://www.dropbox.com/s/sa7s3y
, 2014 at 7:27 AM, Lucas Geiger wrote:
> Hi Miguel, sorry which line specifically?
> Also did you use the "web2py.py -G config " to generate these?
> I did. It seems that would be a bug?
>
> Lucas Geiger
> On Oct 2, 2014 9:47 AM, "Miguel Goncalves"
> wrote
ews without having a
version number in the static/ path and it seems to work.
Nothing else broke so far.
-Miguel
On Wed, Oct 1, 2014 at 4:25 PM, lpg wrote:
> Testing the latest 2.9.11 on GAE, seems like /admin app is breaking, since
> many static resources can't be found.
> I us
url: /(.+?)/static/(.+)
# static_files: applications/\1/static/\2
# upload: applications/(.+?)/static/(.+)
# secure: optional
Seems like the 2nd url was overwritting the 1st one.
Any ideas if this will create any other issues?
Thanks
Miguel
On Thu, Oct 2, 2014 at 6:18 AM, Miguel Goncalves
w
:
- url: /(.+?)/static/_\d.\d.\d\/(.+)
static_files: applications/\1/F/\2
cleared the browser cache, restarted the GAE Launcher and none of my path
changed.
Any idea of what I am doing wrong?
thx
Miguel
On Tue, Sep 30, 2014 at 8:01 AM, Niphlod wrote:
> you need to fix static serving
there.
How do I fix this?
Thanks
-Miguel
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the
Hello! My issue is this: I want to use the autocomplete widget (
SQLFORM.widgets.autocomplete) but my field is a list:string, and now it
shows all data in only one field, resulting in an awkward input. How can I
use this widget with a list:string field? Thanks in advance. :)
--
Resources:
- htt
Hi Manuele and other members,
I ´m not a programmer, I come from the Human Sciences, but I´m mounting my
social project in http://redhumus.org . I have a lot of issues yet.
I have created the plugin_map in my application to manage gpx tracks from
openstreetmaps. The deal is create an applicat
apton go well with Apache and web2py
Activating by mod_wsgi and mod_proxy alternatives. None of them works.
So,
Could yo help me please. My project release is in November and I have a lot
of work to do so in website content.
Thank you
*
Miguel Sanchez
Bogota/ Colombia
@kublaykan
Here,
I had a problem with Restful requests. The content-type response header was
text/plain when I sent a http://xxx.json request. Is it ok? I need
content-type response header as application/json. To do that I have
modified the glucon/contenttype.py with the following code:
*Original contenttype.py
I have the following error when I make this request:
*https://localhost/example/api/rest/PERSONS_has_ANIMALS*
*
*
type 'exceptions.AttributeError'> 'Table' object has no attribute '_id'
Versionweb2py™Version 2.5.1-stable+timestamp.2013.06.06.15.39.19PythonPython
2.7.3: /usr/bin/python (prefix: /u
de selección con
los valores de la otra tabla.
Mi pregunta es si ese formulario lo puedo restringir para que solo
aparezcan en el combo de selección determinados valores.
Gracias
Miguel
--
Tx you so much for the solution. This one was really holding me back.
Miguel
On Tue, Jul 3, 2012 at 3:27 PM, Massimo Di Pierro <
massimo.dipie...@gmail.com> wrote:
> There is more than one problem.
>
> 1) you can supply your own secret key but there is no need to. If the user
>
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
...
If you use this in multiple form you could move pad_indra to the
'controller' scope to share it.
Miguel
HTH
f other components in
order to update the via the response.js mechanism?
Otherwise, how to update a digitally signed component via response.js?
TIA
Miguel
e end-up with a
representation! This does not happen if titles is a string. Note I'm using
Python 2.5.
Miguel
On Tue, Mar 27, 2012 at 6:46 PM, Derek wrote:
> 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 f
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.
t the culprit operation seems to be the
string parsing, not the browser rendering:
titles = [title.strip() for title in titles.split('|')]
Miguel
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
=%(titles));})"
% dict(images=images, titles=titles), _language='javascript')
All works but when rendered by the browser I do not get: Olá instead I
get: olá
The same for Olé and olé
My goal is to have a user supplied string, such as: olá|olé
BTW this is a prettyPhoto widget I developed for plugin_wiki, which is
awesome :-)
Txs for the help,
Miguel
Count on me to translate the book to Spanish!
--
Miguel
On Tuesday, December 27, 2011 6:03:31 PM UTC+2, Mirek Zvolský wrote:
>
> I want start translation of the book 4th edition (czech language).
> Can I read somewhere hints, how to do it?
> Idea: Can we have menu item in web
Hello,
I have a question about SQLFORM.grid order of the fields in the table
represented?
Is there any way to modify the order of these fields in a
SQLFORM.grid?
Thanks
Miguel
links = [lambda row:
A(T('Details'),_href=URL("default","detailsubject",args=[row.subject.name]))]
form = SQLFORM.grid( query=query, create=False, links = links,
searchable=True, user_signature=False, fields=fields,
deletable=False, editable=False, csv=True, maxtextlength=64,
paginate=20, details=False )
Thanks
Miguel
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 :-)
>
Looks great!
> 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
me of this and other references :
* http://www.python.org/about/success/
* http://wiki.python.org/moin/OrganizationsUsingPython
No one should be concerned with using Python!
HTH,
Miguel
On Mon, Jul 25, 2011 at 6:26 PM, spiffytech wrote:
> I'm picking out a framework to use for fre
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
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/
rsd=None}}
{{if rsd!=None:}}
{{block right_sidebar}} {{=rsd==None}} {{=repr(rsd)}} {{end}}
{{pass}}
The solution is to put the condition *inside the template block* (tested in
1.97.1)
{{rsd=None}}
{{block right_sidebar}}
{{if rsd!=None:}} {{=rsd==None}} {{=repr(rsd)}} {{pass}}
{{end}}
Miguel
that is likely to impose less demands on
contribution or to be more accessible. Thus, it also provides a route for
many to increase both individual knowledge and for the community to explore
and develop framework usage patterns.
Miguel
On Wed, Jul 13, 2011 at 6:45 AM, nic wrote:
> Dear frie
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
suggestion.
However, after considering better routes/router arguments and the fact that
they do not impose a real penalty on performance this is likely unnecessary.
Miguel
On Thu, Jul 7, 2011 at 6:28 PM, Anthony wrote:
> Are you suggesting the possibility of defining a function like:
>
:-)
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
in default action? This would supply a way to dealt with all calls
that have no defined action per controller (including errors) without having
to use routes. A small idea that perhaps does not bring enough benefits to
be argued for. What do you think?
Miguel
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
>
&g
roblem, but not flash. Here's my
view template:
The movie does not load and the flash player menu states "Movie not
loaded...". However this should work, since it works fine with static files:
Any tips?
Miguel
Humm,
Nice. Yes, closures are enough, and cleaner too.
Is routes OK for production mode?
Txs,
Miguel
On Wed, Jul 6, 2011 at 3:54 PM, Massimo Di Pierro <
massimo.dipie...@gmail.com> wrote:
> Jonathan is right. Here is a simple way around.
>
> Create a single controller called
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:
>
tchall_function/page/1/12
/application/controller/catchall_function?_page=books?title=12
And have something like:
/application/controller/books/12
I know I could use routes to send everything to a function to process the
response, but I was wondering about doing this with closures.
Thanks,
Miguel
lect()
def makePages(pages):
for page in top_pages:
exec ACTION_TEMPLATE
NEW_ACTION.__name__ = page.link_name
globals()[page.link_name] = NEW_ACTION
makePages(pages)
Miguel
On Wed, Jun 1, 2011 at 7:40 PM, Jason Brower wrote:
> Me does a dance. Thanks!
> And yes it makes rain :-)
>
forms.append(crud.create(db.blog_comment, message = T('Record
Inserted')))
return dict(forms=forms)
Miguel
to response files:
{{response.files.append(URL(r=request,c='static/biz',f='common.js'))}}
{{response.files.append(URL(r=request,c='static',f='view_oppty.css'))}}
{{response.files.append(URL(r=request,c='static/biz',f='view_opportunity.js'))}}
{{extend 'layout.html'}}
I assume that you either show every form or know how to do this in
javascript/jquery.
If anyone as a clearer method to do this I am VERY interested in knowing
about it!
HTH,
Miguel
uld be helpful.
Ej:
routes.py
.
.
.
routers = dict (
BASE = dict (default_application = 'myapp')
myapp = dict (languages = ['en ', 'it',' es',' es-es', 'it-it'],
default_language = 'en'),
)
.
.
Thanks
Miguel
Great Arun, it did the trick.
Why do you do:?
options_added=options[:]
I just did it:
options.insert(0, OPTION('', _value=''))
and it worked fine,
kind regards
On Fri, Apr 15, 2011 at 9:00 AM, Arun K.Rajeevan wrote:
>
> https://bitbucket.org/kra3/visual-lingua-website/src/8ac2627b0a19/appli
Hello to all, im using the example in old blog regarding "SELECT using
values from a database table":
staff = db(db.staff.ALL).select()
FORM(TR("Select a user :",
SELECT(_name='staffselect',
*[OPTION(staff[i].username, _value=str(staff[i].id)) for i
in range(len(staff))])),
hello to all, today i upgraded to 1.94.6 using the admin interface,
after that i tryid to create a new project using the wizard, all went
fine until Step 6: Generate app "monitoreando"
This is the trace:
Traceback (most recent call last):
File "/home/www-data/web2py/gluon/restricted.py", line 1
Hi, im trying to generate a response.menu with category similar to the one
described here by mdipierro:
http://groups.google.com/group/web2py/browse_thread/thread/73056f518dd8b554/02bc66127749782e?lnk=gst&q=menu+vertical#02bc66127749782e
the problem im facing is that i have no idea on how to gen
Hello to all, I have created a new project using the web wizard, for
some unknown reason the mysql connection is not working, this is the
uri im using:
mysql://cmts_monitor:cmtsTigoHome@localhost/cmts_monitor
and this is the error i got:
Traceback (most recent call last):
File "/home/www-data/
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
ot; or Number, Null, False or True')
jsonrpc.json.JSONDecodeException: Expected []{}," or Number, Null, False or True
>>>
>From the browser using an url with or without credentials, for both:
.../default/private_call/jsoncount
.../default/public_call/failed_login
I get:
Object does not exist with a Status 404 content header
Am I on the right track?
How could this be achieved?
Txs,
Miguel
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
>
ktop).
You also have to pick some basic html to start with. For me learning html on
a need to know basis worked out fine.
Remember to google, google, then ask on the net/list(s)
Happy coding
HTH,
Miguel
On Fri, Jan 28, 2011 at 9:46 PM, Richard Vézina wrote:
> Web2py book : http://www.web2p
pps, like it is mentioned in
p://www.web2pyslices.com/main/slices/take_slice/48
(see "Authentication"). This solution would also be useful for other
non-browser-based clients. Would it work? How is the function used?
Txs,
Miguel
-- Forwarded message --
From: mdipierro
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
web2py, instead of
using some other solution?
Txs José for the tip regarding sSMTP, I've also spotted what seems like a
easy way to install and configure a mail server http://www.iredmail.org/. In
case I can get this going I just might use sSMTP.
txs,
Miguel
*
*
*
*
*
*
On Sun, Dec 5, 201
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
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
ur
credentials or None 'username:password'
I confess being a complete n00b regarding linux admin.
Is sendmail enough? What could I be missing?
Miguel
Few options I can think of:
1- use xmlrpc to upload the content of your file. Store it in a variable and
process it right there.
2- have a table (well field in a table) dedicated to store the content of
your file. Once it is updloaded, process it and empty the field.
-Miguel
On Fri, Oct 22
Thanks all!
On Tuesday, September 14, 2010, mdipierro wrote:
> Thanks Jonathan, I will fix this tonight.
>
> massimo
>
> On Sep 14, 9:56 am, Jonathan Lundell wrote:
>> Massimo, here's a patch. In rewrite.py, change this:
>>
>> exec routesfp.read() in symbols
>>
>> to this:
>>
>>
viewround/1.344790923581374734/gaehandler.py",
line 52, in
import gluon.main
File "/base/data/home/apps/reviewround/1.344790923581374734/gluon/main.py",
line 66, in
rewrite.load()
File "/base/data/home/apps/reviewround/1.344790923581374734/gluon/rewrite.py",
h of your products are new
> 3) insert new products in a single operation using the GAE API:
> db.put(list_of_models)
>
> And if you have timeouts then break it up with Task Queues.
>
>
>
>
> On Sep 9, 4:37 pm, Miguel wrote:
> > Hi
> >
> > I have
'index'
routes_in = ( ('/', '/reviewround/default/index'),)
routes_out = ( ('/reviewround/default/index', '/'),)
-Miguel
On Thu, Sep 9, 2010 at 9:28 AM, Jonathan Lundell wrote:
> On Sep 9, 2010, at 9:17 AM, mdipierro wrote:
> >
> &g
n take the appropriate action (insert or
update). What I am looking for is the most efficient way to do this
(especially on GAE).
thanks
Miguel
Hi Massimo
Did you, by any chance, make any progress on this issue?
Thanks
Miguel
On Tue, Sep 7, 2010 at 4:43 AM, mdipierro wrote:
> Thanks for the reminder. I will look into this today.
>
> On Sep 7, 1:28 am, Miguel Goncalves wrote:
> > Hi
> >
> > I guess this
'/', '/reviewround/default/index'),)
routes_out = ( ('/reviewround/default/index', '/'),)
thanks
Miguel
quot;index" is needed).
So the proper url is:
'http://myApp.appspot.com/myApp/default/call/xmlrpc'
-Miguel
On Mon, Sep 6, 2010 at 10:38 PM, Miguel wrote:
> Hi
>
> I have a function exposed as a xmlrpc service.
> It works perfectly in the dev gae local server but once
the xmlrpc call itself is failling on GAE! Here is
how I make the call:
RPCServer = ServerProxy('http://myapp.appspot.com/welcome/default/
index/call/xmlrpc')
RPCServer.DelProducts()
What am I missing? Did anybody manage to run xmlrpc on GAE?
thanks
Miguel
Thanks for your comment ! that made me look into the fields that are
references and quickly found what was wrong.
In my insert, I harcoded the categoryID to 63which does not exist
anymore in my category table.
Stupid mistake. Sorry.
Thanks again;
-Miguel
ta['content']==None else sanitize(data['content']),
urlProduct=None if data['link']==None else
sanitize(data['link']),
urlImageBig=None if data['imgPreviewUrl']==None
else sanitize(data['imgPreviewUrl']),
urlImageSmall= None if
data['imgPreviewUrl75']==None else sanitize(data['imgPreviewUrl75']),
price=data['price'],
author=None if data['artist']==None else
sanitize(data['artist']),
updateDate=
data['updateDate'],
categoryID=63)
Any idea of what is going wrong?
thanks
-Miguel
ums.com/ajax-upload/- a dedicated javascript script library
http://trentrichardson.com/2009/06/05/meet-jquery-iframer/- a jQuery
plugin
http://www.webtoolkit.info/ajax-file-upload.html - a 1Kb Javascript
file
Anyone has experience with these or other solutions?
Miguel
Thank you!
Importantly, although it is very convenient to have these values
serialized, it is simple to get around this jQuery imposed limitation (bug).
Miguel
On Tue, Aug 24, 2010 at 4:02 AM, mdipierro wrote:
> well... it is a bug not not in web2py, in jQuery:
>
>
> http://www.jo
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
n component
# status_form.vars.status corresponds to whatever submit was pressed in
regular controller
...
It seems like the component mechanisms is ignoring the value of 'status'.
Miguel
I wonder if this would also work with block templates - supposing block
templates are integrated before the header is set.
I remember recently reading about block templates. Have this been integrated
in the reference distribution?
Thank you so much for all the great help.
Miguel
On Fri, Aug 13
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
&
I can't get this is to work.
My doubts are:
I wonder if there is a way to couple a scripting file with the component (so
I can enjoy the advantage of having the js in its own file)?
What am I doing wrong in the alternative solution of including the js code
via response.headers?
Miguel
Txs!
I see the inclusion of request.application makes the URL being rendered with
a .load extension or not. This seems a bit strange.
I wonder if the solution will be stable!
Miguel
On Wed, Aug 11, 2010 at 2:03 AM, Bruno Rocha wrote:
> I Solved using this way:
>
> URL(request.ap
v. However, the default behavior is that all links inside a
component are trapped and loaded into the same component, thus if I have in
the component view:
{{
rec.contact.name}}
This gets translated into:
Clockwork Orange
And I would like to get:
Clockwork Orange
How can I achieve this?
Txs,
Miguel
Iceberg,
Thank you.
Maybe I didn't explain what I wanted well, but you understood very well!
Actually the solution is so simple it is embarrassing :-)
Miguel
On Tue, Aug 3, 2010 at 9:51 AM, Iceberg wrote:
> Don't what you really want. In short, modules organize your functiona
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
yes I've tried it. local_import does not work. the LOAD function signature
expects a controller name and function name (defaulting to the
request.application), as far as I know it is not possible to pass it a
function - at least supplying it a function object does not work.
Miguel
On Mon,
1 - 100 of 249 matches
Mail list logo