[web2py] Sending html emails [bug?]

2010-05-18 Thread Jon Romero
It seems that I cannot send emails as html (they are displaying as text). mail = Mail() mail.settings = ... mail.send(to=user.email, subjest=subject, message=(message_text, message_html)) Any clues?

[web2py] Re: ORM-like DAL

2010-05-11 Thread Jon Romero
Check this out (needs a lot of work) http://bitbucket.org/jonromero/pyactiverecord/src/324551741662 On May 11, 8:10 am, vihang wrote: > I had seen the alterego posting. but that is more from using a Table > instance. I am looking at true ORM capability where I create a class > with methods which

[web2py] Re: Creating a new auth session

2010-04-19 Thread Jon Romero
Will do :D On Apr 19, 6:10 pm, mdipierro wrote: > OK. when you make the slice please call it auth_user. ;-) > > On Apr 19, 10:00 am, Jon Romero wrote: > > > > > yes, sorry :) > > > db.define_table('users', > >         Field(&

[web2py] Re: Creating a new auth session

2010-04-19 Thread Jon Romero
nd so on. When I find some time, I have to make a proper slice. On Apr 19, 5:56 pm, mdipierro wrote: > I do not see this using db.auth_user at all. Did you rename it > db.users? > > On Apr 19, 9:50 am, Jon Romero wrote: > > > > > sadly no :( > > > Take a l

[web2py] Re: Creating a new auth session

2010-04-19 Thread Jon Romero
sadly no :( Take a look at it here: http://codepad.org/tadGosTd I am using my prototype activerecord for some database calls (that should explain the find_by_id). On Apr 19, 5:31 pm, mdipierro wrote: > wow? Is this implemented as a gluon/contrib/login_method? > > On Apr 19, 9:26 am, J

[web2py] Re: Creating a new auth session

2010-04-19 Thread Jon Romero
sy to do > but has not been done yet. > > On Apr 19, 2:42 am, Rohan wrote: > > > > > hi Jon, > > > Can you please share updates on integration between fbconnect and > > auth.user()? > > > Thanks > > > On Feb 2, 4:34 pm, Jon Romero wrote: >

[web2py] Bug on AppEngine - request.env.request_uri returns None

2010-03-31 Thread Jon Romero
It seems like it's not working on AppEngine -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For mor

[web2py] Re: dynamic routes for subdomains

2010-03-25 Thread Jon Romero
default/action/hello') > ('.*:https?://goodbye.example.com:(get|post) /', 'example.com/init/ > default/action/goodbye') > ] > > .* means from every client ip > https? means both http and https > (get|post) means get and post requests > / is the path you are mapp

[web2py] dynamic routes for subdomains

2010-03-24 Thread Jon Romero
Even though I've read a post here about subdomains, I can't make it work. what I really need is this hello.example.com -> example.com/init/default/action/hello goodbye.example.com -> example.com/init/default/action/goodbye it it doable? -- You received this message because you are subscribed to

[web2py] Re: how to import a python library (not single file) from modules

2010-03-24 Thread Jon Romero
This doesn't seem to work when you are running on AppEngine! It works perfectly outside but when I am running it using dev_appserver, it doesn't work. Is this a bug? On Mar 18, 4:54 pm, mdipierro wrote: > You should put them in web2py/site-packages > > On Mar 18, 9:35 am, PanosJee wrote: > > >

[web2py] Re: Bulk inserts in Google App Engine

2010-03-22 Thread Jon Romero
value')]) > > > Massimo > > > On Jan 31, 3:11 am, Jon Romero wrote: > > > > Yeap the speadup is HUGE (one query toinsert100 rows). Inserting in > > > gae is slow and if you try toinsert100 one by one you get timeout > > > errors. I am using the ga

[web2py] Re: Bulk inserts in Google App Engine

2010-03-21 Thread Jon Romero
Ok, then how about, bulk update? If you retrieve the model, make a small change and then "put" it back, it should be updated. I think that would work if I was using the bulk insert you've made but it's not. It just adds new rows. Any ideas for bulk update? On Mar 21, 6:20 p

[web2py] Re: Bulk inserts in Google App Engine

2010-03-21 Thread Jon Romero
.put() > >  rid = Reference(tmp.key().id()) > > (rid._table, rid._record) = (self, None) > > > On Mar 18, 6:42 pm, Jon Romero wrote: > > > > It works!!! Thanks! > > > > On Mar 18, 6:37 pm, mdipierro wrote: > > > > >

[web2py] Re: Bulk inserts in Google App Engine

2010-03-21 Thread Jon Romero
42 pm, Jon Romero wrote: > It works!!! Thanks! > > On Mar 18, 6:37 pm, mdipierro wrote: > > > > > It is a bug. Thanks for checking it. > > Please help me test the fix. > > > In gluon/contrib/gae.py replace line 277 > > > parsed_items.append(field

[web2py] Re: Bulk inserts in Google App Engine

2010-03-18 Thread Jon Romero
s)) > > Does it work now? > > Massimo > > On Mar 18, 11:04 am, Jon Romero wrote: > > > > > Yeap it works now for MySQL but not for GAE. > > > Expected one of (,); Got a > > dict() > > > On Mar 18, 4:51 

[web2py] Re: Bulk inserts in Google App Engine

2010-03-18 Thread Jon Romero
              'surname': data['surname'], >                 'registered': False} for data in some_data]) > > The star was missing. > > On Mar 18, 9:19 am, Jon Romero wrote: > > > > > It doesn't seem to work. > > This is my code > >         db.ta

