[web2py:36112] Re: SQLForm (set custom css classes to specified elements)

2009-11-28 Thread mdipierro
Why do you need classes to style the default widgets? They are very simple, they basically just have an INPUT so you can do form['_class']='myclass' .myclass INPUT#name { ... style of the INPUT in the widget name in form... } There is nothing you cannot already do in CSS. Massimo On Nov 2

[web2py:36113] Re: new on web2pyslices.com: concurrent RPX and web2py auth

2009-11-28 Thread murray3
I am having problems displaying profile data =db.profile.provider and =db.profile.pic_url I cannot get it to work and must be syntax problem, I have tried for instance auth.provider but gives value=none. Any ideas appreciated chrism On Nov 21, 1:33 pm, murray3 wrote: > scratch that!!! > I had the

[web2py:36114] Re: new on web2pyslices.com: concurrent RPX and web2py auth

2009-11-28 Thread mr.freeze
If you need custom fields you have to create a custom auth table first then create a mapping in the RPXAuth instance. I hope that makes sense. Feel free to email me your code and I will take a closer look. On Nov 28, 3:13 am, murray3 wrote: > I am having problems displaying profile data =db.prof

[web2py:36115] domain hostname in routes.py

2009-11-28 Thread Alex
Hello, I want to run one web2py instance where each web2py application will be mapped to different domain and with ability to map some urls differently in different domains. I tried to edit routes.py but without success. Can anyone show examples of such routes.py? Thanks. -- You received this

[web2py:36116] Re: domain hostname in routes.py

2009-11-28 Thread mdipierro
You can but strongly suggest you use virtual hosts in apache + mod_wsgi + mod_rewrite. It will give you more flexibility in the long run. Massimo On Nov 28, 10:31 am, Alex wrote: > Hello, > > I want to run one web2py instance where each web2py application > will be mapped to different domain and

[web2py:36117] Re: domain hostname in routes.py

2009-11-28 Thread Alex
Actually i'm using nginx with mod_proxy This helped me with nginx for incoming requests: rewrite ^(.*)$ /domain_app_name$1 last; but how to change "out" url generation to do not include app name "domain_app_name" in all links? On Nov 28, 6:48 pm, mdipierro wrote: > You can but strongly sug

Re: [web2py:36118] Re: SQLForm (set custom css classes to specified elements)

2009-11-28 Thread Thadeus Burgess
The reason is he had a outsourced designer make all of the stylesheets. He would have to either rewrite those stylesheets to accommodate web2py, or change web2py to accommodate those spreadsheets. From the sound of it, there are tons of form spreadsheets and would be quite tedious to alter them. T

[web2py:36119] web2py on Apache Tomcat

2009-11-28 Thread haftish21
Is Web2py deployable on Apache tomcat, can anyone help?? -- 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

[web2py:36120] Omit default controller for for any action

2009-11-28 Thread Alex
Is there any way to omit default controller name in URL if there is appropriate default controller action, like it's done for index action but to work for any default controller action? -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to

[web2py:36121] Disable registrations

2009-11-28 Thread Thadeus Burgess
What is the most seem-less way to disable user registration system. In a system where you only need one user and don't want anyone else to join. -Thadeus -- 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:36122] modified plugin_tagging

2009-11-28 Thread selecta
Hey there I just modified the tagging plugin so multiple users can tag one record, a tag cloud can be displayed for each record, for each table, and for all tags. I did not test it very much, please post improvements! http://www.delarue-berlin.de/tmp/web2py.plugin.tagging.gz -- You received this

[web2py:36123] Plugin Central

2009-11-28 Thread Thadeus Burgess
Hello everyone, Ok I am putting the finishing touches on our new web2py plugin hosting site. Could everyone take a look at it, let me know what you think, and reply to this thread for any comments or suggestions. I will not get a chance to update it until next weekend, but would love to start gat

[web2py:36124] Re: Encoding problem (bug?)

2009-11-28 Thread Francisco Ribeiro
hi Nice! Thank you for the attention. There is a good reason that I'm sure you deeply understand for me to be less connected... I've been finishing my mst. thesis. Work done, presentation finished more time free. Meanwhile, I've been working on some interesting projects including web2py based.

