[web2py:21933] Re: psycopg2-2.0.10 install linux ,help me

2009-05-15 Thread Tom
Hi, wengfei. I had the same error message trying to install psycopg2 using easy_install. I'm using Ubuntu 8.04. I tried to install some packages, as libpq-dev recommended by Marek, but other packages were necessary. Then I installed psycopg2 using apt-get: $ sudo apt-get install python-psycopg

[web2py] validation not working on

2011-01-24 Thread tom
Hello web2py users! I'm trying to use the onvalidation function in SQLFORM, but isn't working very well. When I use SQLFORM as insert form, everything works fine. But when I change it to update/detele form (with adding request.args(1) into SQLFORM; request.args(1) gives me record's ID, whitch I w

[web2py] A question from a web2py newcomer

2011-03-08 Thread Tom
Hi,I am a newcomer of web2py, I am learning it by following this guide The Official (3rd Ed.)web2py Book(http://web2py.com/book/default/ chapter/03) At the step of creating db, after I created db.py, In this page http://127.0.0.1:8000/ImageBlog/appadmin/index, I couldn't see my tables:image and co

[web2py] Re: A question from a web2py newcomer

2011-03-08 Thread Tom
orrectly in db.py > The app should either run or you get a ticket or something. > > Regards, > David > > On Mar 8, 8:43 am, Tom wrote: > > > > > > > > > Hi,I am a newcomer of web2py, I am learning it by following this guide > > The Official

[web2py] DatePicker

2013-06-17 Thread tom
doing this for example but was curious of there is more that I have to do to make this work so when a user selects date of birth the datepicker appears. Thanks, Tom -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscrib

[web2py] Datepicker

2013-06-17 Thread tom
I am following some examples and created a table with a date of birth field. In my form I cannot seem to get the datepicker set to show when selecting that field. Is there something special to do to get that to work like that? Thanks -- --- You received this message because you are subscrib

[web2py] Re: DatePicker

2013-06-18 Thread tom
; Web Form >> >> Inputs: >> {{=form}} >> Submitted variables: >> {{=BEAUTIFY(request.vars)}} >> >> >> Just doing this for example but was curious of there is more that I have >> to do to make this work so when a user selects date of birth the

[web2py] 3 forms in 1

2013-06-18 Thread tom
27;fieldname:capitalize') return dict(form=form, records=records) So the form displays correctly but I was expecting that the other fields for dependents and emergencycontacts would be there for input as well but I only get the id fields showing up for input. Am I doing what I want to d

Re: [web2py] Re: DatePicker

2013-06-18 Thread tom
S_NOT_EMPTY()), >>>> Field('date_of_birth', required=IS_DATE(), requires=IS_NOT_EMPTY())) >>>> >>>> My Controller: >>>> >>>> def display_your_form(): >>>> form = SQLFORM(db.patient) >>>> return dict(form=form)

[web2py] SmartGrid

2013-06-19 Thread tom
I have a smartgrid set up like this: def manage_patients(): grid = SQLFORM.smartgrid(db.patient, deletable=True, editable=True, create=True, linked_tables=['emergencycontacts','dependents']) return dict(grid=grid) It displays fine but only has a view button to the far right. How do I ha

[web2py] Admin Authentication Security

2015-02-19 Thread Tom
account is blocked, where can I find the location to change these messages to a single consistent login failure message ? Kind regards, Tom -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py

[web2py] Regarding post-processing of upload files?

2010-07-01 Thread Tom Chang
web2py experts, a newbie here trying to learn web2py on my first app. Basically, I want a user to upload a text file (work perfectly right from web2py). Then, the backend (controller) will analyze the text files, and then display the output back to the user. The problem I ran into is after I ret

[web2py] Re: Regarding post-processing of upload files?

2010-07-01 Thread Tom Chang
Hi mdipierro and Yarko, Thanks for the information. It does help and work now!!! best regards, TC On Jul 1, 11:57 am, Yarko Tymciurak wrote: > On Jul 1, 8:36 am, Tom Chang wrote: > > > > > > > web2py experts, > > > a newbie here trying to learn web2py on my f