[web2py] Re: Bulk inserts in Google App Engine

2010-03-18 Thread Jon Romero
blems: On not GAE, I have this problem: Expected one of (,); Got a dict() On MySQL, was getting an error that it was expecting a map not a list. I tried this and it doesn't work: db.table_name.insert(dict(field='smth')) Any hints? On Jan 31, 5:01 pm, Jon Romero wrote: > I

[web2py] Re: Where do you use web2py?

2010-03-13 Thread Jon Romero
1. Building video online contests (beyourstar.gr) 2. Many small sites (andrianiart.com) 3. Augmented reality services (http://layar.com/awmn-nodes-greece/) 4. Advertising servers (openshare.emotionull.com) 5. Social mashups (socialcaddy.com) 6. To many to put here :D On Mar 13, 7:31 am, spiffytech

[web2py] I present web2py at OpenFest in Greece tomorrow!

2010-03-13 Thread Jon Romero
You can check it here http://openfest.teipir.gr/communities/ We have web2py on our posters (around Athens) and you can watch live streaming! I'll post my presentation tomorrow :D -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this g

[web2py] Re: Could webp2y do it like Pylons?

2010-03-09 Thread Jon Romero
t to use db will result in "database closed". This > is the hard part. > > On Mar 9, 10:33 am, Jon Romero wrote: > > > > > On Mar 9, 6:28 pm, mdipierro wrote: > > > > Let me think about this. > > > We could: > > > 1) save the response.

[web2py] Re: Could webp2y do it like Pylons?

2010-03-09 Thread Jon Romero
nsactions? when do > we close them? Whatever happened before the "crush", should be stored (db.commit()). After that, it's like the normal web2py shell (user has to commit by himself). > > Massimo > > On Mar 9, 10:17 am, Jon Romero wrote: > > > > > I

[web2py] Could webp2y do it like Pylons?

2010-03-09 Thread Jon Romero
I've seen that Pylons has an AWESOME debugger. Every time an error occurs, you have an AJAX console where you can inspect elements! This is waaay more useful than tickets (at least on development) where you click a ticket, go to the new page, read the error, do a print in your code so you can

[web2py] Re: Unit testing in web2py : Some thoughts

2010-03-02 Thread Jon Romero
> > Since I've done little with web2py forms and auth, they're not > covered. Feel free to change the article to include how to test them. > > On Mar 2, 8:59 am, Jon Romero wrote: > > > I'll post a full example in bitbucket and then a slice :) > > &g

[web2py] Re: Unit testing in web2py : Some thoughts

2010-03-02 Thread Jon Romero
I'll post a full example in bitbucket and then a slice :) On Mar 2, 2:30 pm, mdipierro wrote: > Would you post a web2pyslice? > > On Mar 2, 4:39 am, Jon Romero wrote: > > > ok I managed to do unit testing on forms: > > >  def testForm(self): > >        

[web2py] Re: Unit testing in web2py : Some thoughts

2010-03-01 Thread Jon Romero
Good job! I am still having problem with unit testing forms. It seems that I cannot do a post. # Set variables for the test function request.env.request_method = 'POST' request.post_vars["body"] = "body" #request.vars = Storage(body = "bod") resp = ind

[web2py] Re: Unit testing in web2py : Some thoughts

