http://www.pyforum.org/ ?
On 2 June 2011 17:01, mart msenecal...@gmail.com wrote:
HI,
anyone have a quick and dirty template to build something like a
google group (group posts, group/individual replies, group/individual
mail). Or maybe a suggestion on the best and quickest way to get one
This is very useful - thanks Massimo! I will do some testing too...
Still working on the LMS? ;-)
On 26 May 2011 15:10, Massimo Di Pierro massimo.dipie...@gmail.com wrote:
I changed 'request_precinct' to 'request_tenant' since this is more
appropriate. We are talking about buildig
Two spaces at the end of a line makes a new line in Markdown... would it be
possible to have the same behavior in Markmin?
On 17 May 2011 04:09, Bruno Rocha rochacbr...@gmail.com wrote:
On Mon, May 16, 2011 at 11:34 PM, JayShaffstall jshaffst...@gmail.comwrote:
pJust enough of rainbr/
To
OK - agreed.
On 17 May 2011 14:21, Massimo Di Pierro massimo.dipie...@gmail.com wrote:
Why? I think using whitespaces in wiki syntax is bad because they are
invisible.
On May 17, 1:34 am, Tom Atkins minkto...@gmail.com wrote:
Two spaces at the end of a line makes a new line in Markdown
http://docs.python-requests.org/en/latest/index.html
I just emailed SImpleAuth support and got this reply back from Mike (which
he agreed I could post here):
-
We completely understand the concerns. The founders (I'm one of them) are
all developers and we built SimpleAuth because it's just what we needed as
well. Every developer
me time if you could point me to the php
example.
Massimo
On Apr 27, 9:40 am, Tom Atkins minkto...@gmail.com wrote:
I just emailed SImpleAuth support and got this reply back from Mike
(which
he agreed I could post here):
-
We completely understand the concerns
This worked for me:
http://www.web2py.com/book/default/chapter/12#Pagination
On 12 April 2011 11:16, Francisco Costa m...@franciscocosta.com wrote:
Hi!
What is the ideal pagination method in web2py?
Are there any plugins or examples?
http://code.google.com/p/emscripten/
+1
On 1 April 2011 06:35, David Marko dma...@tiscali.cz wrote:
I'm also interested in testing ...
David Marko
The problem for me is not being able to mix the new parameter-based routing
with the pattern-based system (my regex skills are not good enough to make
the patten system do what I want) .
Is it possible to have parameter system in the global routes.py and then
pattern system in the
22, 3:13 am, Tom Atkins mink...@gmail.com wrote:
I might be being naive here but in Flask I can do:
@app.route('/yoursitename/users')
... def editusers(yoursitename): pass
print url_for('editprofile', yoursitename='Supersite')
gives:
/Supersite/users
On 22 March 2011 05:23
Thanks Anthony - you're right and I do know this - just wrote the wrong
thing in my previous post - I meant to say 'change to pattern-based'... make
me wonder what other stupid mistakes I'm making... but double checked and I
think I have everything correct and as suggested by Massimo.
On 24 March
, at 7:44 PM, Indra Gunawan wrote:
Agree, Flask way looks more elegant (see Variable Rules). It could be nice
if this way also exists on Web2Py.
On 22 March 2011 06:05, Tom Atkins minkto...@gmail.com wrote:
I was playing with Flask and I have to say its solution to routing is very
nice:
http
sorry - should have been:
@app.route('/yoursitename/users')
... def editusers(yoursitename): pass
print url_for('editusers', yoursitename='Supersite')
gives:
/Supersite/users
On 22 March 2011 08:13, Tom Atkins minkto...@gmail.com wrote:
I might be being naive here but in Flask I can do
It uses Werkzeug - full details here:
http://werkzeug.pocoo.org/docs/routing/
On 22 March 2011 14:49, Jonathan Lundell jlund...@pobox.com wrote:
Maybe so. Is there a formal definition of how Flask's routing works? All I
could find was a rather brief overview at the quickstart link.
This looks great. Do you mean this Django toolbar:
http://rob.cogit8.org/blog/2008/Sep/19/introducing-django-debug-toolbar/
http://rob.cogit8.org/blog/2008/Sep/19/introducing-django-debug-toolbar/If
so I'd be very interested in SQL queries showing the number of queries run
during response
I am designing an app with a URL structure like this:
myapp.com/yoursitename
'yoursitename' is effectively an argument as there could be many sites and
users are allowed to create their own sites. But I'd like it to be 'top
level'.
Then within yoursitename there will be URLs like this:
' or
'yoursitename' - it's top level but user chosen. They also have reserved
URLs like:
https://github.com/plans
On 21 March 2011 21:51, VP vtp2...@gmail.com wrote:
I think each yoursitename should be a different app. I think it's
most efficient that way.
On Mar 21, 4:37 pm, Tom Atkins minkto
Thanks for the reply - I've considered the subdomain option but don't want
to use it in this case. This article:
http://warpspire.com/posts/url-design/
http://warpspire.com/posts/url-design/was previously linked on the forum
and summarises very well the reasons I'm keen to go for a URL
?
On 21 March 2011 22:30, Jonathan Lundell jlund...@pobox.com wrote:
On Mar 21, 2011, at 2:37 PM, Tom Atkins wrote:
I am designing an app with a URL structure like this:
myapp.com/yoursitename
'yoursitename' is effectively an argument as there could be many sites
and users are allowed
this may be of interest:
http://stackoverflow.com/questions/5050481/restful-backend-framework-for-backbone-js-and-co
, rochacbruno rochacbr...@gmail.com wrote:
In shell you need to fire db.commit() to persist changes.
Em 19/03/2011, às 10:23, Tom Atkins minkto...@gmail.com escreveu:
Hmm - I spoke too soon. Database changes work OK from controllers but not
from shell...
On 19 March 2011 13:03, Tom Atkins minkto
pm, Tom Atkins minkto...@gmail.com wrote:
Thank you - yes the double hit on the database was what made it seem
inelegant to me.
Your joined query works fine and I can work with the return data. Any
further improvements gratefully received! Hoping Massimo has an
undocumented
super 1
Sorry to hear your questions didn't get answered more quickly. I'm a
relative newbie here and have always been impressed with the speed,
helpfulness and friendliness of the group. Don't give up yet!
With regard to the issues you're having with database commits I too am
having problems in the
Oops - my mistake - I was using Navicat to look at my sqllite database and
had left it open. hence sqllite db was locked.
On 19 March 2011 10:41, Tom Atkins minkto...@gmail.com wrote:
Thanks Massimo - I was considering using accessible_query.
However, I've now got a problem before I try
Hmm - I spoke too soon. Database changes work OK from controllers but not
from shell...
On 19 March 2011 13:03, Tom Atkins minkto...@gmail.com wrote:
Oops - my mistake - I was using Navicat to look at my sqllite database and
had left it open. hence sqllite db was locked.
On 19 March 2011
Given a user ID with ID of 1
and a group with ID of 1 and role = Super Admin
and an entry in auth_membership to tie the two together so that user 1 is a
member of group 1 I can do:
auth.has_membership(1,1)
True
but if I do:
auth.has_membership(1, role=Super admin)
False
(I'm running latest
Admin != Super admin
On Mar 18, 11:51 am, Tom Atkins minkto...@gmail.com wrote:
Given a user ID with ID of 1
and a group with ID of 1 and role = Super Admin
and an entry in auth_membership to tie the two together so that user 1 is
a
member of group 1 I can do:
auth.has_membership
OK my brain is still failing me today:
What's the best way to return the details of all users who have a specific
role?
I have something like:
for row in db(db.auth_user).select():
if auth.has_membership(user_id=row.id, role=('Super admin')):
# do something
but can't help
Thank you - yes the double hit on the database was what made it seem
inelegant to me.
Your joined query works fine and I can work with the return data. Any
further improvements gratefully received! Hoping Massimo has an undocumented
super 1 liner! ;-)
Works for me now - and certainly feels very snappy! No sessions files being
created unless user logs in.
On 16 March 2011 16:01, Massimo Di Pierro massimo.dipie...@gmail.comwrote:
I found out that auth was causing session to be saved even if unused.
I changed it.
With the latest trunk,
Just looking at CubicWeb via the link given on Reddit. Looks like an
interesting project - amazing what's out there that I've never heard of!
This blog post:
http://www.cubicweb.org/blogentry/1484253
describes an interesting way of using multi core processors to load balance
and solves session
On 15 March 2011 13:43, Bruno Rocha rochacbr...@gmail.com wrote:
web2py - Code Less Create More!
+1 (and then mention 'full-stack python web framework...')
changing my +1 - now liking Productivity by design!
On 15 March 2011 15:39, Bruno Rocha rochacbr...@gmail.com wrote:
On Tue, Mar 15, 2011 at 12:35 PM, Jonathan Lundell jlund...@pobox.comwrote:
On Mar 15, 2011, at 8:12 AM, Kevin Ivarsen wrote:
So far I like Productivity by design.
I do
I'd like to give users the option of resizing their images before uploading.
There are a few tools around that do this. I've been looking at:
http://www.plupload.com
and
http://www.shift8creative.com/projects/agile-uploader/index.html
I haven't had much luck integrating them with web2py yet
I'm currently using one web2py instance and and then running multiple sites
using code in routes.py. This example from Jonathan should be helpful:
https://groups.google.com/d/msg/web2py/iq_YAstVUCI/pr65jJRY6JwJ
This works fine but is not the most efficient way for high volume sites.
Various
how to only load JavaScript as a fall-back when browsers don't support an
HTML5 feature - i.e. *regressive* enhancement:
http://blogs.sitepoint.com/2011/03/08/regressive-enhancement-with-modernizr-and-yepnope/
The SheepIt jQuery plugin looks excellent - thanks for the link. I'll need
to make this work with web2py sometime in the next couple of months.
Hopefully someone else (not mentioning any names ;-) ) will provide some
example code before then!
On 9 March 2011 04:18, Dr Schmulge
+1 for what VP says - minimal should be default with easy access to
scaffolding for those who want it.
On 2 March 2011 18:00, VP vtp2...@gmail.com wrote:
I'd like this feature, but in some way I echo the sentiment by
Plumo. Maybe there should be 2 scaffold apps, to be chosen by the
user??
I've started a blog about my web2py learning.
I'm new to Python and web2py, so please go gently on my coding horrors!
Constructive criticism on more elegant ways to do things will be very much
appreciated.
http://knitatoms.net
The site is built with web2py and there's an RSS feed to subscribe
On 18 February 2011 22:11, pbreit pbreitenb...@gmail.com wrote:
Did you write your own blogging app?
Yes - when the code is a bit less embarrassing I'll put it up on
bitbucket...
On 18 February 2011 22:52, cjrh caleb.hatti...@gmail.com wrote:
I would subscribe to the feed but I can't seem to find it.
I've added a link 'RSS Feed' to the menu.
There's also an auto discovery link in the head which is what I was relying
on:
link rel=alternate type=application/rss+xml
very useful - thanks!
I have something like this which works fine:
commentform = SQLFORM(db.comment)
commentform.vars.post_id = post.id
This populates commentform with the current post id.
How can I do this with crud.create? (I know I need to use the onaccept
method of crud.create but I'm stuck.)
On 9 February 2011 15:18, Massimo Di Pierro massimo.dipie...@gmail.comwrote:
db.comment.post_id.default = post.id
form = crud.create(db.comment)
Doh! Thank you!
Yes it will work. (1.3.2+ means that version and any version higher)
On 9 February 2011 19:40, Panupat panup...@gmail.com wrote:
The latest jQuery UI (1.8.9) says it supports jQuery 1.3.2+. Seeing
that web2py comes with jQuery 1.4.4, will jQuery UI work with this
version?
On 6 February 2011 15:51, Massimo Di Pierro massimo.dipie...@gmail.comwrote:
The least comment in the issue thread says it is fixed after deleting
the pyc. Is that not correct?
Yes - fixed after dal.pyc was recreated with new version.
know if you need any more info. I definitely have the latest version.
On 4 February 2011 19:49, Massimo Di Pierro massimo.dipie...@gmail.comwrote:
This is a trunk bug. The problem does should be there in stable. I
will fix this tonight.
On Feb 4, 12:50 pm, Tom Atkins minkto...@gmail.com wrote
Oops - sorry, ignore my last message. I had an old version of dal.pyc...
removed that and restarted web2py and everything is working great. Many
thanks.
On 6 February 2011 13:26, Tom Atkins minkto...@gmail.com wrote:
Thanks for looking into this Massimo. I just pulled the most recent
version
Yes - I should have said that I was assuming it was running behind Apache.
With the standard setup as created by the 'setup-ubuntu.sh' or
'setup-fedora.sh' scripts (in the scripts folder) you'll already be set with
a self-sigend certificate and Apache configured to send https requests to
web2py.
I am getting the same error as reported by Carlos and cannot fix it.
I have just set up a new server (Ubuntu 10.04 - postgres 8.4, Python 2.6.5)
and have web2py trunk up and running fine. I have an unmodified 'welcome'
app which runs perfectly with sqlite.
I then delete all the files in
(PS I have tried auth.define_tables(migrate='False') and it doesn't help)
On 4 February 2011 13:22, Tom Atkins minkto...@gmail.com wrote:
I am getting the same error as reported by Carlos and cannot fix it.
I have just set up a new server (Ubuntu 10.04 - postgres 8.4, Python 2.6.5)
and have
On 4 February 2011 14:33, Massimo Di Pierro massimo.dipie...@gmail.comwrote:
You are using web2py trunk right?
Yes - just a clean version of web2py pulled by Hg from Google code.
Did you set a sequence_name
manually?
No (not even sure what sequence_name is!) - I tried another app of my
This isn't really a direct answer to your question but it might help clarify
some things for you (it got me thinking anyway)... it's a quote from a user
on another mailing list:
There's been a big move toward Javascript-heavy web apps in the last couple
of years, and new tools frameworks are
Sorry - posted broken link to CoffeeScript site. It should have been:
http://jashkenas.github.com/coffee-script/
On 3 February 2011 08:16, Tom Atkins minkto...@gmail.com wrote:
http://jashkenas.github.com
No need to start to instances of web2py. If you use Jonathan's new routers
syntax available in trunk you can put something like this in routes.py:
routers = dict(
BASE = dict(
domains = {
'www.domain.com:80 http://domain.com/' : 'myappname',
'secure.domain.com:443' :
See Massimo's response here:
https://groups.google.com/forum/#!topic/web2py/dmN54cpMuXo
Thanks for your work on the new routers Jonathan - it makes life much
easier.
Quick question, say I have:
routers = dict(
BASE = dict(
domains = {
'domain1.com' : 'app1',
'domain2.com' : 'app2',
}
),
)
But would also like www.domain1.com to map to app1 but
version they lose their session as the cookies don't
match. With your suggestion the session is maintained regardless of the URL
entered.
On 2 February 2011 16:43, Jonathan Lundell jlund...@pobox.com wrote:
On Feb 2, 2011, at 7:52 AM, Tom Atkins wrote:
Thanks for your work on the new routers
Initially I tried the short version. Just tried the long version and it
works too - impressively no typos in your untested code! Both also work
nicely for http and https.
What are the pros and cons of the short v long version?
On 2 February 2011 17:26, Jonathan Lundell jlund...@pobox.com
On 2 February 2011 18:27, Jonathan Lundell jlund...@pobox.com wrote:
The long version seems useful if you had more than one or two domains that
you needed to redirect
Of course - realised that just after I posted the question!
, and it retains the incoming http vs https scheme.
Yes - what
http://pinboard.in gives me a list of people to check out based on their
bookmarking history. I don't know the details of the algorithm and there's
no flexibility in refining the recommendations but I've found some
interesting people to add to my 'network'. You can only see the username of
the
web2py - the resilient web framework ;-)
https://github.com/mleibman/SlickGrid/wiki
looks interesting. Grooveshark uses it, see here:
http://blog.jerodsanto.net/2010/12/the-tech-behind-the-new-grooveshark/
Just for interest if you're building a location aware app:
http://simplegeo.com
I hereby nominate web2py for 'Fastest developing full-stack web framework of
the year award'.
It's amazing how much has been added and fixed in 12 months since I've been
using web2py. Well done Massimo and everyone. Looking forward to 2011!
very nice! thank you!
On 21 December 2010 03:44, mdipierro mdipie...@cs.depaul.edu wrote:
Anyway... I merged the google shell with web2py.
We now have a new shell:
http://127.0.0.1:8000/admin/shell/index/appname
should work better then before and should work on GAE too. Please give
it a
The new DAL looks fantastic Massimo.
So that people don't get the wrong impression though: It's a bit
disconcerting to click the initial link in the Reddit article about 'brand
new DAL' and then get a very large title saying 'Old web2py blog' and
response flash saying 'Some info may be out of
Interesting way of doing things for web apps:
http://www.hackers-with-attitude.com/2010/10/using-clojure-nosql-databases-and.html
May have some relevance to web2py with the new support for NoSQL db's - I
like the idea of auto data sync between client (local storage API) and
server (NoSQL key
I'm assuming John Heenan's criticisms of web2py would apply equally to
Django?
Please correct me if I'm wrong.
Django can scale pretty well - here's a presentation showing how Disqus have
scaled their Django app to 250 million visitors a month and a peak of 17,000
requests per second to Django
I should have said John Heenan's criticisms of web2py *relating to
scalability*...
On 2 December 2010 11:46, Tom Atkins minkto...@gmail.com wrote:
I'm assuming John Heenan's criticisms of web2py would apply equally to
Django?
Please correct me if I'm wrong.
Django can scale pretty well
Very sorry - I missed the link you already posted - will make sure to read
full thread in the future!
On 2 December 2010 12:23, Kuba Kucharski kuba.kuchar...@gmail.com wrote:
requests per second to Django with Apache and mod_wsgi:
I'm very happy about Markmin! I've used Markdown for years for creating
eLearning resources and blogging.
I have tried to get 'normal' users to use Markdown (Markmin would be the
same) and it's not easy. Non-techy people will not use inline markup! So
an editor like MarkItUp is essential.
The
[sorry - I meant The combination of MarkItUp and **Markmin** is excellent.]
On 5 November 2010 09:30, Tom Atkins minkto...@gmail.com wrote:
I'm very happy about Markmin! I've used Markdown for years for creating
eLearning resources and blogging.
I have tried to get 'normal' users to use
I can volunteer time and input for the LMS idea. I'm not experienced enough
with Python and web2py yet to contribute good code but can help with
frontend UI, design, jQuery and documentation.
Assuming the project would have a Free license?
I'd be happy to register, host, set up and manage a
+1 for this one: http://trentrichardson.com/examples/timepicker/
http://trentrichardson.com/examples/timepicker/quite a few applications
that i'm currently using make use of this approach - very usable and
customisable.
On 2 November 2010 07:16, annet annet.verm...@gmail.com wrote:
more
just for interest:
http://jsfiddle.net
very useful for me learning and sharing jquery stuff. very easy to include
jquery-ui - just check the box!
I'm using plugin_wiki to build a blog and wiki site. (plugin_wiki is
fantastic for this - thanks Massimo!)
I would like to use a jQuery syntax highlighter instead of the built-in one.
Most of these highlighters require 2 CSS classes, eg:
code class=syntax python
def test():
blah blah
/code
That makes sense about routes.py for multiple sites not being a production
setting because web2py will be serving static files. Also, this is the same
for the Tip of the day. The power of routes setup (perfect for me now with
small development sites but hopefully not in the future)!
Going back
Fantastic - thanks Massimo. That is extremely useful - my regex skills are
pretty poor but this really helps with getting to grips with routes.py.
Love the 'tips of the day' - keep 'em coming!
On 18 October 2010 03:07, mdipierro mdipie...@cs.depaul.edu wrote:
I put the script in trunk under
Just in case anyone is still thinking about eLearning or Learning Management
Systems here's an interview with the creator of Moodle:
http://www.edugeekjournal.com/2010/10/18/is-moodle-going-down-the-path-of-open-social-learning/
Worth noting that he's considering a complete rewrite focuesed
I have the same problem as Youngblood: I've just tried to install web2py as
a windows service and get the error below (Windows 7 32bit, Python 2.7,
pywin installed, latest web2py source from mercurial):
c:\path\to\web2pypython web2py.py -W install
No handlers could be found for logger web2py
to get anywhere). When I previously
installed the extensions for Python 2.5 it all went fine... that'll teach me
to upgade (or to be using Windows)!
On 17 October 2010 16:23, mdipierro mdipie...@cs.depaul.edu wrote:
you need to install mark hammond win32 extensions
On Oct 17, 7:13 am, Tom Atkins
I know this has been asked before but I've been unable to find a clear
answer. (Apologies to Graham Dumpleton who must have answered this kind of
question many times for Django etc but I can't work out how to do it for
web2py)
I have a Debian server set up and running web2py with mod_wsgi using
/$anything','/
app3/$anything'),
)
On Oct 17, 5:21 pm, Tom Atkins minkto...@gmail.com wrote:
I know this has been asked before but I've been unable to find a clear
answer. (Apologies to Graham Dumpleton who must have answered this kind
of
question many times for Django etc but I can't work
I vote A but with lower case like B - web2py - and perhaps a more stylish
font?
PS Great to see the effort going into this and the new site design - it will
really help increase use of web2py (although it seems silly that aesthetics
matter so much, it's a fact of life that they do).
uh oh - getting carried away now: http://susweb.net/images/web2pylogo/
sorry last post unless anyone would like more. i do miss the web2py orange.
here's an idea for a site design which keeps the orange:
http://susweb.net/images/web2pylogo/test/
and some alternative colours for the logo:
http://susweb.net/images/web2pylogo/
just for interest:
http://www.html5rocks.com/
and
http://slides.html5rocks.com
I am very interested in a web2py Learning Management System (LMS). In fact
this is a large part of why I am learning web2py:
For the last 6 years I have been delivering courses using Moodle here in
Ireland. When I started using Moodle it felt modern and impressive. 6 years
later, Moodle feels
Brilliant - many thanks Martin - this is very helpful and great to see
web2py looking more beautiful.
On 28 September 2010 23:29, Martin.Mulone mulone.mar...@gmail.com wrote:
It's cost me a lot of time really, but I think i did it, after many
try, i think the only way we have proper columns
The 'design flaw' relating to course content that you describe Massimo is a
very important problem to solve. It comes up a lot in Moodle discussions -
how can I reuse content (across courses and / or groups) but not have the
wrong people access it at the wrong time. The new Moodle 2 has
described by the book in chapter 3.
Massimo
On Sep 25, 12:34 pm, Tom Atkins minkto...@gmail.com wrote:
I've just copied and pasted from the online book the wiki application in
chapter 3. It all works great.
I've added the function for the rss feed to controller/default.py and if
I
I've just copied and pasted from the online book the wiki application in
chapter 3. It all works great.
I've added the function for the rss feed to controller/default.py and if I
go to:
http://127.0.0.1:8000/mywiki/default/news
I get a nice page showing the wiki entries.
However if I go to:
very impressive! hope you get time to continue to develop and agree with
Massimo to release with web2py.
+1 for a professional redesign of web2py.com - although it is a cosmetic
thing I think you will be amazed how much more popular web2py will become
with a stylish professional looking web2py.com. I'm willing to contribute
money towards this if a fund is started.
I know there are many excellent
Forgot to say - a good aspect of the charlesproxy site design is the
documentation - lots of information and subheadings but clean navigation.
The excellent web2py book is nearly in this structure. If the design /
foramatting matched the rest of web2py.com then :-)
On 16 August 2010 13:01,
98 matches
Mail list logo