Re: [web2py] Re: suggestions for web2py website

2010-08-16 Thread Tom Atkins
+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 sit

Re: [web2py] Re: suggestions for web2py website

2010-08-16 Thread Tom Atkins
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, rochac

Re: [web2py] Re: My editor ...

2010-08-19 Thread Tom Atkins
very impressive! hope you get time to continue to develop and agree with Massimo to release with web2py.

[web2py] web2py_vs_others missing T() section!

2010-09-08 Thread Tom Campbell
I just learned about http://www.web2py.com/examples/static/web2py_vs_others.pdf on StackOverflow a few minutes ago so maybe this is old news, but the Internationalization section doesn't talk about web2py's elegant T() object. That section doesn't mention web2py at all! Just discovered web2py Fri

[web2py] Why the pattern return dict(form=form)?

2010-09-16 Thread Tom Campbell
New to Python & web2py. Searched for but could not find an explanation of why so much code looks like: return(form=form) What makes the assignment necessary?

[web2py] Re: Why the pattern return dict(form=form)?

2010-09-17 Thread Tom Campbell
Wow, huge help. Thanks a TON, Bruno and Jonathan. You're both awesome members of the community. I hope to be the same one day. Cheers, TC

[web2py] Problem with rss feed from wiki application in book

2010-09-25 Thread Tom Atkins
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: h

Re: [web2py] Re: Problem with rss feed from wiki application in book

2010-09-26 Thread Tom Atkins
urn record in the format described by the book in chapter 3. > > Massimo > > On Sep 25, 12:34 pm, Tom Atkins wrote: > > I've just copied and pasted from the online book the wiki application in > > chapter 3. It all works great. > > > > I've added th

Re: [web2py] Learning Management System survey

2010-09-29 Thread Tom Atkins
to commit to it. I look forward to seeing what you have in mind Massimo... anyone have any ideas for a name?! Tom in Ireland. On 28 September 2010 15:01, mdipierro wrote: > Once again... who here is interested in a web2py based Learning > Management system? > What features would you like to see? > > Massimo > >

Re: [web2py] Re: welcome app normalize hack ie and html5 ready

2010-09-29 Thread Tom Atkins
Brilliant - many thanks Martin - this is very helpful and great to see web2py looking more beautiful. On 28 September 2010 23:29, Martin.Mulone 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 (sidebars) is with > fix

Re: [web2py] Re: Learning Management System survey

2010-09-29 Thread Tom Atkins
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 attempted

[web2py] Confirm deletion of record

2010-10-01 Thread Tom Campbell
I have a 'Delete' link in my edit view. The controller looks like this: def delete(): task=db.tasks[request.args[0]] form = crud.delete(db.tasks, task.id, next=URL(r=request,f='index'), message=T('Deleted'),deletable=True) return dict(form = form) what I want is before the crud.delete

Re: [web2py] Re: please help us test new web site

2010-10-12 Thread Tom Atkins
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).

Re: [web2py] Re: please help us test new web site

2010-10-12 Thread Tom Atkins
just as an idea: http://susweb.net/images/web2py.gif On 12 October 2010 09:43, Tom Atkins wrote: > 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

Re: [web2py] Re: please help us test new web site

2010-10-12 Thread Tom Atkins
uh oh - getting carried away now: http://susweb.net/images/web2pylogo/

Re: [web2py] Re: please help us test new web site

2010-10-12 Thread Tom Atkins
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/

[web2py] html5rocks.com

2010-10-12 Thread Tom Atkins
just for interest: http://www.html5rocks.com/ and http://slides.html5rocks.com

Re: [web2py] Re: 2 problems, taskbar icon and windows service

2010-10-17 Thread Tom Atkins
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\web2py>python web2py.py -W install No handlers could be found for logger "web2py" we

