On 7 September 2012 01:17, Limedrop russ...@holtrd.com wrote:
Johann, you should look at this slice...
http://www.web2pyslices.com/slice/show/1489/save-query-in-session
Does it do what you want?
Thanks. I will study and try it. Looks like something I can use.
Regards
Johann
--
On 6 September 2012 19:20, Richard Vézina ml.richard.vez...@gmail.comwrote:
grep : http://en.wikipedia.org/wiki/Grep
Thanks. I am an experienced grep user. Fortunately on Debian there is a
shortcut for grep -r (rgrep) which, combined with -l quickly shows in which
files the regular
lucas,
OK. So there is no error at SQL level. The problem is probably a closing
cursor that happens somewhere in the DAL, that is triggered by some
usage/environment peculiar to your application.
Check the following just to be sure:
1) pooling connections. Try to work with pooled connection
Hello Hansel!
You can also easily fix the upgrade script as described
herehttps://groups.google.com/d/msg/web2py/glJjRw-TLKU/AkmktM7XExYJ and
let existing users decide directly from the administrative interface!
In this way the upgrade to 2.0.8 seems to work fine, except for a ticket
error at
Hi All,
I have recently launched a web application DocMatorhttp://www.docmator.com ,
*I would appreciate your Feedback on the application usefulness, usability
and suggestions for improvements and enhancements (http://www.docmator.com )
*
This application uses web2py framework. Users can login
I want to run a script once a day. I need to execute models.
I tried with:
0 0 * * * python /path/to/web2py.py -S app -M -N -R applications/app/private
/cron_test.py cron.txt 21
And this *works*.
But I see web2py has some flags and I am not sure should I use them or not.
Does it matter?
In my web2py application after a form submit, I want to redirect to another
page with some POST variables. I couldn't find any option to set then
method.
My main idea is to avoid those values from users.
I would greatly appreciate any suggestions.
--
On Friday, September 7, 2012 4:57:37 AM UTC-4, Michele Comitini wrote:
lucas,
OK. So there is no error at SQL level. The problem is probably a closing
cursor that happens somewhere in the DAL, that is triggered by some
usage/environment peculiar to your application.
Check the following
You cannot send POST vars.
You can send GET vars.
You can store vars in session and then access them from another page (if
they are in the same app).
You can return a page with form and then submit that form with javascript
(document.form.submit())
Marin
On Fri, Sep 7, 2012 at 12:56 PM,
http://blog.martinmulone.com.ar/post/996-static-blog-in-web2py
--
http://martinmulone.com.ar
--
I have a function with an SQLFORM.factory() form, after submission I check
whether the database already contains an organization with the CoC number
in the form, when it does I set a response.flash telling the user the
database already contains that organization. Some organizations have
How to use sheduler when running web2py in apache + mod_wsgi scenario ? Is
it ok to run it as ussual I mean start it separately from apache-wsgi' python
web2py.py -K myapp:group1:group2,myotherapp:group1' ? No problem with this?
--
+1
I see you used some of the book code in the book. In particular you use
MARKMIN the way it is done in the book using extra variables. That is ok
and it is done for backward compatibility with old book sources which also
need to processed in latex. If that is not important there is a batter
organization=db((db.organization.cocNumber==form.vars.cocNumber)\
(db.organization.subdossierNumber==form.vars.subdossierNumber)).select()
should be'
organization=db((db.organization.cocNumber==form.vars.cocNumber)\
Yes is based on the book app. I made some changes, in the index I made a
change that read extract.markmin because abstract in info.txt is to short
in lenght, but I have to render to a file like chapters because is to
slow to read it all the time to make an index of posts. Ok I'm going to
change
FYI: Ubuntu 12.10 Quantal Quetzal says bye bye to Python 2. Take note if
you run web2py and intend to use 12.10. I am not sure if there are ways to
get Python 2 installed though.
For 12.10, we intend to ship only Python 3 with the Ubuntu desktop image,
not Python 2. Beta-1 continues this
I think this is a mistake but installing python 2.7 should be easy enough.
Massimo
On Friday, 7 September 2012 07:56:59 UTC-5, Luther Goh Lu Feng wrote:
FYI: Ubuntu 12.10 Quantal Quetzal says bye bye to Python 2. Take note if
you run web2py and intend to use 12.10. I am not sure if there are
But I see web2py has some flags and I am not sure should I use them or
not. Does it matter?
-J, --cronjob identify cron-initiated command
-C, --crontrigger a cron run manually; usually invoked froma
system crontab
Do they change anything?
You are missing an administrator, or is it just me?
Ovidio Marinho Falcao Neto
Web Developer
ovidio...@gmail.com
ovidiomari...@itjp.net.br
ITJP - itjp.net.br
83 8826 9088 - Oi
83 9334 0266 - Claro
I'm not sure if I understand, there no admin, you make post copying and
pasting new folder under source_blog in the app, and editing files using
your favorite editor like gedit, ultraedit, any ide, etc.
2012/9/7 Ovidio Marinho ovidio...@gmail.com
You are missing an administrator, or is it just
For sure I can help once in a wild, I am pretty busy... I can take it
paragraph by paragraph... :)
I will check how it works with Git.
Richard
On Thu, Sep 6, 2012 at 10:56 PM, Massimo Di Pierro
massimo.dipie...@gmail.com wrote:
:-)
merci'. Send me a patch when you can.
On Thursday, 6
On 7 Sep 2012, at 3:56 AM, Pradeeshnarayan pradeeshnara...@gmail.com wrote:
In my web2py application after a form submit, I want to redirect to another
page with some POST variables. I couldn't find any option to set then method.
My main idea is to avoid those values from users.
I would
This is an old issue as per:
https://groups.google.com/forum/#!searchin/web2py/404$20/web2py/D7zU8Ssa3OA/BqJW97wr4HwJ
and
https://groups.google.com/forum/#!searchin/web2py/404$20/web2py/Fp0jxzNTVUI/fl7doNG2L5IJ
Also Yarin has created a workaround for it:
Please don't spread FUD. The news only says that the DESKTOP CD IMAGE will
not contain python 2.x, this doesn't mean Ubuntu 12.10 will remove python
2.x from the distribution. This also doesn't affect server images, or any
other Ubuntu images. The server cd image and other images will contain
A zip of the files will do.
On Friday, 7 September 2012 08:50:56 UTC-5, Richard wrote:
For sure I can help once in a wild, I am pretty busy... I can take it
paragraph by paragraph... :)
I will check how it works with Git.
Richard
On Thu, Sep 6, 2012 at 10:56 PM, Massimo Di Pierro
Or simply a reminder to pull from your github repo when you make changes.
On Friday, 7 September 2012 08:50:56 UTC-5, Richard wrote:
For sure I can help once in a wild, I am pretty busy... I can take it
paragraph by paragraph... :)
I will check how it works with Git.
Richard
On Thu,
Can you please open a ticket and link those threads?
On Friday, 7 September 2012 08:53:13 UTC-5, Jose C wrote:
This is an old issue as per:
https://groups.google.com/forum/#!searchin/web2py/404$20/web2py/D7zU8Ssa3OA/BqJW97wr4HwJ
and
But I see web2py has some flags and I am not sure should I use them or not.
Does it matter?
-J, --cronjob identify cron-initiated command
-C, --crontrigger a cron run manually; usually invoked from a
system crontab
Do they change
I appreciate that web2py has ways to handle this, and I also agree that
it's somewhat hackish. The problem remains, though, that we're still
exposing (publishing) internal primary keys to the browser. Isn't the main
problem the fact that we're dealing with primary key values being sent to
the
Perfectly fine.it's the recommended way!
Apache co. kill processes that hang up (usually a certain timeout)
because normally a page should return something in a small timeframe.
This feature is useful to free up resources if the code to generate your
webpage is too heavy on the machine,
On Friday, September 7, 2012 3:18:10 PM UTC+1, Massimo Di Pierro wrote:
Can you please open a ticket and link those threads?
Done.
--
Thanks, Andrew.
I had a look into Qpid. It certainly can do the job, but on the same
spirit, I think a simpler client/server implementation with XMLRPC might
work as well. Besides, XMLRPC libraries are bundled with Python by default.
/E.-
On Friday, September 7, 2012 5:06:56 AM UTC+2,
Thanks Bruno and Anthony, that worked. For others who might need this, this
is my code:
def validate_my_form(form):
destination = form.vars.destination
log.error(call_channel='%s' % (form.vars.call_channel))
if form.vars.call_channel == VOICEMAIL_CHANNEL:
_, err_msg =
As explained here:
http://web2py.com/books/default/chapter/29/8#Using-the-template-system-to-generate-messages
The following code can be used to render a view file to send via email:
for person in db(db.person).select():
context = dict(person=person)
message =
Using system/external cron, you should use the -J flag.
Jonathan, could you elaborate on what the `J` flag is supposed to do?
I've just run external cron tests both with and without that flag and can't
see any visible difference. I've scanned the source but can only find
reference to
On 7 Sep 2012, at 8:06 AM, Jose C houdinihoun...@gmail.com wrote:
Using system/external cron, you should use the -J flag.
Jonathan, could you elaborate on what the `J` flag is supposed to do? I've
just run external cron tests both with and without that flag and can't see
any visible
it's a path relative to the app's *views *folder. With this code your *
message.html* should be next to layout.html, just in the *yourapp/views/*folder.
Il giorno venerdì 7 settembre 2012 17:04:27 UTC+2, Daniel Gonzalez ha
scritto:
As explained here:
Mainly, it avoids some unnecessary overhead, and automatically sets some
other useful flags (like -N). And in the trunk (so wait for 2.0.8), it
sets nobanner and nogui.
Also, it overrides requires_https.
(I don't actually see a reference to it in newcron.py...)
Great, thanks for the
On Friday, September 7, 2012 11:22:41 AM UTC-4, BlueShadow wrote:
I tried your solution and it just leaves the thumb field empty and no
thumbnail is created in the upload folder.
Are you referring to Paolo's solution or this one:
thisImage.update_record(thumb=db.Images.thumb.store(im,
I was referring to paolos post
On Friday, September 7, 2012 5:38:15 PM UTC+2, Anthony wrote:
On Friday, September 7, 2012 11:22:41 AM UTC-4, BlueShadow wrote:
I tried your solution and it just leaves the thumb field empty and no
thumbnail is created in the upload folder.
Are you
On 7 Sep 2012, at 8:33 AM, Jose C houdinihoun...@gmail.com wrote:
Mainly, it avoids some unnecessary overhead, and automatically sets some
other useful flags (like -N). And in the trunk (so wait for 2.0.8), it sets
nobanner and nogui.
Also, it overrides requires_https.
(I don't actually
Good work Martin,
I was thinking of looking at the book app for the same purpose.
I want to document some Disaster Recovery procedures, so I therefore also need
to create a PDF version as well. Do you think the book app vs auth.wiki() is
better (easier?) for generating PDFs.?
So many
Yes, I see a message was deleted -- don't know who deleted it. Can you post
the error again?
On Friday, September 7, 2012 11:41:05 AM UTC-4, BlueShadow wrote:
I was referring to paolos post
your solution gives me just the error message I don't understand Anthony.
I posted the error message
Traceback (most recent call last):
File F:\Website\web2py\gluon\restricted.py, line 209, in restricted
exec ccode in environment
File F:/Website/web2py/applications/testthumb/controllers/default.py
http://127.0.0.1:8000/admin/default/edit/testthumb/controllers/default.py,
line 128, in
Pasting in one of my urls into the browser, I always get a login screen. I
haven't turned on permissions=True.
Is there an extra step ?.
--
I strongly disagree with this.
Publishing record IDs does not imply indirect object reference
vulnerability. Any application that publishes record information must have
a way to reference individual records. If the individual access is not
validated than the app is vulnerable to indirect
Again bad Ubuntu decision!
Richard
On Fri, Sep 7, 2012 at 9:54 AM, LightDot light...@gmail.com wrote:
Please don't spread FUD. The news only says that the DESKTOP CD IMAGE will
not contain python 2.x, this doesn't mean Ubuntu 12.10 will remove python
2.x from the distribution. This also
cannot reproduce. Can you provide an example? Did you pass url=True?
On Friday, 7 September 2012 11:25:34 UTC-5, Andrew W wrote:
Pasting in one of my urls into the browser, I always get a login screen.
I haven't turned on permissions=True.
Is there an extra step ?.
--
Sure thing :)
One thing to consider is that the messaging implementation can be
completely asynchronous. I don't know if that's important for your
use-case. Since qpid supports persistent queues it even allows you to allow
the broker to be down for maintenance etc.
On Friday, September 7,
Let's create a virtual-env with Python 2.7 and it will not be a problem.
--
Thanks! also in one of other threads you mentioned NSSM for runnig programs
as services on Windows. Does is also work for scheduler worker? Do you have
experience with this as an scheduler author :-) ?
David
Dne pátek, 7. září 2012 16:40:26 UTC+2 Niphlod napsal(a):
Perfectly fine.it's
How about if you do something like:
from cStringIO import StringIO
tmp = StringIO()
im.save(tmp, 'jpeg')
tmp.seek(0)
thisImage.update_record(thumb=db.Images.thumb.store(tmp, filename=
'thumbnail.jpg'))
Anthony
On Friday, September 7, 2012 12:07:27 PM UTC-4, BlueShadow wrote:
Traceback (most
Thanks, Massimo.
Re. needing a way to reference individual records: of course. But it
doesn't have to be the internal record id (primary key value). The php code
we used gave out unique-per-request values so that one couldn't, say, use a
key retrieved from one form in another form.
The @auth
yep, works perfectly.
On Friday, September 7, 2012 6:54:45 PM UTC+2, David Marko wrote:
Thanks! also in one of other threads you mentioned NSSM for runnig
programs as services on Windows. Does is also work for scheduler worker? Do
you have experience with this as an scheduler author :-) ?
Because you can do stuff like this:
rows = db(...#get some arbitrary rows
tbody = TBODY()
for r in rows:
tbody.append(TR(...# do complex stuff with row data. If a list of rental
properties, for example, style the address red if vacant
table=TABLE(THEAD(...arbitrary column headings), tbody)
Good example Cliff.
--
No I didn't. Only just found out about URL=True. Di I pass as a URL variable
?
--
But see, to me, now that's putting HTML in the controller. Which I see as a
negative. Ideally I would pass the data to the view and use a foreach over
the data contents. And for marking a field as red, I would put some
metadata into the data sent to the view. I would just test if vacant was
true,
In some sense the grid does what you say.
For example:
@auth.requires_login()
def index():
db.define_table('thing',Field('name'),auth.signature)
grid = SQLFORM.grid(db.thing.created_by==auth.user_id)
return locals()
Notice all the URLs linked by the grid are digitally signed.
book app and this are static generation of the content, focus on
lightweight aproach. Auth.wiki is all included is a cms, auth, edit create,
delete system grid, etc. I think you can render a pdf with no problem from
markmin.
2012/9/7 Andrew W awillima...@gmail.com
Good work Martin,
I was
Strange. It should work even without url=True. You should be able to paste
any URL in markmin and it should work.
MARKMIN(text, url=True)
simply allows you to user the shortcuts @/app/controller/function/args and
they will be converted in http:///app/controller/function/args where
app,
I guess I need to look into the auth.signature functionality. We
already had our grid conditional be db.pages.stores_id=STORE_INFO.id but
we were able to edit Store 1's page while logged into Store 2's
administration area, just by changing the ID in the URL. Are you saying
that
If you use:
from gluon.contrib.autolinks import expand_one
html = MARKMIN(page.body,url=True,environment={},
autolinks=lambda link: expand_one(link,{})).xml()
embedding in markmin any link to a public document (pdf, doc, docx, xls,
etc.) will call google doc viewer and embed
Hello,
Please am a windows user and I don't know how to use mercurial or git so i
downloaded the book in 'tar.gz' format. I managed to install the book but
the images are not displaying (streaming). I don't know why. Please could
someone help me with what to do.
Thanks
On Tue, Sep 4, 2012 at 8:54
I only talk for 2.0.x.
Yes. That is prevented with the default user_signature=True.
If you disable user signature with user_signature=False than you expose
yourself to major security risks and may expose the entire database.
user_signature = False should only be used for testing or if you
I should add that if user_signature=False the tables are always exposed in
readonly mode: SQLFORM.grid(..,editable=False, create=False,
deletable=False)
On Friday, 7 September 2012 14:50:56 UTC-5, Massimo Di Pierro wrote:
I only talk for 2.0.x.
Yes. That is prevented with the default
Thanks. My intention is to make , and print, a PDF of the markmin content,
just like the book. For disaster recovery doco, I want a hard copy.
With the new book app, are you still planning to have available a PDF from the
files?
--
Yes. I will post the script soon. I need to fix it because I changed the
markmin syntax of links so my previous script broke.
On Friday, 7 September 2012 14:58:06 UTC-5, Andrew W wrote:
Thanks. My intention is to make , and print, a PDF of the markmin
content, just like the book. For
Ahhh; thanks for pointing that out. I had breezed over the mention about
digitally signed (my fault). Makes sense. I'll have to think about the
public db keys. Using them through web2py seems to be handled, though.
Thanks again.
Michael
On Friday, September 7, 2012 1:39:47 PM UTC-6, Massimo
cStringIO.StringIO is a file-like object. The code saves the thumbnail to
that object and then passes it to the .store() method, which treats it like
an actual file.
Anthony
On Friday, September 7, 2012 4:24:46 PM UTC-4, BlueShadow wrote:
Anthony you are the best. I got pretty much no Idea
On Friday, September 7, 2012 3:21:30 PM UTC-4, luckysmack wrote:
But see, to me, now that's putting HTML in the controller. Which I see as
a negative. Ideally I would pass the data to the view and use a foreach
over the data contents. And for marking a field as red, I would put some
Hi Massimo. Correct me if I am wrong, but is *gluon.contrib.pyfpdf* not
included in the new version?
On Thursday, September 6, 2012 7:55:29 PM UTC-7, Massimo Di Pierro wrote:
Minor bug fixes, some recent tickets closed and fixed a problem with the
windows binary distribution. It should now
I would like to know how coders here incorporate git or any other VCS into
their coding workflow with web2py?
Thanks
--
Anyway, thank you for brining out security issues. It is very important for
web2py. The more people look at it from the security point of view, the
better.
On Friday, 7 September 2012 15:33:11 UTC-5, MichaelF wrote:
Ahhh; thanks for pointing that out. I had breezed over the mention about
Was renamed gluon.contrib.fpdf by the author (Mariano).
There is a gluon.contrib.pyfpdf.py that should enable backward
compatibility.
On Friday, 7 September 2012 16:48:17 UTC-5, shartha wrote:
Hi Massimo. Correct me if I am wrong, but is *gluon.contrib.pyfpdf* not
included in the new
One of the new features is that in admin you can use a git url to install a
web2py directly from github. You can also push
an app to github. All of this requires python-git.
We are working on adding better git/hg features.
On Friday, 7 September 2012 17:24:42 UTC-5, Pystar wrote:
I would
Thanks for the clarification.
On Thursday, September 6, 2012 7:55:29 PM UTC-7, Massimo Di Pierro wrote:
Minor bug fixes, some recent tickets closed and fixed a problem with the
windows binary distribution. It should now run on XP and more recent
versions of windows without pyhton
I do want to also display content in the DIV. In addition to displaying
content in the DIV, I want the controller to also trigger a file download.
A more accurate version of the form_query() controller would be something
like:
In reponse to the form submission, it has to return a dict
window.open('{{=URL('reports', 'form_query')}}' + '/' + jQuery(this).val());
is still the way to trigger the download. The jQuery change event handler
could trigger the component loading *in addition* to triggering the above
command. Another option might be to include the above JS in a script
79 matches
Mail list logo