[web2py:36125] Re: SQLForm (set custom css classes to specified elements)

2009-11-28 Thread waTR
Correct. Design is out-sourced to a designer. Logic code is being done by me. Main issue going forward will be with service contracts with outsourced work. It's like voiding a warranty on a hard-drive in your computer if you open it and modify anything. On Nov 28, 9:36 am, Thadeus Burgess wrot

[web2py:36126] Re: Plugin Central

2009-11-28 Thread DenesL
Good job! Lets hope that the plugins will be as good as the repository. Speaking of quality... a rating system would make a nice addition. -- 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.

[web2py:36127] Re: new on web2pyslices.com: concurrent RPX and web2py auth

2009-11-28 Thread murray3
just remembered I am using the original RPXAuth.py from april. There is a table called profile auto created in my project and on inspection I can see the fields for provider, email etc from admin. Just when I try and access them from the view i.e {{=db.profile.provider)) it returns nothing? On Nov

[web2py:36128] send a tweet

2009-11-28 Thread murray3
def twitter_post(username,password,message): import urllib, urlib2, base64, gluon.contrib.simplejson args= urllib.urlencode([('status',message)]) headers={} headers['Authorization'] = 'Basic '+base64.b64encode(username +':'+password) request = urllib2.Request('http://twitter.com

Re: [web2py:36129] Re: Checkboxes display errror on each input, instead of just once for the widget.

2009-11-28 Thread Thadeus Burgess
The custom categories checkboxes widget I am using for plugincentral is broken. Did you change anything that might effect this? -Thadeus On Sun, Nov 22, 2009 at 8:13 PM, mr.freeze wrote: > > Yes, but having no default means that the user will be required to > actively choose. I like that.

[web2py:36130] doctesting routes.py

2009-11-28 Thread Jonathan Lundell
I've implemented a doctest for routes.py. The idea is to modify the doctest as required to verify that your routes.py is doing what you expect. Massimo has the patch, but in the meantime (he's busy) feedback would be useful. Post it here, or send me a note. You'll need to replace gluon/rewrite.

Re: [web2py:36131] doctesting routes.py

2009-11-28 Thread Jonathan Lundell
On Nov 28, 2009, at 4:54 PM, Jonathan Lundell wrote: > I've implemented a doctest for routes.py. The idea is to modify the doctest > as required to verify that your routes.py is doing what you expect. Massimo > has the patch, but in the meantime (he's busy) feedback would be useful. Post > it h

Re: [web2py:36132] Re: Checkboxes display errror on each input, instead of just once for the widget.

2009-11-28 Thread Thadeus Burgess
For the record field.requires.options() You have to call that :) Why is this? -Thadeus On Sat, Nov 28, 2009 at 6:53 PM, Thadeus Burgess wrote: > The custom categories checkboxes widget I am using for plugincentral is > broken. > > Did you change anything that might effect this? > > -Th

[web2py:36133] Re: Plugin Central

2009-11-28 Thread mr.freeze
Looks great! On Nov 28, 1:57 pm, Thadeus Burgess wrote: > Hello everyone, > > Ok I am putting the finishing touches on our new web2py plugin hosting site. > > Could everyone take a look at it, let me know what you think, and reply to > this thread for any comments or suggestions. I will not get a

Re: [web2py:36134] Re: Plugin Central

2009-11-28 Thread Thadeus Burgess
Just fixed a couple of bugs :P Search should be working again, so should creation of plugins -Thadeus On Sat, Nov 28, 2009 at 8:08 PM, mr.freeze wrote: > Looks great! > > On Nov 28, 1:57 pm, Thadeus Burgess wrote: > > Hello everyone, > > > > Ok I am putting the finishing touches on our new

[web2py:36135] Traceback on IS_NOT_IN_DB

2009-11-28 Thread Thadeus Burgess
Could anybody explain the following traceback to me? db.define_table... Field('slug', unique=True, required=True), ) db.page.slug.requires = IS_NOT_IN_DB(db, 'page.slug') form = SQLFORM.factory(db.page.slug, Field('tags')) Produces the following error on form.accepts(), works fine if wit

