It works for me...
http://downforeveryoneorjustme.com/web2py.com
--
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
Interesting!
--
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 Google Groups
"web2py-users"
:
-
{{extend 'layout.html'}}
{{=form}}
{{=message}}
Best regards,
Stefaan.
--
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
Try appending a copy of d to l.
I think python secretly doesn't append d, but appends a reference to d.
So currently, in each iteration you overwrite the same d.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
-
I forgot to mention that you can append a copy of d using
l.append(d.copy())
--
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
Apparently I have to call
if form.process(keepvalues=True).accepted
instead. It makes sense only after you know about it ;)
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list
I have created a web2py forum software, now currently only in the Dutch
but wil be ported to english.
Ziet er goed uit!
--
http://technogems.blogspot.com
http://a-touch-of-music.blogspot.com
http://youtube.com/stefaanhimpe
--
Resources:
- http://web2py.com
- http://web2py.com/book
# born_to_fail.py
foo ='bar'
defmain():
printfoo
if__name__=='__main__':main()
If I run your code using
python born_to_fail.py
I get as output
bar
Best regards,
Stefaan.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source
I just tried and it works without problem on my local computer.
I'll double check what I did on pythonanywhere.
--
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
is it running well in your local computer? or maybe try to import module
Oh wait! On my local computer it was importing not from the modules
folder but from a globally installed version of music21. I need to
examine more first...
--
Resources:
- http://web2py.com
-
satisfactory (music21 is really used in
only one application, not in all of them) but suffices for now.
If anyone has more insights, they are welcome, but the issue is
no longer blocking me from continuing my application.
Thanks!
Stefaan.
--
Resources:
- http://web2py.com
- http://web2py.com/book
Michele Comitini wrote:
Seems that the new layout of python.org is here: http://python.org
My first impression: it feels too widely spaced for my smaller laptop
screen. Their community menu runs off my screen (unless I go
full-screen in my browser, which I normally never do).
Although
regards,
Stefaan.
--
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 Google Groups
web2py-users
',
...
buttons_placement=left,
links_placement=left,
2. I adjusted the css based on the suggestions in this thread:
https://groups.google.com/d/topic/web2py/cWhQla9a2Sc/discussion
(I'm not sure if that was already the case when I originally posted the
question)
Best regards,
Stefaan
It's a manual process to clear down sites from people that decide not to
sign up.
Ouch... so let's hope not too many people decide to try it out then... (oh
wait...! :D)
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py
The instance only lives for
24 hrs unless you sign-up. In that case it will persist.
Hi,
I tried creating something last week as I saw it announced on the dev
mailing list, and despite not signing up, I now see it still appears to
be alive. Is this expected?
Best regards,
Stefaan
should be private (for security) in a standard web2py
installation?https://groups.google.com/forum/#!searchin/web2py/sensitive$20data/web2py/UBhDaekkT8Q/hMJWEycUGYUJ
Best regards,
Stefaan.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py
Hi,
def index():
form = SQLFORM.grid(db.stazione,
fields={db.stazione.codice,db.stazione.sito_id,db.stazione.data_prelievo},
...
You could try:
fields = [db.stazione.codice, db.stazione.sito_id,
db.stazione.data_prelievo]
i.e. [] instead of {}
HTH,
Stefaan.
--
Resources:
- http
Very useful! Thanks.
--
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 Google Groups
,
links_placement=left,
paginate=10)
Best regards,
Stefaan.
https://lh5.googleusercontent.com/-bMVSBL5HjJk/UlPyZYkkLjI/ASs/af-4CTzhe4U/s1600/overlap.png
https://lh5.googleusercontent.com/-2hrq-wqeeUA/UlPyebasP2I/AS0/kc9CK-WVlPg/s1600
Anyone know how I can do that?
I did just that yesterday!
Here's what I did:
I passed a parameter
onupdate=ongridupdate
to the grid, where
def ongridupdate(form):
# all kinds of stuff, followed by...
redirect(URL(default, index, extension=html),client_side=True)
--
Resources:
-
Hello all,
I notice that the last line of my pdf report is wrong: the bottom lines of
the table horizontally extend too far.
The online example on the web2py web
sitehttp://www.web2py.com.ar/fpdf/default/report.pdfshows the same problem:
Any workarounds?
Best regards,
Stefaan.
--
Resources
+2, stefaan wrote:
Hello all,
I notice that the last line of my pdf report is wrong: the bottom lines of
the table horizontally extend too far.
The online example on the web2py web
sitehttp://www.web2py.com.ar/fpdf/default/listing.pdfshows the same problem:
Any workarounds?
Best regards
The problem is solved if I comment out all calls to self.output_table_sep
in the file html.py of gluon/contrib/fpdf
Not sure if that would break other stuff, but it works for me.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source
Hello list,
I'm looking for suggestions for something to manage in-house seminars.
Does anything like this exist already? (I can hardly imagine it
doesn't...) Can Pynuke or Conf2py be used for something like this?
If nothing exists, I might try to make something simple myself.
Some
+1
--
---
You received this message because you are subscribed to the Google Groups web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Should it be done?
No.
--
---
You received this message because you are subscribed to the Google Groups web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email
to web2py+unsubscr...@googlegroups.com.
For more options, visit
This looks like a homework assignment.
Did you intend to post this in the web2py discussion group?
I doubt we would do you a favor solving your homework.
--
How is this related to web2py?
This is not a we solve your homework news group.
If you really expect help, try a more general-purpose newsgroup like
comp.lang.python,
and make sure you post your version of the code, pointing out where you are
stuck, otherwise you might get very rude replies :)
Unless I misunderstand your intention, I don't think that is possible.
Pygame is made for desktop applications. Those cannot be magically embedded
in a webpage (gtk3 has a neat trick in this area, but it's not very
relevant to this discussion).
If you want to create a game running in your
I still don't quite understand what is the reason to have two duplicate
repos ?
Is it purely a matter of reconciling different developer preferences?
--
Very useful! Thanks.
(p.s. I noticed a small typo: VirutualHost instead of VirtualHost in
two places)
--
I can see it too, but only when looking at the
https://groups.google.com/forum/?fromgroups#!forum/web2py page while
logged in using my gmail account.
--
and this change a lot of things but not buttons style, so I think that's
not the corrects way ...
Not sure if it would solve your problem, but sometimes you need to clear
the browser cache to see the effect of changes in css.
I cannot solve your problem, but if all else fails it may help to insert
print statements in the controller, to see which lines you reach,
so you can find out if e.g. one of the lines that come before the call to
form.process() throws an exception.
--
Now I realize that in order to interact with the table, which is managed
by pyjamas, for example to select a certain row, I need to define a complex
JSONRPCs interface (select row, un-select, paginate to next page, previous
page, last page, page number, ...), passing back and forth
/yourstylesheet.css)}}'
title
Activity
/title
/head
body
script language=javascript
src={{=URL('static','output/bootstrap.js')}}
/script
/body
/html
Best regards,
Stefaan.
--
From what I understand:
If it is a folder on the client pc, it probably isn't possible with just
javascript.
If it is a folder on the server, it should be possible to write something
yourself (maybe a lot of work if you want a full-fledged file manager, but
if you can live with listing possible
Ticket issued:
poweredby/xxx.xxx.xx.x.2012-06-04.12-35-07.80f9cfdf-c405-4c8e-8229-3dca140cade2http://www.web2py.com/admin/default/ticket/poweredby/192.146.11.2.2012-06-04.12-35-07.80f9cfdf-c405-4c8e-8229-3dca140cade2
I have noticed one other tracker in web2py, but I couldn't demo it.
Have you seen these?
http://code.google.com/p/web2py-issuetracker/
http://www.i-track.org/
They pull from your git repository to deploy an application. Do you see
a demand for something like this in Web2py? Would it be a feature you
would want to use?
Doesn't fluxflex also do this already?
Are there any good alternatives to using pyjamas/pyjs or learning
JavaScript from scratch?
What problems are you having? I've been using a recent version of pyjamas
without problem.
(Of course with the recent hijack of the project by some disgruntled
people there may be other reasons to
Or maybe I misread your question, and you were really asking about pyjd ?
I haven't used it, so I don't know... so far debugging the application was
easy enough by dumping debug information onto the bottom of my page.
I cannot help much with the hulahop (that's needed for pyjd only, which i
haven't used myself).
I normally compile on the command line, using the pyjsbuild tool found
inside the pyjamas/bin folder,
and test inside the browser.
solved some of the issues...time to get crackin'!
Glad to hear it :)
I have found the inspect element tool in chromium to be very valuable
in diagnosing trouble with my application.
Looks pretty impressive!
Perhaps this can be useful.
Please correct me if I'm wrong, but as far as I understand tornado cannot
be used with free hosting?
(or can it?)
Hello list,
Would anyone have an idea on how to accomplish reverse ajax (server
push) on free hosting like fluxflex/pythonanywhere?
If I'm correct, typical comet libraries require special web servers,
so that is probably out of the question on typical free hosting sites.
For my own
The screenshot in the book was made using firefox, which automatically
styles rss feeds such as the one you pasted and displays it in a nice way
to the user.
Other browsers don't have this automatic styling of rss feeds, and for
those you should probably get some rss reader plugin to display
It still needs some work before I can release it.
Hmmm.. wondering now if we will see a sudden spike in web2py based phishing
sites ;)
An inner voice is saying: Can't the person who has breached that limit
be asked to create his own tables instead of giving all the rest of us the
inconvenience?.
An inner voice is saying: 640K [rows] ought to be enough for anybody ? ;)
I'm a little surprised at all the negativity toward the new Google Groups
-- I find it a general improvement over the old interface. Now we can do
rich text formatting, code highlighting, and attach files.
My favourite way to follow the web2py newsgroups currently is by reading
gmane
This new look that Google Groups has implemented is seriously
debilitating
+200
It doesn't seem like a very dumb idea, it would go a bit in the direction
of literate programming.
(see e.g. http://monday.sourceforge.net/litprog.html )
Currently switching between controller and view indeed takes a mental and
physical context switch.
Sometimes views are reused across
I really think these buttons should go away in favor of a dropdown menu.
I'm not convinced. A dropdown menu is less intuitive for the end user.
If you only expose a few operations, I think separate buttons are better.
Well I know the major bottle neck in the site is the binary tree. I am
still trying to figure out how to do this the best and most efficient.
Maybe this could be useful:
http://dirtsimple.org/2010/11/simplest-way-to-do-tree-based-queries.html
Everything is so complicated compared to the old google groups. :-(
rant
I passionately dislike the look and feel of the new google groups.
The new motto seems to be Why fit all messages on one screen if you can
fit it on four. (And no need to point out compact mode, the amount of
white
Your mileage may vary, but for me glancing through the examples got me
started in no time:
http://www.web2py.com/examples/default/examples
Hello,
I downloaded web2py 1.99.7 source code and google app engine sdk 1.6.3.
When I try to start web2py using dev_appserver, it complains (see stack
trace).
Any ideas?
Best regards,
Stefaan.
WARNING 2012-03-16 21:26:56,734 rdbms_mysqldb.py:74] The rdbms API is
not available because
Impressive!
Have you looked here?
http://web2py.com/examples/default/examples#form_examples
FORM (and all the other UPPERCASE helpers) is just a function that
creates an html fragment.
The key to understanding how these forms work is to realize that forms
are submitted to themselves.
That's why the code in
Seems like practicality beats purity :p
(although the true relevance of the above line in the context of
web2py can be discussed)
I am not sure if miktex includes pdflatex. I only used it on linux but
it should be easy to define it after miktex is installed.
MiKTeX *does* indeed contain pdflatex.
Gelukkig nieuwjaar :)
Stefaan.
Vrolijk kerstfeest en gelukkig nieuwjaar!
Very, very nice idea.
An impressive piece of work :)
I did spot a buglet though: the blue links on top of the contact form
at
http://demo.i-track.org/itrack_demo/default/contact_admin
trigger an invalid function error if one is not logged in.
Best regards,
Stefaan.
Web2py default layouts certainly have come a long way since the (IMHO,
quite awful :p ) fluorescent orange and black-green looks.
I do seem to miss some best-practices documentation about how to
effectively apply themes to a web2py application. The downloadable
themes do not always properly
I have found one solution which works for me:
In static/css/basic.css I commented:
/*.web2py_grid td { white-space:nowrap; }*/
Thanks for posting this!
Best regards,
Stefaan.
tomt wrote:
I wanted to implement the 'extracolumns' feature of SQLTABLE
and the example provided in the source code is:
:param extracolums = [{'label':A('Extra',_href='#'),
'class': '', #class name of the header
'width':'', #width in pixels or %
I went web2py when I realized that what worked five years ago isn’t
working today.
Brilliant plugin!
1. Before reading your email again it was not clear to me how to get the
query to be activated until I tried to see what would happen if I click on
the and/or buttons. Only then I saw that those buttons add the query with
an 'and' or 'or' to the existing query.
I had the same trouble
I have replaced my all my similar .js and .css files with that of the
welcome app but I see no popup panel.
It may be that the old .css is cached in your browser and needs to be
reloaded
- try to refresh the browser page once. That was the case for me.
A new button query should appear left of
Do we need a policy about this?
live and let live ?
How does choosing option 1 -- option 3 affect building a UI ?
It seems to me that option 1 can be used as-is in an SQLFORM.grid
containing other fields,
whereas option 3 might require a separate SQLFORM.grid to manage the
correspondence tags-items?
If this is just me not understanding all
Maybe useful for readers in the future:
Using multiple grids in one view is not supported, and the problems
won't be fixed.
(workaround: e.g. use iframes, or design a better UI that doesn't need
two grids in one view ;) )
Massimo Di Pierro wrote:
The new grid/smartgrid have a much better search feature. A new button
query shows a popup panel that allows you to build the query string.
Can you please check on your existing tables and see if you encounter
any problems?
The capabilities columns seems to be missing
be used in one view?
web2py 1.99.2 from source on debian sid amd64
Thanks,
Stefaan.
Also, performing a search in one of the two grids actually
results in both grids searching for the same keyword.
And noticed another thing: the export button
always returns results for the first table, even
when clicked on the second table.
Some code:
view
{{extend 'layout.html'}}
{{=servers}}
{{=server_capabilities}}
**
controller
**
def index():
links = [lambda row: A('Check status',_href=URL(c='administration',
f='check_server_status/%s' % row.id))]
servers = SQLFORM.grid(
Near the top of the scaffolding application, it said:
db = DAL('sqlite://storage.sqlite')
Near the bottom of the application i had copied from my old
application the following:
db = SQLDB('sqlite://db.db')
So the variable db was used twice to indicate different tables.
I have no idea now how
Hello,
The auth tables should be visible from the db administration interface --
not from your models in design view but from the 'db' interface where you
can view table contents and insert records directly into tables (in design
view, you follow the database administration button just under
I think he redefine the auth model and now can't see all column in the
appadmin?!
To be clear: I didn't redefine anything auth related. I just use the
default auth provisions.
at the bottom of db.py.
I will try to insert some print statements tomorrow to see if something
is printed on the console.
Thanks for this insight.
Stefaan.
tables listed, but nothing created by auth.
(The sql.log does contain references to auth tables, and registration/
login/logout/profile/password recovery all work as expected).
I'm running web2py 1.99.2 from source on win32.
Thanks,
Stefaan.
A partial reply to my own questions:
I was wondering about grid/smartgrid: currently we can use
maxtextlength=XXX to indicate the max length of a column. If the real
length is longer than XXX, the text is chopped at a suitable length
and ... is added to it.
If you configure a long
I was wondering about grid/smartgrid: currently we can use
maxtextlength=XXX to indicate the max length of a column. If the real
length is longer than XXX, the text is chopped at a suitable length
and ... is added to it.
If you configure a long maxtextlength, at least with the default
template the
Maybe we could add a stats graph tracking evolution somewhere on the
web2py page.
The google charts api is really easy to use.
I still get a ticket when clicking tracker - issues button after
logging in via google. Without login, the issues button seems to work.
http://tests.web2py.com/admin/default/ticket/tracker/192.146.11.2.2011-09-22.16-42-57.2692ee08-77f7-4a72-a1e2-5744c55e58e1
Please help me test it and suggest improvements:
http://tests.web2py.com/tracker
Hello, I've attached a .jpg image to one of the issues,
but when I tried to download the attachment, I got
Invalid Request
Also, not sure if bug or feature:
after commenting on one of the issues it seems I
Please help me test it and suggest improvements:
Also not sure if bug or feature:
If I add an issue, owner is fixed to massimo.dipie...@gmail.com
(I had expected to be the owner of the issues I logged)
Also I seem to be unable to add new issues (perhaps that's a matter of
permissions), but
in instead:
s = lower(2,2'-(Butane-1,4-diyl)dibenzimidazolium dichloride)
best regards,
Stefaan.
hey guys ,
anyone can tell me how to use cgi in web2py ??
If in doubt, always check the online book first...
http://www.web2py.com/book/default/chapter/11?search=cgi
Best regards,
Stefaan.
web2py provides a file cgihandler.py to interface to CGI.
If still in doubt, use google:
http://web2py.com/AlterEgo/default/show/93
(As far as I understand, a cgi program expects input via stdin, and
sends output to stdout,
but I'm by no means an expert)
Best regards,
Stefaan.
? Is this a bug in the jsonrpc support for
web2py? Or do I simply have wrong expectations?
Any insights welcome!
Best regards,
Stefaan.
specifies jsonrpc must have
application/json.
Best regards,
Stefaan.
2011 22:40:47 GMT'),
server('Rocket 1.2.2 Python/2.6.7'),
content_length(56),
connection('keep-alive')
]
The rest of the request then contains the json reply containing the
correct answer.
Please let me know if you need more data.
Best regards,
Stefaan.
at google's side.
Several people (most of which don't use web2py) seem to report a similar
deployment problem in the google appengine group:
http://groups.google.com/group/google-appengine/browse_thread/thread/fd9ffb279caa9923/f4a9c9df8046705f?lnk=gstq=error+500#f4a9c9df8046705f
Best regards,
Stefaan.
1 - 100 of 169 matches
Mail list logo