2010-02-25 Thread Jon Romero
Yeap, spiffytech where you able to run tests (no doctests) using the database? On Feb 25, 11:20 am, Nicol van der Merwe wrote: > Hi guys > > This stuff is very interesting. I would like to request, if possible, that > someone makes a web2pyslice or proper AlterEgo entry on how to setup and run >

[web2py] Re: Cron (Google App Engine)

2010-02-24 Thread Jon Romero
Nevermind. It's correct. On Feb 24, 9:59 am, Jon Romero wrote: > How we can specify the url to Google's cron in order to execute a url > webpy? > I tried something like that but it fails > > cron: > - description: daily stats >   url: /init/default/stat

[web2py] Re: Unit testing in web2py : Some thoughts

2010-02-24 Thread Jon Romero
put of ``python web2py.py --help`` > > > -Thadeus > > > On Tue, Feb 23, 2010 at 5:23 AM, Jon Romero wrote: > > > ust put a prin "Hello world!" inside the test file, everything > > > works ok. So, I suppose that this file tries to load AGAIN the web2py > > >

[web2py] Cron (Google App Engine)

2010-02-24 Thread Jon Romero
How we can specify the url to Google's cron in order to execute a url webpy? I tried something like that but it fails cron: - description: daily stats url: /init/default/stats schedule: every day 21:20 timezone: Europe/Athens Anyone using gae cron with web2py? -- You received this message

[web2py] Re: Unit testing in web2py : Some thoughts

2010-02-23 Thread Jon Romero
Thanks! That was what I was looking for! The problem now is that is you try to run the unit test the way it is described here (http://www.web2py.com/AlterEgo/default/show/213 ), I get this error: > python web2py.py -S init -M -R applications/myapp/tests/default.py option -S not recognized Usage: w

[web2py] Unit testing in web2py : Some thoughts

2010-02-22 Thread Jon Romero
I've read about web2py and unit testing and I tried many things. These are my thoughts (please correct me If I am wrong) 1. web2py uses doctests. doctests must be inside the controller (increasing the noise) and are not flexible. Also, is not trivial to use them in another automated built/test sys

[web2py] Re: GAE delete() has subtle difference compared to native Web2Py

2010-02-06 Thread Jon Romero
the problem seems to happen when you try to query by the id field and then delete (I could delete when I chose a different field) On Feb 7, 2:18 am, Jon Romero wrote: > Some thing happens to me. When I do: > db(db.table.id == some_id_that_exists).delete, I get the same count > error >

[web2py] Re: GAE delete() has subtle difference compared to native Web2Py

2010-02-06 Thread Jon Romero
Happens on gae dev environment and on the normal gae server. On Feb 7, 2:18 am, Jon Romero wrote: > Some thing happens to me. When I do: > db(db.table.id == some_id_that_exists).delete, I get the same count > error > > On Feb 4, 3:16 am, mdipierro wrote: > > > do you u

[web2py] Re: GAE delete() has subtle difference compared to native Web2Py

2010-02-06 Thread Jon Romero
Some thing happens to me. When I do: db(db.table.id == some_id_that_exists).delete, I get the same count error On Feb 4, 3:16 am, mdipierro wrote: > do you use 2.5 or something else locally? > > On Feb 3, 6:11 pm, Carl wrote: > > > This may be related toGAEupdate_record() has subtle difference >

[web2py] Re: New "Internal Error" page?

2010-02-02 Thread Jon Romero
sorry my bad (routes_onerror) On Feb 3, 1:30 am, Jon Romero wrote: > Is there an easy way to change the default error page to something > else? -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, s

[web2py] New "Internal Error" page?

2010-02-02 Thread Jon Romero
Is there an easy way to change the default error page to something else? -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr

[web2py] Re: Creating a new auth session

2010-02-02 Thread Jon Romero
But then how auth.user is updated? >All auth does on successful login is: >from gluon.storage import Storage >session.auth=Storage() >session.auth.user = db(db.auth_user.id==logged_in_user_id).select ().first() >session.auth.user_id = session.auth.user.id >session.auth.last_visit = request.now >

[web2py] Re: Creating a new auth session

2010-01-31 Thread Jon Romero
utologin plugin, > could you please share it with us? it's very interesting for all the > projects. > thanks in advance, > alex > > El 31/01/2010 16:08, Jon Romero escribi : > > > > > I have created a new facebook connect plugin where the user can login > > to

[web2py] Re: Creating a new auth session

2010-01-31 Thread Jon Romero
> > from gluon.storage import Storage > session.auth=Storage() > session.auth.user = db(db.auth_user.id==logged_in_user_id).select > ().first() > session.auth.user_id = session.auth.user.id > session.auth.last_visit = request.now > > set session.auth=None on logout. > &

[web2py] Creating a new auth session

2010-01-31 Thread Jon Romero
I have created a new facebook connect plugin where the user can login to auth using FBConnect. The thing that I am doing is after the user has logged in (and I have his fb_uid) I create a new session like this: if not auth.is_logged_in(): user_obj = Storage(user_table._filt

[web2py] Re: Bulk inserts in Google App Engine

2010-01-31 Thread Jon Romero
I am going to stress test it this week :) On Jan 31, 4:44 pm, mdipierro wrote: > needs testing but please check in trunk > > db.table.bulk_insert([dict(field='value'),dict(field1='value')]) > > Massimo > > On Jan 31, 3:11 am, Jon Romero wrote: > >

[web2py] Re: Bulk inserts in Google App Engine

2010-01-31 Thread Jon Romero
> > from gluon.contrib.gql import gae > > gae.put(...) > > and access the low lever gae api. > > On Jan 30, 6:21 pm, Jon Romero wrote: > > > > > It doesn't seem that's easy to dobulkinserts for AppEngine using > > web2py (please correct me if I am wrong). &

[web2py] Re: Bulk inserts in Google App Engine

2010-01-30 Thread Jon Romero
he new DAL? Is there a way to have access to db (gae) so I can do a put? On Jan 16, 5:08 am, Jon Romero wrote: > Is there any way to dobulkinserts in GAE? > > Check here number 5 (http://googleappengine.blogspot.com/2009/06/10- > things-you-probably-didnt-know-about.html) -- You

[web2py] Re: How would you best implement a countdown?

2010-01-19 Thread Jon Romero
I suggest the same as mdipierro. Take a look at syncServer property. On Jan 18, 9:51 am, mdipierro wrote: > http://keith-wood.name/countdown.html > > On Jan 18, 12:17 am, Jason Brower wrote: > > > I want a countdown that works for that session that will never be > > interupted by the refresh of

[web2py] Re: Activerecord for web2py - version 0.1

2010-01-17 Thread Jon Romero
ction that exists) but it's working :) If anyone has ideas for features that can be added, I am all ears On Jan 17, 10:03 pm, Alex Fanjul wrote: > It sounds very cool for fast prototyping too. > Alex F > > El 17/01/2010 14:44, Jon Romero escribi : > > > > > I created

[web2py] Activerecord for web2py - version 0.1

2010-01-17 Thread Jon Romero
I created a small lib which adds an abstraction over DAL and makes it feel like Rails' Activerecord. For example: user = User.find_by_name("Jon") It creates queries on the fly (you don't have to create a function 'find_by_name' - it creates it dynamically based on your table fields). I plan to ex