[web2py:36136] Re: Omit default controller for for any action

2009-11-28 Thread Iceberg
On Nov29, 2:11am, Alex wrote: > Is there any way to omit default controller name in URL if there is > appropriate default controller action, like it's done for index action > but to work for any default controller action? Create a routes.py in your web2py directory. See web2py/ route.example.py f

[web2py:36137] Re: domain hostname in routes.py

2009-11-28 Thread mdipierro
in routes.py routes_out=(('/domain_app_name/$anything','$anything'),) On Nov 28, 11:08 am, Alex wrote: > Actually i'm using nginx with mod_proxy > > This helped me with nginx for incoming requests: > > rewrite  ^(.*)$  /domain_app_name$1  last; > > but how to change "out" url generation to do no

[web2py:36138] Re: web2py on Apache Tomcat

2009-11-28 Thread mdipierro
You can run on apache http://web2py.com/examples/static/web2py_manual_cut.pdf but apache tomcat (as far as I understand) is JSP. web2py runs on Python, not Java. On Nov 28, 11:56 am, haftish21 wrote: > Is Web2py deployable on Apache tomcat, can anyone help?? -- You received this message bec

[web2py:36139] Re: Disable registrations

2009-11-28 Thread mdipierro
auth.settings.actions_disabled.append('register') On Nov 28, 12:38 pm, Thadeus Burgess wrote: > What is the most seem-less way to disable user registration system. In a > system where you only need one user and don't want anyone else to join. > > -Thadeus -- You received this message because yo

[web2py:36140] Re: SQLForm (set custom css classes to specified elements)

2009-11-28 Thread mdipierro
This makes a good point. On Nov 28, 2:36 pm, waTR wrote: > Correct. Design is out-sourced to a designer. Logic code is being done > by me. Main issue going forward will be with service contracts with > outsourced work. It's like voiding a warranty on a hard-drive in your > computer if you open it

[web2py:36141] Re: Plugin Central

2009-11-28 Thread mdipierro
good job! I will be contributing some more plugins soon. On Nov 28, 8:22 pm, Thadeus Burgess wrote: > Just fixed a couple of bugs :P Search should be working again, so should > creation of plugins > > -Thadeus > > On Sat, Nov 28, 2009 at 8:08 PM, mr.freeze wrote: > > Looks great! > > > On Nov 28

[web2py:36142] Weird form session activity?

2009-11-28 Thread Thadeus Burgess
I have been noticing that forms seem to get stuck. Using SQLFORM.factory, it seems that under certain cases the form freezes, when you submit the form, it acts as if form.accepts() has failed, this is most likely due to double submission, since removing session from form.accepts() the form will wor

[web2py:36143] Re: Traceback on IS_NOT_IN_DB

2009-11-28 Thread mdipierro
well. It is a bug. I think I fixed it in trunk. Please give it a try and let us know. Massimo On Nov 28, 8:36 pm, Thadeus Burgess wrote: > Could anybody explain the following traceback to me? > > db.define_table... > > Field('slug', unique=True, required=True), > > > ) > > db.page.slug.requ

[web2py:36144] Re: Encoding problem (bug?)

2009-11-28 Thread mdipierro
uploading to trunk. Thanks. On Nov 28, 2:28 pm, Francisco Ribeiro wrote: > hi > > Nice! Thank you for the attention. There is a good reason that I'm sure you > deeply understand for me to be less connected... I've been finishing my mst. > thesis. Work done, presentation finished more time free.

[web2py:36145] Re: SQLForm (set custom css classes to specified elements)

2009-11-28 Thread waTR
So any chance a patch will be made? I have been trying to make the modification myself, however, I am coming from C++ so I am not yet used to the art of Python function/ method arguments. I am trying to add a argument to FormWidget so it takes another argument called "stylized={}" before **attrib

Re: [web2py:36146] Re: Traceback on IS_NOT_IN_DB