Re: [web2py] Re: 2 problems, taskbar icon and windows service

2010-10-17 Thread Tom Atkins
t of windows SDK stuff 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 wrote: > you need to install mark hammond win32 extensions > > On Oct 1

[web2py] Apache wsgi virtualhost configuration for multiple web2py sites

2010-10-17 Thread 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 th

Re: [web2py] Re: Apache wsgi virtualhost configuration for multiple web2py sites

2010-10-17 Thread Tom Atkins
thing','/ > app2/$anything'), > >('.*:https?://(www.)?domain3.com:$method /','/app3/default/ > index'), >('.*:https?://(www.)?domain3.com:$method /$app/$anything','/ > app3/$anything'), > ) > > > On Oct 17, 5:2

Re: [web2py] Re: tip of the day. The power of routes

2010-10-18 Thread Tom Atkins
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 wrote: > I put the script in trunk under scripts/autoroutes.py >

Re: [web2py] Re: Learning Management System survey

2010-10-18 Thread Tom Atkins
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 round

[web2py] plugin_wiki syntax highligting - how to use 2 CSS classes?

2010-10-20 Thread Tom Atkins
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: def test(): blah blah If I use the markmin code syn

Re: [web2py] Re: Apache wsgi virtualhost configuration for multiple web2py sites

2010-10-20 Thread Tom Atkins
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

[web2py] Best way to update schedule with multiple users/locations?

2010-10-26 Thread Tom Campbell
I'm writing a scheduling system in web2py. It can be used by multiple users in multiple locations. If one user adds an appointment, I'd like other users to see it within 10 seconds or so. What is the preferred mechanism for this? My poorly educated guess is: 1. An updater runs as a single backgrou

[web2py] Newb question: How to handle multiple controller levels?

2010-10-30 Thread Tom Campbell
I have an app that supports multiple organizations. Each organization has many customers. Each customer has many appointments. I think that means organizations, while controllers, employ a customer controller, which employes an appointment controller. In my head the URL for editing an appointment

[web2py] Re: Newb question: How to handle multiple controller levels?

2010-10-30 Thread Tom Campbell
Never mind. Crushingly brilliant chap that I am, immediately after posting that I realized I have the luxury of constructions like: _href=URL('appointment','edit',args=[customer,appointment]))

Re: [web2py] Re: DateInput Calendar and other widgets

2010-11-02 Thread Tom Atkins
+1 for this one: 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 wrote: > > more here:http://trentrichards

[web2py] jsfiddle - handy web tool for testing javascript and jquery

2010-11-02 Thread Tom Atkins
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!

[web2py] Where's the applications directory on OSX filesystem?

2010-11-04 Thread Tom Campbell
I'm changing to OSX from Windows and can't browse to the applications directory. If I search for the view file customer.html from the command line I see it easily: $ find . -name customer.html ./osx/1.88.2/web2py/web2py.app/Contents/Resources/applications/ scheduler/views/customer.html However

[web2py] Re: Where's the applications directory on OSX filesystem?

2010-11-04 Thread Tom Campbell
Of course I figured this out moments after I posted, even though I'd pondered it for some time before. Sorry for wasting your intellectual bandwidth.

Re: [web2py] Re: Straw poll on the learning curve of markmin for the layman

2010-11-05 Thread Tom Atkins
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 c

Re: [web2py] Re: Straw poll on the learning curve of markmin for the layman

2010-11-05 Thread Tom Atkins
[sorry - I meant The combination of MarkItUp and **Markmin** is excellent.] On 5 November 2010 09:30, Tom Atkins 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'

Re: [web2py] Re: Learning Management System survey

2010-11-05 Thread Tom Atkins
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 dedi

[web2py] Can I use redirect to pass hash variable?

2010-11-10 Thread Tom Chang
OUI=scmOUI,scmOUIName=scmOUIName))) scmOUI and scmOUIName are string after the redirect and I verify that by using type operation. cheers, tom

[web2py] Re: Can I use redirect to pass hash variable?