[web2py] Bulk inserts in Google App Engine

2010-01-15 Thread Jon Romero
Is there any way to do bulk inserts in GAE? Check here number 5 (http://googleappengine.blogspot.com/2009/06/10- things-you-probably-didnt-know-about.html) -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web.

[web2py] Re: Is there any 'Ad Rotator' like in ASP in web2py

2010-01-10 Thread Jon Romero
Yeap, here you go: http://bitbucket.org/jonromero/openshare/src/ On Jan 7, 12:31 pm, "K.R.Arun" wrote: > Is source is available?? > > I haven't seen it. Please provide me the link. > No one ever want's to start from scratch (most of the time). > > On Jan 7

[web2py] Re: Current List Of Web2py Plugins

2010-01-09 Thread Jon Romero
> facebook connect (*) (1) (jon romera / massimo) It's Jon Romero :D Also I have submitted code that scaffolds admin areas for functions in controllers. Should I make it a plugin? On Jan 9, 7:42 am, Thadeus Burgess wrote: > Ok here is a list as I know it. I need some help sorting

[web2py] Re: Looking for web2py, jQuery, AJAX contractors

2010-01-09 Thread Jon Romero
Just to add, two BIG projects are about to launch in web2py. One in Greece (we are talking for exposure to all media TV/Radio/Magazines etc) and another one in NY which today we got our seed funding! It's nice to see that more people starting to use web2py for their businesses (we've been using it

[web2py] Re: Facebook Connect for web2py is ready!

2010-01-07 Thread Jon Romero
done in my original fb > example) so that I can be embedded in a facebook page but I do not > necessarily want that. Am I missing something? > > On Jan 6, 8:21 pm, Jon Romero wrote: > > > The source code also exists > > here:http://github.com/jonromero/fbconnect-web2