2009-11-28 Thread Thadeus Burgess
Working now. Thanks. Any idea about freezing sessions from my other post? -Thadeus On Sat, Nov 28, 2009 at 10:35 PM, mdipierro wrote: > well. It is a bug. I think I fixed it in trunk. Please give it a try > and let us know. > > Massimo > > On Nov 28, 8:36 pm, Thadeus Burgess wrote: > > Cou

[web2py:36147] Re: Weird form session activity?

2009-11-28 Thread mdipierro
I do not know. If more people experience this problem, please let me know as many details as you can. Massimo On Nov 28, 10:17 pm, Thadeus Burgess wrote: > I have been noticing that forms seem to get stuck. Using SQLFORM.factory, it > seems that under certain cases the form freezes, when you sub

[web2py:36148] Re: SQLForm (set custom css classes to specified elements)

2009-11-28 Thread waTR
Nevermind, I got it. I was mixing up things at the function call not in the arguments. On Nov 28, 8:57 pm, waTR wrote: > So any chance a patch will be made? > > I have been trying to make the modification myself, however, I am > coming from C++ so I am not yet used to the art of Python function

[web2py:36149] sqlite encryption + web2py

2009-11-28 Thread ionel
Hello Massimo, I found an open source SQLite extension that provides 256 AES encryption of database files. site: http://zetetic.net/software/sqlcipher github: http://github.com/sjlombardo/sqlcipher license: http://zetetic.net/page_attachments//0309/sqlcipher-license2009.txt Is there a wa

[web2py:36150] Re: web2py on Apache Tomcat

2009-11-28 Thread Graham Dumpleton
Can Jython not be used as intermediary. http://skunkyjay.wordpress.com/2009/06/12/web2py-now-works-with-jython/ You would just need a WSGI adapter for Jython that can interact with Tomcat API. Graham On Nov 29, 3:04 pm, mdipierro wrote: > You can run on apache > > http://web2py.com/examples/st

[web2py:36151] Re: SQLForm (set custom css classes to specified elements)

2009-11-28 Thread waTR
Patch sent. I will post a web2pyslice tutorial tomorrow. On Nov 28, 9:21 pm, waTR wrote: > Nevermind, I got it. I was mixing up things at the function call not > in the arguments. > > On Nov 28, 8:57 pm, waTR wrote: > > > So any chance a patch will be made? > > > I have been trying to make th

[web2py:36152] Re: web2py on Apache Tomcat

2009-11-28 Thread mdipierro
Is there a wsgi adaptor for Jython? I should mention that although web2py works with jython2.5rc2 (that is what I used in my tests at the time)m I do not consider it a production alternative because: - users have preported problems with web2py jython 2.5 stable - the problems are related to a Java

Re: [web2py:36153] Re: multiple validations problem

2009-11-28 Thread Thadeus Burgess
I am actually having this problem with IS_NOT_IN_DB for updating records... Just attempting to use my basic slug example in my other post. -Thadeus On Fri, Nov 27, 2009 at 10:34 AM, mdipierro wrote: > > If a validator has a method set_self_id, it is called automatically by > web2py upon edi

Re: [web2py:36154] Re: multiple validations problem

2009-11-28 Thread Thadeus Burgess
I am attempting to use row.update_record() -Thadeus On Sun, Nov 29, 2009 at 1:30 AM, Thadeus Burgess wrote: > I am actually having this problem with IS_NOT_IN_DB for updating records... > > Just attempting to use my basic slug example in my other post. > > -Thadeus > > > > > > On Fri, No

[web2py:36155] js functions from controller

2009-11-28 Thread haftish21
Web2py view is successfully calling an online javascritpt library under

Re: [web2py:36156] Re: multiple validations problem

2009-11-28 Thread Thadeus Burgess
Actually, the problem is I am using an IS_NOT_IN_DB with an SQLFORM.factory. Then I use update_record. -Thadeus On Sun, Nov 29, 2009 at 1:37 AM, Thadeus Burgess wrote: > I am attempting to use > > row.update_record() > > -Thadeus > > > > > > On Sun, Nov 29, 2009 at 1:30 AM, Thadeus Burges