2010-11-11 Thread Tom Chang
great!!! Let me try that. Thanks a lot for your help!! Cheers, Tom On Nov 11, 8:58 am, selecta wrote: > you can pass it as var with a json dict then convert it back to a > python dict > from gluon.contrib import simplejson > a = {'a': 'foo', 'b&#

Re: [web2py] Re: Scalability of web2py?

2010-12-02 Thread Tom Atkins
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 wi

Re: [web2py] Re: Scalability of web2py?

2010-12-02 Thread Tom Atkins
I should have said "John Heenan's criticisms of web2py *relating to scalability*..." On 2 December 2010 11:46, Tom Atkins wrote: > I'm assuming John Heenan's criticisms of web2py would apply equally to > Django? > > Please correct me if I'm wrong. &

Re: [web2py] Re: Scalability of web2py?

2010-12-02 Thread Tom Atkins
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 wrote: > > requests per second to Django with Apache and mod_wsgi: > > > http://nosql.mypopescu.com/post/1409154668/disqus-scaling-the-worlds-largest-dja

[web2py] Off Topic: HTML5 webapps with Google Closure, Clojure and NoSQL db's

2010-12-07 Thread Tom Atkins
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 valu

Re: [web2py] Re: it case you missed it...

2010-12-10 Thread Tom Atkins
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 date

Re: [web2py] Re: Python Shell on Chrome

2010-12-21 Thread Tom Atkins
very nice! thank you! On 21 December 2010 03:44, mdipierro wrote: > Anyway... I merged the google shell with web2py. > We now have a new shell: > > http://127.0.0.1:8000/admin/shell/index/ > > should work better then before and should work on GAE too. Please give > it a try. >

Re: [web2py] web2py 1.91.1 is OUT (LGPLv3)

2010-12-22 Thread Tom Atkins
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!

[web2py] SimpleGeo - free tools for creating location aware apps with Python Client and SDK

2010-12-27 Thread Tom Atkins
Just for interest if you're building a location aware app: http://simplegeo.com

[web2py] Slickgrid - a table or data grid designed for MVC

2010-12-30 Thread Tom Atkins
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/

Re: [web2py] Re: ADVOCACY: "every single other Python program ever written uses imports"?

2011-01-09 Thread Tom Atkins
web2py - the resilient web framework ;-)

Re: [web2py] social network idea

2011-01-17 Thread Tom Atkins
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 per

[web2py] Pre-populating a form with SQLFORM.factory

2013-02-11 Thread Tom Hines
Hello. I want to use SQLFORM.factory() and pre-populate a form with values from the last form use. Kind of like an update form. It works some of the time, but I'm getting a lot of KeyError: 'id' exceptions. There is no 'id' field. Using web2py version 2.3.2. Thanks for any help. Example:

[web2py] Re: Pre-populating a form with SQLFORM.factory

2013-02-11 Thread Tom Hines
ry( Field(...), Field(...), ..., record=record, showid=False ) On Monday, February 11, 2013 1:38:01 PM UTC-5, Massimo Di Pierro wrote: > > form=SQLFORM.factory( > Field(...), > Field(...)).process(keepvalues=True) > > On Monday, 11 February 2013 10:56:54 UTC-6, Tom Hines wrote: >&g

[web2py] change database via class?

2012-11-14 Thread tom h
tty new to Python as well and probably am missing something. ideally, i'd like something that's more like: p = Product(id=1) or Product() p.random_var = 'abc' p.name = 'a' p.price = 100.0 p.save() # or db['product'].update_or_insert(p) thanks a lot! tom --

Re: [web2py] change database via class?

2012-11-14 Thread tom h
/web2py$20vs$20World/web2py/KgzKryAEIGw/pTMR_ZuZoJwJ i think their conclusion at the end is fairly close to what i'm trying to do. i was just wondering if there's a better way about it than how i've done it. thanks for your fast response. tom On Wednesday, November 14, 2012

Re: [web2py] change database via class?