[web2py] Re: Facebook Connect for web2py is ready!

2010-01-06 Thread Jon Romero
The source code also exists here: http://github.com/jonromero/fbconnect-web2py First of all you have to create a facebook application. The are plenty of tutorials (even though you just need to change one path). Then you copy the API and SECRET key. You must put on facebook app settings -> "Connect"

[web2py:38469] Re: Is there any 'Ad Rotator' like in ASP in web2py

2010-01-06 Thread Jon Romero
e is a cut-down version of a commercial product we created for a company that was doing exactly what you describe, so most of the stuff are there. On Jan 6, 7:49 pm, "K.R.Arun" wrote: > On Jan 6, 1:50 am, Jon Romero wrote: > > > You can hack OpenShare (http://openshare.emotion

[web2py:38408] Facebook Connect for web2py is ready!

2010-01-05 Thread Jon Romero
You can see it live here (and you can download the source): http://fbconnect-demo.emotionull.com/ I am uploading the source also on github and I'll make also a blog post about it (even though it's TRIVIAL to use fbconnect in web2py). I have made a change in facebook.py (a new function called "fac

[web2py:38383] Re: Is there any 'Ad Rotator' like in ASP in web2py

2010-01-05 Thread Jon Romero
You can hack OpenShare (http://openshare.emotionull.com/). It's on bitbucket, written on web2py, running on GAE. On Jan 5, 10:36 pm, mdipierro wrote: > do not assume we know exactly what ASP ad_rotator does. Make a wish > about the functionlity you expect/need and somebody may want to write > a p

[web2py:37960] CouchDB adapter - need any help?

2009-12-28 Thread Jon Romero
I've read some threads about it but what's the status? I see Django supports CouchDB and I think that's easy to do it also in web2py (and then mongoDB and tokyo tyrant). http://lethain.com/entry/2008/aug/18/an-introduction-to-using-couchdb-with-django/ any ideas? thanks -- You received this mes

[web2py:37856] Rails-scaffolding in web2py -check my slice

2009-12-26 Thread Jon Romero
I know crud is good and admin panel is slick but sometimes I just need to hack an add/edit/delete based on a table. So, I made this a decorator :D http://www.web2pyslices.com/main/slices/take_slice/45 Hope you like it! Enjoy! -- You received this message because you are subscribed to the Google

[web2py:37514] Re: possible ? WYSIWYG editor with integrated image upload

2009-12-18 Thread Jon Romero
Any chance you could put some notes on your approach together ? I > > think it would really help promote Web2py as a platform for CMS work. > > All we need now is a good plugin for state-based workflow ? ;) > > > On Nov 26, 2:36 am, Jon Romero  wrote: > > >>

[web2py:37513] Re: possible ? WYSIWYG editor with integrated image upload

2009-12-18 Thread Jon Romero
ugin for state-based workflow ? ;) > > > On Nov 26, 2:36 am, Jon Romero  wrote: > > >> Sorry for the late reply! > >> I have already integrateCKEditorWITH uploading into web2py (check a > >> screenshot here:http://emotionull.com/blog_files/ckeditor.png) for a &

[web2py:37512] Re: Using CKEditor for editing text fields (short tutorial) using widgets

2009-12-18 Thread Jon Romero
Oh, sorry guys for the 'quotes' woes :D On Nov 21, 9:50 am, David wrote: > Using the code select.  It's the box on the right hand side of the > code with an arrow. > > I am pasting the text into TextEdit for a test.  But it's the same as > I mentioned above. > It might be different on a PC or Lin

[web2py:35992] Re: possible ? WYSIWYG editor with integrated image upload

2009-11-25 Thread Jon Romero
Sorry for the late reply! I have already integrate CKEditor WITH uploading into web2py (check a screenshot here: http://emotionull.com/blog_files/ckeditor.png) for a new CMS my company is building (yeap, in web2py and probably it will be released as opensource). You just need to create an action/v

[web2py:35606] Re: possible ? WYSIWYG editor with integrated image upload

2009-11-19 Thread Jon Romero
I am creating a CMS for web2py and I've decided using CKEditor due to the fact that you can upload images/files directly from it. Take a look here (http://docs.cksource.com/CKEditor_3.x/ Developers_Guide/File_Browser_(Uploader)). Also, I have made a snippet (on web2pyslices and on my blog) on how

[web2py:34515] before_filter or after_filter (like rails)?

2009-11-03 Thread Jon Romero
Is it possible to do something like that in the db declarations or I have to put code inside the controller? For example in Rails you specify functions that will run before or after an insert/update/delete/select inside the declaration of model. That makes the code very easy to read/reuse. I thin

[web2py:34520] Re: before_filter or after_filter (like rails)?

2009-11-03 Thread Jon Romero
the row. > > db.table.field.after_update.append(lambda row: print row) > > -Thadeus > > On Tue, Nov 3, 2009 at 2:56 PM, Jon Romero wrote: > > > Is it possible to do something like that in the db declarations or I > > have to put code inside the controller?

[web2py:34522] Re: before_filter or after_filter (like rails)?

2009-11-03 Thread Jon Romero
list or using > the list.append() afterwords, it will work the same. > > db.table.field.after_update = [] > > db.table.field.after_update = [lambda row: print row] > > db.table.field.after_update.append(lambda row: del row) > > -Thadeus > > On Tue, Nov 3, 2009 at 3:37 PM,

[web2py:34168] Re: tinyMCE output being escaped

2009-10-30 Thread Jon Romero
inside your code put: print post.body and then check the console/terminal from which you've started web2py. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to

[web2py:34167] Using CKEditor for editing text fields (short tutorial) using widgets

2009-10-30 Thread Jon Romero
I've made a short tutorial on using CKEditor with widgets. http://jon.is.emotionull.com/post/227873650/using-widgets-in-web2py-integrating-ckeditor Hope you enjoy it! PS: Also, is this the correct place to announce small hints/tutorials or everything should go directly to web2pyslices? --~--~-

[web2py:34165] Re: plugin system again

2009-10-30 Thread Jon Romero
how about this: The (main) problem (as I see it) with Massimo's approach is polluting directories with plugin files (and maybe making it more difficult to add/remove plugins). Besides that, I think it is a very easy way to add plugin capabilities to web2py (without changing much of its architectur

[web2py:33101] Re: Rails vs Web2py at Athens Digital Week

2009-10-18 Thread Jon Romero
) gave me the opportunity to talk about the "still-working-after-an-upgrade" feature of web2py. I made the presentation 2-3 hours before the presentation, so please excuse me for any errors :P On Oct 18, 5:12 am, Álvaro Justen [Turicas] wrote: > On Sat, Oct 17, 2009 at 12:56, Jon

[web2py:33063] Rails vs Web2py at Athens Digital Week

2009-10-17 Thread Jon Romero
\I gave a 20-30 minutes presentation and a demo at Athens Digital Week (here in Greece) and the audience loved it! Here is the presentation http://www.slideshare.net/jonromero/rails-vs-web2py Enjoy! --~--~-~--~~~---~--~~ You received this message because you are su

[web2py:32394] Re: how to import html helpers inside a module?

2009-10-07 Thread Jon Romero
Yes, you are right. And now that we have this thread, someone how is interested in adding a countries dropdown can implement it easily (I was searching around but didn't find anything elegant) On Oct 7, 5:08 pm, mdipierro wrote: > I can add 1) but this means web2py becomes dependent on geopoliti

[web2py:32382] OpenShare (first opensource ad service built on web2py) just went opensource!

2009-10-07 Thread Jon Romero
I've just release OpenShare on bitbucket. You can see it running (and submit your opensource projects) here: http://openshare.emotionull.com http://bitbucket.org/jonromero/openshare/ Enjoy! --~--~-~--~~~---~--~~ You received this message because you are subscribed

[web2py:32381] Re: how to import html helpers inside a module?

2009-10-07 Thread Jon Romero
quires=IS_IN_SET(country_names_as_a_list)) >   ... >   ) > > This way you don't force yourself to know something difficult (though > not that difficult if you really know widgets well). > > On Oct7, 8:05pm, Jon Romero wrote: > > > ok, I've imported gluon.html