2012-11-14 Thread tom h
to inherit from Storage but Table.() didn't like all the extra fields in the dictionary. thanks, tom On Wednesday, November 14, 2012 10:04:54 AM UTC-5, viniciusban wrote: > > Are you trying to implement the Business Object pattern, Tom? > > > > On Wed, Nov 14, 2012 at 12:54

[web2py] Associative Table

2012-02-15 Thread Tom Nurkkala
When creating a simple associative table between two (or more) other tables, is there a way to tell web2py not to create the ID field? thanks, tom.

[web2py] Re: Associative Table

2012-02-18 Thread Tom Nurkkala
On Feb 15, 8:14 pm, pbreit wrote: > I don't believe so. Is there any reason you need to avoid that column? You > should be able to disregard it fairly easily. Simply that it's not necessary to express a many-to-many relationship. It's not a big deal. Thanks for the feedback!

[web2py] mercurial - cmdutil.addremove undefined error

2011-10-15 Thread tom h
rcurial 1.9.3. it cannot find the method addremove in cmdutil function. seems like addremove used to be in mercurial.cmdutil and now is deprecated. how are people getting around this? thanks a lot! tom

[web2py] identity column with web2py

2011-10-23 Thread tom h
e? It would be nice if it was implemented as a Field.identity, and people can always name it whatever they wanted, and specify the size smallint, int, decimal(X,0) that they feel like doing. Thanks a lot! Tom

[web2py] Re: identity column with web2py

2011-10-23 Thread tom h
PS, I could change the default types in PostgreSQL adapter or whatever other adapter I'm using, to be BIGSERIAL and BIGINT for id and reference id as opposed to SERIAL and INTEGER. But this is something I'd like to control on a table level, not on a database connection level. I could extend the a

[web2py] Re: identity column with web2py

2011-10-25 Thread tom h
Thanks to all again, I'll live with BIGINT identity field everywhere for now. Tom On Oct 24, 10:40 am, Massimo Di Pierro wrote: > I forgot. Important. The change below will affect all the apps > installed so it may break something. > > On Oct 24, 9:38 am, Massimo Di Pierro

[web2py] Advantage to requires clause in controller vs model?

2011-10-30 Thread Tom Campbell
In the building a minimalist facebook clone video at around 7:30 I see this in default.py: def search() # make a form where to type a name form = SQLFORM.factory(Field('name',requires=IS_NOT_EMPTY())) Question about the requires. This no difference between putting

[web2py] "Simple query" suffers nasty case of user error...

2011-11-02 Thread Tom Campbell
...but I'm too much of a noob to get it. # file models/db_todo.py db.define_table('todo', Field('summary','string',requires=IS_NOT_EMPTY()), Field('priority',requires=IS_IN_SET([1,2,3,4,5])), Field('complete','boolean',default=False)) # file views/main/index.html {{extend

[web2py] Re: web2py on windows 7

2011-11-20 Thread Tom Campbell
I would avoid this by putting Python on the path, then web2py somewhere outside of Program Files, which I would claim is bad form anyway. Like a web2py directory off root, maybe? I can post a little tutorial for a manual Windows install of web2py illustrating this if you like.

[web2py] Re: execfile

2011-02-02 Thread Tom Atkins
See Massimo's response here: https://groups.google.com/forum/#!topic/web2py/dmN54cpMuXo

Re: [web2py] Re: Testing the new router

2011-02-02 Thread Tom Atkins
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 al

Re: [web2py] Re: Testing the new router

2011-02-02 Thread Tom Atkins
o www 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 wrote: > On Feb 2, 2011, at 7:52 AM, Tom Atkins wrote: > > Thanks for your work on the new routers

Re: [web2py] Re: Testing the new router

2011-02-02 Thread Tom Atkins
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 wrote: > > I'm glad to

Re: [web2py] Re: Testing the new router

2011-02-02 Thread Tom Atkins
On 2 February 2011 18:27, Jonathan Lundell 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 I said previou