[web2py:32376] Re: how to import html helpers inside a module?

2009-10-07 Thread Jon Romero
k. Also, what do you think about a db field, countries? Should I commit something like that? On Oct 7, 2:44 pm, Jon Romero wrote: > I have created a module (inside my application/modules) and I use > SELECT. > I tried importing gluon.tools but no go. A

[web2py:32375] how to import html helpers inside a module?

2009-10-07 Thread Jon Romero
I have created a module (inside my application/modules) and I use SELECT. I tried importing gluon.tools but no go. All I get is this error: NameError: global name 'SELECT' is not defined --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[web2py:32032] Re: Proposal for plugin system in web2py - RFC

2009-10-01 Thread Jon Romero
I think this is awesome and it was missing from web2py. The only thing I found strange, is that you have to place the files inside your application in multiple places. How about creating a plugin directory (see Rails "vendor/plugins") where you could just place the whole plugin structure there (l

[web2py:31691] Re: web2py on shared hosting

2009-09-26 Thread Jon Romero
> It should be > > routes_in = (('^.*?:https?://www.mydomain.com:(get|post) /', '/myapp/ > default'),) > > let us know if it works > > On Sep 24, 7:46 pm, Jon Romero wrote: > > > Whoa! This is an excellent thread (I didn't find it will I

[web2py:31644] Re: web2py on shared hosting

2009-09-24 Thread Jon Romero
ak wrote: > Perhaps read thru the thread here - I thought Massimo did a nice job of > explaining the flexibility and operation of routes.py here: > > http://groups.google.com/group/web2py/browse_thread/thread/4768cc04ad... > > On Thu, Sep 24, 2009 at 12:37 PM, Jon Romero wrote: &

[web2py:31625] Re: web2py on shared hosting

2009-09-24 Thread Jon Romero
pping with domains. On Sep 14, 5:17 pm, mdipierro wrote: > Yes. You map domains into apps using routes. This in the manual, > chapter 4. > > On Sep 13, 6:17 pm, Jon Romero wrote: > > > When a request comes, the dispatch.fcgi is executed which contains > > this: > &

[web2py:31537] Re: Serving different applications on shared hosting

2009-09-23 Thread Jon Romero
any ideas? anyone? On Sep 22, 12:48 pm, Jon Romero wrote: > Thanks. > I was looking the examples from the old book (thinking that there > won't be any major changes) but I was wrong. > This is in the old book: > > routes_in=( > ('140.192.\d+.\d+:.*',&#

[web2py:31456] Re: Serving different applications on shared hosting

2009-09-22 Thread Jon Romero
Thanks. I was looking the examples from the old book (thinking that there won't be any major changes) but I was wrong. This is in the old book: routes_in=( ('140.192.\d+.\d+:.*','/welcome/default/index'), ) I thought that doing that: routes_in=( ('http://mydomain.com:.*','/myapp/default/index'

[web2py:31410] Serving different applications on shared hosting

2009-09-21 Thread Jon Romero
I am writing a full tutorial on how to setup web2py on shared hosting accounts and I have this problem (Massimo suggested some solutions - based on routes.py but I could find a solution). I've posted the question and on the stackoverflow (http:// stackoverflow.com/questions/1454384/htaccess-trans

[web2py:31346] Re: Is there something wrong with routes.py?

2009-09-19 Thread Jon Romero
ok, last post! You can just kill the processes (it's 4 in the morning here in Athens, so please excuse me), so routes.py will be read again. On Sep 20, 4:04 am, Jon Romero wrote: > I have renamed the example of routes to routes.py (and I even created > a new file from scratch, j

[web2py:31345] Re: Is there something wrong with routes.py?

2009-09-19 Thread Jon Romero
Ok, nevermind. I've just remember that you must restart the server in order for routes to be read again. But what happens on a shared hosting account, where you have no access to apache? On Sep 20, 4:04 am, Jon Romero wrote: > I have renamed the example of routes to routes.py (an

[web2py:31344] Is there something wrong with routes.py?

2009-09-19 Thread Jon Romero
I have renamed the example of routes to routes.py (and I even created a new file from scratch, just in case) but I don't think it is executed. My routes_in is: routes_in = ( ('/', '/applicationname/stats/old'), ) I wanted to map this: www.myapplication -> www.myapplication/applicationname/st

[web2py:31195] Re: Admin page that works in GAE

2009-09-17 Thread Jon Romero
I think that appadmin on GAE is broken (I get an invalid request) and I saw on this thread (http://groups.google.com/group/web2py/ browse_thread/thread/a8307a3619fbbd00#) that it is fixed in the trunk. Any ideas about when it will be released? On Sep 15, 10:51 am, Jon Romero wrote: > oh gr

[web2py:31105] Re: OpenShare :: OpenSource Ad Service built in web2py!

2009-09-16 Thread Jon Romero
Thanks :) Maybe today, I'll also publish the code on github :P On Sep 16, 4:00 am, Alex Fanjul wrote: > Nice Service Jon!!! > I'll give it a try with my blog... > Alex F > > El 24/08/2009 17:53, Jon Romero escribió: > > > Hello, I've built OpenShare

[web2py:31042] Re: Admin page that works in GAE

2009-09-15 Thread Jon Romero
nd applications/admin/models/access.py and > make admin readonly. > > On Sep 14, 6:39 am, Jon Romero wrote: > > > I am creating a VERY simple controller, that mimics the functionality > > of the admin app, > > so it is possible to have simple administration availa

[web2py:30965] Admin page that works in GAE

2009-09-14 Thread Jon Romero
I am creating a VERY simple controller, that mimics the functionality of the admin app, so it is possible to have simple administration available in GAE and in shared hosting accounts. Is there something already available (that I couldn't find) or I am reinventing the wheel? If there is nothing a

[web2py:30964] Re: web2py on shared hosting

2009-09-14 Thread Jon Romero
Is having multiple installations of web2py the only solution? On Sep 14, 2:17 am, Jon Romero wrote: > When a request comes, the dispatch.fcgi is executed which contains > this: > > #!/usr/local/bin/python2.6 > import os > import sys > > os.chdir('/ho

[web2py:30934] Re: web2py on shared hosting

2009-09-13 Thread Jon Romero
u can > do > > routes_in=(('/index','/myapp/default/index'),) > > to do the mapping you ask. > > Massimo > > On Sep 13, 5:00 pm, Jon Romero wrote: > > > I am writing a tutorial on how to install web2py on shared hosting > > acounts. >

[web2py:30916] web2py on shared hosting

2009-09-13 Thread Jon Romero
I am writing a tutorial on how to install web2py on shared hosting acounts. I have managed to install and use it successfully but I have a problem with routes. So, I have created a domain pointer to /home/myuser/www/web2py (yeap I know I should put web2py outside of public but this senario will m

[web2py:29367] Re: OpenShare :: OpenSource Ad Service built in web2py!

2009-08-25 Thread Jon Romero
>     Nice app, and great idea. Is there a way to restrict by the kind > of ads one would add to his website?. By choosing the category of your site, your banner is displayed only to sites from the same category (and you are getting relevant banners for your site). This feature for now is disable

[web2py:29318] Re: OpenShare :: OpenSource Ad Service built in web2py!

2009-08-25 Thread Jon Romero
it's ready :) I would be very glad if web2py.com was using the service and of course other opensource developers. On Aug 25, 12:53 pm, Jon Romero wrote: > yeap, I am uploading it now! > > On Aug 24, 11:29 pm, Joe Barnhart wrote: > > > That's a good idea and a ni

[web2py:29317] Re: OpenShare :: OpenSource Ad Service built in web2py!

2009-08-25 Thread Jon Romero
yeap, I am uploading it now! On Aug 24, 11:29 pm, Joe Barnhart wrote: > That's a good idea and a nicely done site.  In light of Massimo's plea for > more visibility, do you think you could put a "created using web2py" message > somewhere on the page? > > O

[web2py:29252] OpenShare :: OpenSource Ad Service built in web2py!

2009-08-24 Thread Jon Romero
Hello, I've built OpenShare (http://openshare.emotionull.com) using web2py and is running in Google App Engine and I would like to know what you think about it. I am planning to release the source (github or bitbucket) as soon as I fix some issues. If you want to help with the design/coding/what

[web2py:28334] Re: Cannot upload file to GAE

2009-08-11 Thread Jon Romero
> db.define_table('site', >                 Field('pic1', 'upload', label ="Banner (125x125)")) > > def download(): return response.download(request,db) > > this works on GAE too because GAE will automatically create the > uploadfield for you. I didn't know that! I haven't found it in any docum

[web2py:28328] Cannot upload file to GAE

2009-08-10 Thread Jon Romero
I have this table: db.define_table('site', Field('pic1', 'upload', uploadfield='data', label = "Banner (125x125)"), Field('data','blob',default='')) I also changed this in my controller: def download(): return site[db.site.pic1.uploadfield] Now I have some que

[web2py:28237] Changing SQLField to Field in error messages

2009-08-08 Thread Jon Romero
Now that the syntax has changed (but keeping the old one for backwards compatibility), maybe the error message can also be updated SyntaxError: SQLField: unkown field type: timestamp for added_on --~--~-~--~~~---~--~~ You received this message because you are sub