Re: [web2py] JQuery harmonica menu, but what's the use in web2py, I'm totally confused

2011-02-03 Thread Tom Atkins
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 sp

Re: [web2py] JQuery harmonica menu, but what's the use in web2py, I'm totally confused

2011-02-03 Thread Tom Atkins
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 wrote: > > http://jashkenas.github.com > > >

Re: [web2py] http and https

2011-02-03 Thread Tom Atkins
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 ' : 'myappname', 'secure.domain.com:443'

Re: [web2py] http and https

2011-02-04 Thread Tom Atkins
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.

Re: [web2py] postgresql error ... (relation "auth_user" already exists)

2011-02-04 Thread Tom Atkins
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 database

Re: [web2py] postgresql error ... (relation "auth_user" already exists)

2011-02-04 Thread Tom Atkins
(PS I have tried auth.define_tables(migrate='False') and it doesn't help) On 4 February 2011 13:22, Tom Atkins 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) &g

Re: [web2py] Re: postgresql error ... (relation "auth_user" already exists)

2011-02-04 Thread Tom Atkins
On 4 February 2011 14:33, Massimo Di Pierro wrote: > 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 own and get the same res

Re: [web2py] Re: postgresql error ... (relation "auth_user" already exists)

2011-02-06 Thread Tom Atkins
=1&sort=-id>Let me know if you need any more info. I definitely have the latest version. On 4 February 2011 19:49, Massimo Di Pierro wrote: > 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 w

Re: [web2py] Re: postgresql error ... (relation "auth_user" already exists)

2011-02-06 Thread Tom Atkins
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 wrote: > Thanks for looking into this Massimo. I just pulled the most recent > version and sti

Re: [web2py] Re: postgresql error ... (relation "auth_user" already exists)

2011-02-07 Thread Tom Atkins
On 6 February 2011 15:51, Massimo Di Pierro wrote: > 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.

[web2py] How to add form vars to crud.create onaccept?

2011-02-09 Thread Tom Atkins
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.)

Re: [web2py] Re: How to add form vars to crud.create onaccept?

2011-02-09 Thread Tom Atkins
On 9 February 2011 15:18, Massimo Di Pierro wrote: > db.comment.post_id.default = post.id > form = crud.create(db.comment) Doh! Thank you!

Re: [web2py] will jQuery UI work with web2py?

2011-02-09 Thread Tom Atkins
Yes it will work. (1.3.2+ means that version and any version higher) On 9 February 2011 19:40, Panupat 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?

Re: [web2py] Re: top of the day: cross component interaction

2011-02-17 Thread Tom Atkins
very useful - thanks!

[web2py] Blog about my adventures with web2py

2011-02-18 Thread Tom Atkins
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 to

Re: [web2py] Re: Blog about my adventures with web2py

2011-02-18 Thread Tom Atkins
On 18 February 2011 22:11, pbreit wrote: > Did you write your own blogging app? Yes - when the code is a bit less embarrassing I'll put it up on bitbucket...

Re: [web2py] Re: Blog about my adventures with web2py

2011-02-18 Thread Tom Atkins
On 18 February 2011 22:52, cjrh 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: Your browser should display and orange RSS icon. However Chrome doe

Re: [web2py] web2py Debian packages available for testing

2011-02-28 Thread Tom Atkins
Excellent work! Just tested on Ubuntu 10.04 and it works perfectly from my initial testing. Having the menu automatically appear in Applications > Programming is brilliant. On 28 February 2011 20:26, José L. wrote: > Hello, > I've prepared the packages to install web2py in Debian or other Lin

Re: [web2py] Re: should this be in the scaffolding app?

2011-03-02 Thread Tom Atkins
+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 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?? One is really b

Re: [web2py] Multiple forms grouped as one (django formset equivalent) with jquery plugin allowing clients to add and remove forms on the client-side

2011-03-08 Thread Tom Atkins
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 wrote: > > Hi, C

  1   2   3   4   >