[web2py] Re: New Site for web2py poweredby

2012-01-13 Thread Annet
Hi Andrew, > Annet I did the changes you suggested but will have to work on > the forum styling later today. Great ideas though *cheers You're welcome, let us know when you're done with the styling ... Kind regards, Annet

[web2py] SQLFORM.grid and custom display values from fields not displayed in the table.

2012-01-13 Thread Robert Clark
Can I first say that SQLFORM.grid is great and a massive productivity gain, thanks Massimo & the rest of the web2py team. My question is around formatting a column when the display value depends on other non-visible columns (or other related tables). We're using the "links" parameter and a lambda

[web2py] Re: Need a instruction for Rating Plugin

2012-01-13 Thread kenji4569
Thanks for your blog post! On 1月14日, 午前3:55, Omi Chiba wrote: > It easy to use and works great !! > > Here's my blog > posthttp://ochiba77.blogspot.com/2012/01/web2py-plugin-rating-widget.html > > On Jan 12, 7:08 pm, kenji4569 wrote: > > > > > > > > > I made a similar plugin before, and now upl

Re: [web2py] T and internationalization

2012-01-13 Thread Alexandre Andrade
I think u can create a file en_US or en_GB manually Alexandre Andrade 2012/1/13 Niphlod > Hi, > I'm currently researching the possibility to add some translations > using the T helper in a different way then usual. > > Let's say that I wrote all the strings to be translated in english, > and

[web2py] Re: latest web2py trunk: AttributeError: 'module' object has no attribute 'ftruncate'

2012-01-13 Thread Massimo Di Pierro
I have removed that patch. There is still a possible problem with locking of language files. Let's keep testing... On Jan 13, 3:28 pm, Carlos wrote: > Hi, > > I'm using latest web2py trunk (on win7, with postgresql, up to changeset # > c8f2c00a32fb), and I just started getting the following trace

Re: [web2py] Re: Routes error

2012-01-13 Thread Alexandre Andrade
You should rename it to routes.py, not router.py 2012/1/13 Web2Py Freak > Dear all , > > am still trying and its not working , am just trying to change the > default app , i renamed the router.example.py to router.py and changed > the the welcome app and added another one , and then i enter

Re: [web2py] Re: Is this possible?

2012-01-13 Thread Anthony
Thanks for sharing. That's good to know. On Friday, January 13, 2012 11:32:55 PM UTC-5, Detectedstealth wrote: > > Well as a test I got my new designer to try using web2py without any help > from me, he was successful so that was one bonus point. > > Second if you were to look at the code base fr

Re: [web2py] Re: Is this possible?

2012-01-13 Thread Bruce Wade
Well as a test I got my new designer to try using web2py without any help from me, he was successful so that was one bonus point. Second if you were to look at the code base from 4 developers which 2 had python background, one PHP, and the other Java, you can imagine how bad the code is running th

Re: [web2py] Re: Is this possible?

2012-01-13 Thread Anthony
Glad it worked. Out of curiosity, what prompted you to move from Pyramid to web2py for this app? On Friday, January 13, 2012 10:59:43 PM UTC-5, Detectedstealth wrote: > > Thank you Anthony, > > That works exactly how I was want. I didn't even think to use > request.vars. Just trying to see how m

Re: [web2py] Re: Is this possible?

2012-01-13 Thread Bruce Wade
Thank you Anthony, That works exactly how I was want. I didn't even think to use request.vars. Just trying to see how many different ways this is going to save my team development time. We are moving youadworld.com from pyramid to web2py here is the start so far if you are interested in watching

[web2py] Application-wide exception handler?

2012-01-13 Thread spiffytech
My web2py application is littered with calls to a library that loves throwing exceptions when the website it connects to isn't available. I'd like my web2py app to catch the exceptions thrown by the library and redirect the user to a friendly error page. However, there are too many library calls to

[web2py] Re: Is it me or what?

2012-01-13 Thread chawk
BTW, Joseph thank you for the advice of updating my meta author, and Annet you were right, it is in the model/menu.py file. I could not figure out why those meta tags were showing up like that. The fix will be updated tonight.

Re: [web2py] OFFTOPIC - http://www.pythonchallenge.com/

2012-01-13 Thread Anthony
On Friday, January 13, 2012 6:34:20 PM UTC-5, Ramos wrote: > > 2^38? what does it have to do with python? > The site says all but two of the levels can be completed with any language, not just Python.

Re: [web2py] Re: Is it me or what?

2012-01-13 Thread Chris Hawkes
Thanks for all the comments and suggestions. There will be a major content fix over the weekend. I will fix many dead links and I am adding an additional 200 bands or so. I am also adding more dynamic content over the next couple of weeks. Sent from my Samsung smartphone on AT&T Likit wr

Re: [web2py] OFFTOPIC - http://www.pythonchallenge.com/

2012-01-13 Thread Jonathan Lundell
On Jan 13, 2012, at 3:34 PM, Javier Quarite wrote: > Yes :D ( only the numbers) , I got stuck on the third level a month ago :( The one with the candles?

Re: [web2py] OFFTOPIC - http://www.pythonchallenge.com/

2012-01-13 Thread Jonathan Lundell
On Jan 13, 2012, at 3:34 PM, António Ramos wrote: > 2^38? what does it have to do with python? > It's easy to calculate.

Re: [web2py] OFFTOPIC - http://www.pythonchallenge.com/

2012-01-13 Thread Javier Quarite
2012/1/13 António Ramos > 2^38? what does it have to do with python? > > ughhh > > Just write that on python console :/ 2**38 and change the 0 on the URL with the result

[web2py] Documentation of web2py

2012-01-13 Thread davidjensen
I would like to help with the documentation of web2py. Is there a way to do that, perhaps collaboratively?

Re: [web2py] OFFTOPIC - http://www.pythonchallenge.com/

2012-01-13 Thread António Ramos
2^38? what does it have to do with python? ughhh 2012/1/13 Javier Quarite > > > 2012/1/13 António Ramos > >> good critics. I 'm stuck in level 1 . Shame >> http://www.pythonchallenge.com/ >> > > Can I help ? :D or you just wanted to share the page? > > Javier >

Re: [web2py] OFFTOPIC - http://www.pythonchallenge.com/

2012-01-13 Thread Javier Quarite
2012/1/13 António Ramos > 2^38? > > > Yes :D ( only the numbers) , I got stuck on the third level a month ago :( Javier

Re: [web2py] OFFTOPIC - http://www.pythonchallenge.com/

2012-01-13 Thread António Ramos
2^38? 2012/1/13 Javier Quarite > > > 2012/1/13 António Ramos > >> good critics. I 'm stuck in level 1 . Shame >> http://www.pythonchallenge.com/ >> > > Can I help ? :D or you just wanted to share the page? > > Javier >

Re: [web2py] OFFTOPIC - http://www.pythonchallenge.com/

2012-01-13 Thread Javier Quarite
2012/1/13 António Ramos > good critics. I 'm stuck in level 1 . Shame > http://www.pythonchallenge.com/ > Can I help ? :D or you just wanted to share the page? Javier

[web2py] OFFTOPIC - http://www.pythonchallenge.com/

2012-01-13 Thread António Ramos
good critics. I 'm stuck in level 1 . Shame http://www.pythonchallenge.com/

[web2py] Re: Is this possible?

2012-01-13 Thread Anthony
> > db.define_table('user_account', > > ) > db.define_table('distributors', > Field('account_id', db.user_account), > Field('uadpoints_balance_available', 'integer', default=0), > ) > db.define_table('ads', > Field('member_id', db.user_account), > Field('points', 'integer', de

Re: [web2py] Is this possible?

2012-01-13 Thread Anthony
On Friday, January 13, 2012 5:04:31 PM UTC-5, Khalil KHAMLICHI wrote: > > Why enforce it at database level when you can do the same thing easily at > form level? > Validators are in fact enforced at the form level, even though they are typically specified with the db field definition (this is use

[web2py] Re: Is it me or what?

2012-01-13 Thread Likit
Nice. Randomly noticed that the all bands/against me link is brokent... On Jan 12, 11:48 pm, Annet wrote: > Hi, > > > Thanks for pointing that out, this is probably a stupid question, but > > where do I change the metadata author? > > In previous versions of web2py this was the way to set meta

Re: [web2py] Is this possible?

2012-01-13 Thread Khalil KHAMLICHI
Why enforce it at database level when you can do the same thing easily at form level?

[web2py] Re: controller question

2012-01-13 Thread howesc
yeah, i don't have any controllers that are 7mb if that 7mb happens to be some static data that you are loading into memory you might consider loading the data into a blobstore, and having a method that reads it in and stores it in memcache for use by your application. just a thought. cfh

[web2py] Re: Custom Operator

2012-01-13 Thread howesc
take a look at dal.py for the postgresql adaptor. see how it defines the other operators. hopefully that will give you some clues as to how you would extend the DAL to have your operator. i haven't done it myself, but it's just software so i'm sure there is a solution. :) cfh

[web2py] latest web2py trunk: AttributeError: 'module' object has no attribute 'ftruncate'

2012-01-13 Thread Carlos
Hi, I'm using latest web2py trunk (on win7, with postgresql, up to changeset # c8f2c00a32fb), and I just started getting the following traceback once in a while: File ... return str(T(v)) File "C:\web2py\gluon\languages.py", line 139, in __str__ return self.T.translate(self.m, self.s) F

[web2py] Re: Links to referencing records - 'str' object has no attribute 'ignore_common_filters'

2012-01-13 Thread Anthony
On Friday, January 13, 2012 12:52:26 PM UTC-5, isi_jca wrote: > > Thanks for your answers. I made a correction, but the error persist. I > was reading about this error in > > https://groups.google.com/group/web2py/browse_thread/thread/11835a3c9c1aeda3/68c0c35d7fe29b54?hl=es&lnk=gst&q=Links+to+ref

Re: [web2py] Re: Get the URL

2012-01-13 Thread Anthony
You can also put {{=response.toolbar()}} in a view, or even just {{=BEAUTIFY(request)}}. Anthony On Friday, January 13, 2012 1:11:10 PM UTC-5, pbreit wrote: > > You can always pull up /appadmin/state which shows all of the env, > request, session variables available.

[web2py] Is this possible?

2012-01-13 Thread Bruce Wade
db.define_table('user_account', ) db.define_table('distributors', Field('account_id', db.user_account), Field('uadpoints_balance_available', 'integer', default=0), ) db.define_table('ads', Field('member_id', db.user_account), Field('points', 'integer', default=0), ) db.ads.poin

[web2py] Re: Need a instruction for Rating Plugin

2012-01-13 Thread Omi Chiba
It easy to use and works great !! Here's my blog post http://ochiba77.blogspot.com/2012/01/web2py-plugin-rating-widget.html On Jan 12, 7:08 pm, kenji4569 wrote: > I made a similar plugin before, and now uploaded it to my plugin site: > > http://dev.s-cubism.com/plugin_rating_widget > > The plug

[web2py] Re: List of fields to select()

2012-01-13 Thread Vikas Singhal
Thanks Anthony, that worked! On Jan 13, 6:58 pm, Anthony wrote: > On Friday, January 13, 2012 8:50:30 AM UTC-5, Vikas Singhal wrote: > > > Hi, > > > How can I pass a list of fields to db(query).select() functions. For > > e.g cols = { field1, field2, field3 } > > {} makes a dict, not a list -- yo

Re: [web2py] Re: Get the URL

2012-01-13 Thread pbreit
You can always pull up /appadmin/state which shows all of the env, request, session variables available.

[web2py] Re: Links to referencing records - 'str' object has no attribute 'ignore_common_filters'

2012-01-13 Thread isi_jca
Thanks for your answers. I made a correction, but the error persist. I was reading about this error in https://groups.google.com/group/web2py/browse_thread/thread/11835a3c9c1aeda3/68c0c35d7fe29b54?hl=es&lnk=gst&q=Links+to+referencing+records#68c0c35d7fe29b54. On 13 ene, 11:10, Anthony wrote: > L

[web2py] T and internationalization

2012-01-13 Thread Niphlod
Hi, I'm currently researching the possibility to add some translations using the T helper in a different way then usual. Let's say that I wrote all the strings to be translated in english, and use T for the italian translation. Until here, no problem found Then, I tried to use a string, l

Re: [web2py] PyCharm for web2py development -- interest in a third-party plugin?

2012-01-13 Thread Bruno Rocha
I can help with the plugin, but where is the docs about plugin creation? http://zerp.ly/rochacbruno Em 13/01/2012 14:45, "monotasker" escreveu: > I had an email exchange over the last couple of days with a developer at > Jetbrains who works on PyCharm. The bad news is they've chosen not to work

Re: [web2py] PyCharm for web2py development -- interest in a third-party plugin?

2012-01-13 Thread Angelo Compagnucci
There is really such an intrest? I'm using eclipse+pydev everyday and overcomed the trickery to get code completion working, it's really good ide. I think there is major need to provide support for pydev than a closed source ide. They are a company that sells a software, and if they don't want ou

[web2py] PyCharm for web2py development -- interest in a third-party plugin?

2012-01-13 Thread monotasker
I had an email exchange over the last couple of days with a developer at Jetbrains who works on PyCharm. The bad news is they've chosen not to work on web2py integration any time soon. The even worse news (from my perspective) is that they seem to have a very negative impression of the web2py c

Re: [web2py] Re: New Site for web2py poweredby

2012-01-13 Thread Andrew Evans
ty everyone! Annet I did the changes you suggested but will have to work on the forum styling later today. Great ideas though *cheers On Fri, Jan 13, 2012 at 5:04 AM, Cliff wrote: > Very nice. > > A agree with Annet about the forum styling, though. > > On Jan 13, 3:16 am, Rahul wrote: > > Lo

Re: [web2py] Register User issue -- Blank password

2012-01-13 Thread Anthony
> > Thanks for the help. > i recognized that we had our own customised auth_user and we missed > IS_NOTEMPTY validation for the password field. > The issue was resolved > Note, if you're using the CRYPT() validator (you should be hashing the password somehow), it takes a min_length argument, so

Re: [web2py] Register User issue -- Blank password

2012-01-13 Thread VIREN PATEL
Thanks for the help. i recognized that we had our own customised auth_user and we missed IS_NOTEMPTY validation for the password field. The issue was resolved On Wed, Jan 11, 2012 at 8:07 PM, Anthony wrote: > Are you using a custom auth_user table? With the default table, the > password field ha

Re: [web2py] Qdb: a really simple client/server remote python debugger

2012-01-13 Thread Angelo Compagnucci
I'll try as soon as possible, nice work! Thanks! 2012/1/13 Mariano Reingart > FYI > > I'm working on a enhancement to Pdb, wich could be used from a remote > terminal to any server (and in the near future, with a nice visual > IDE): > > http://code.google.com/p/rad2py/wiki/QdbRemotePythonDebugg

[web2py] Re: Responsivekit for web2py!

2012-01-13 Thread Angelo Compagnucci
Hi list! I'm reading Marcotte's book (Responsive Web Design) and I think we should modify slightly our web2py.css. Tag img should be img { border: 0; max-width: 100%;} so it can use the width of parent instead to overflow if bigger than that and it automatically reflow when size changes. This is

Re: [web2py] Re: Get the URL

2012-01-13 Thread Jonathan Lundell
On Jan 13, 2012, at 7:50 AM, Anthony wrote: > On Friday, January 13, 2012 10:31:04 AM UTC-5, Jonathan Lundell wrote: > On Jan 13, 2012, at 7:22 AM, Web2Py Freak wrote: > > ok i did request_uri and got None ?? i want the full url with tha > > domain and args because i want to use it for the faceboo

[web2py] Qdb: a really simple client/server remote python debugger

2012-01-13 Thread Mariano Reingart
FYI I'm working on a enhancement to Pdb, wich could be used from a remote terminal to any server (and in the near future, with a nice visual IDE): http://code.google.com/p/rad2py/wiki/QdbRemotePythonDebugger Quick steps: 1. Download qdb.py (put in web2py modules and in your local folder) 2. Ad

Re: [web2py] Re: Get the URL

2012-01-13 Thread Anthony
On Friday, January 13, 2012 10:31:04 AM UTC-5, Jonathan Lundell wrote: > > On Jan 13, 2012, at 7:22 AM, Web2Py Freak wrote: > > > ok i did request_uri and got None ?? i want the full url with tha > > domain and args because i want to use it for the facebook like > > It's possible that you need to e

[web2py] Re: SQLFORM: file upload

2012-01-13 Thread Anthony
This is handled by the UploadWidget class in sqlhtml.py. Looks like all of that is hard-coded. You can provide a callable (e.g., lambda) for the download URL, but maybe we should allow a callable for the entire link/delete element so it can be customized. For now, your best alternative might be

Re: [web2py] Re: Get the URL

2012-01-13 Thread Jonathan Lundell
On Jan 13, 2012, at 7:31 AM, Jonathan Lundell wrote: > On Jan 13, 2012, at 7:22 AM, Web2Py Freak wrote: > >> ok i did request_uri and got None ?? i want the full url with tha >> domain and args because i want to use it for the facebook like > > It's possible that you need to enable routing to se

Re: [web2py] Re: Get the URL

2012-01-13 Thread Jonathan Lundell
On Jan 13, 2012, at 7:22 AM, Web2Py Freak wrote: > ok i did request_uri and got None ?? i want the full url with tha > domain and args because i want to use it for the facebook like It's possible that you need to enable routing to set request_uri (I'm not sure). This is how the router builds it;

[web2py] Re: CRUD Form

2012-01-13 Thread Anthony
Can you show your controller and view code? On Friday, January 13, 2012 2:03:26 AM UTC-5, tOlorun wrote: > > Hello everyone > > Please iam trying to submit a crud.create form > > which iam loading as a component via ajax > > my url is not the url is not pointing to the function of the crud form

[web2py] Re: Get the URL

2012-01-13 Thread Anthony
On Friday, January 13, 2012 10:22:40 AM UTC-5, Web2Py Freak wrote: > > ok i did request_uri and got None ?? i want the full url with tha > domain and args because i want to use it for the facebook like Something is wrong -- please show your code.

[web2py] Re: Get the URL

2012-01-13 Thread Web2Py Freak
ok i did request_uri and got None ?? i want the full url with tha domain and args because i want to use it for the facebook like

[web2py] Re: Get the URL

2012-01-13 Thread Anthony
request_uri, not request_url On Friday, January 13, 2012 9:49:52 AM UTC-5, Web2Py Freak wrote: > > i want the full URL and i tried request.env.request_url like you > said and i got (None). ! >

Re: [web2py] Re: Get the URL

2012-01-13 Thread Jonathan Lundell
On Jan 13, 2012, at 6:49 AM, Web2Py Freak wrote: > i want the full URL and i tried request.env.request_url like you > said and i got (None). ! That's not what Anthony said to try; reread his message, please. What are you trying to accomplish?

[web2py] Re: Get the URL

2012-01-13 Thread Web2Py Freak
i want the full URL and i tried request.env.request_url like you said and i got (None). !

Re: [web2py] Re: Set table name

2012-01-13 Thread Marcello Parra
Anthony, thanks very much On Fri, Jan 13, 2012 at 12:03 PM, Anthony wrote: > Thanks a lot. >> This solved the problem >> >> Two questions: >> >> - why the brackets ?? >> > > Tables and fields can be accessed as properties via the usual "." > notation, but also via keys like a dictionar

[web2py] Re: Links to referencing records - 'str' object has no attribute 'ignore_common_filters'

2012-01-13 Thread Anthony
Looks like somewhere you have a query 'dog.owner=5'. Instead, that should be: dog.owner == 5 Note, no surrounding quotes, and use of == (to test equality) instead of = (used for assignment). Anthony On Friday, January 13, 2012 6:20:58 AM UTC-5, isi_jca wrote: > > Hello!!! > > I am a beginner

[web2py] Re: Web2py binary distribution and psycopg2 driver

2012-01-13 Thread Alan Etkin
Sorry, I probably used the psycopg windows binaries with web2py source so using those installers will not solve the problem. On 11 ene, 08:53, Álvaro J. Iradier wrote: > Thanks for your comments. > > Do you remember how you did it? I can make it work correctly when > using the source version of w

Re: [web2py] Re: Set table name

2012-01-13 Thread Anthony
> > Thanks a lot. > This solved the problem > > Two questions: > > - why the brackets ?? > Tables and fields can be accessed as properties via the usual "." notation, but also via keys like a dictionary. So, db['tablename'] is equivalent to db.tablename and db.tablename['fieldname']is equi

[web2py] Re: List of fields to select()

2012-01-13 Thread Anthony
On Friday, January 13, 2012 8:50:30 AM UTC-5, Vikas Singhal wrote: > > Hi, > > How can I pass a list of fields to db(query).select() functions. For > e.g cols = { field1, field2, field3 } {} makes a dict, not a list -- you want: cols = [field1, field2, field3] In that case: db(query).select(

Re: [web2py] Re: Set table name

2012-01-13 Thread Marcello Parra
Marin, Thanks a lot. This solved the problem Two questions: - why the brackets ?? - is this the most "elegant" what to do this ?? Thanks... On Fri, Jan 13, 2012 at 11:45 AM, Marin Pranjić wrote: > Try this, > > dog = 'dog12345' > db.person[1][dog].select() > > On Fri, Jan 13, 2012 at

[web2py] Re: Get the URL

2012-01-13 Thread Anthony
request.env.path_info is the URL of the requested page before any incoming URL rewrite and without the query string. request.env.request_uri is the URL of the requested page after any incoming URL rewrite and including the query string. Anthony On Friday, January 13, 2012 8:31:58 AM UTC-5, Web

[web2py] Responsivekit for web2py!

2012-01-13 Thread Angelo Compagnucci
Hello list, I want to share with you my new plugin (aiming to web2py inclusion!), responsivekit, you can find it on github https://github.com/angeloc/web2py-responsivekit. Responsivekit implements responsive tables and responsive images using the best known techniques at the moment (I'm basing on

[web2py] Re: Computed Fields broken by 1.99.2

2012-01-13 Thread Alan Etkin
I think I was able to define readable auto computeable fields (fields were able to re-compute themselves on insert or update, at least with Sqlite) in the past. This is no longer supported (of course, if former versions did)? On 17 nov 2011, 11:25, David Manns wrote: > I have finally figured out

[web2py] List of fields to select()

2012-01-13 Thread Vikas Singhal
Hi, How can I pass a list of fields to db(query).select() functions. For e.g cols = { field1, field2, field3 } does not work when I call db(query).select(cols). Any help? - Vikas

Re: [web2py] Re: Set table name

2012-01-13 Thread Marin Pranjić
Try this, dog = 'dog12345' db.person[1][dog].select() On Fri, Jan 13, 2012 at 2:37 PM, Marcello Parra wrote: > Thanks Ross > > I tried this, but did not work: > > - db.person[1].dog.select() raises: > KeyError: 'dog' > > but > - db.person[1].dog12345.select() > works fine > > > > On

[web2py] Links to referencing records - 'str' object has no attribute 'ignore_common_filters'

2012-01-13 Thread isi_jca
Hello!!! I am a beginner and get the next ticket. Anybody Can I Help me?. Thanks in advance. Ticket ID 127.0.0.1.2012-01-12.14-09-56.3407b807-6bc6-4428-a7f2-0173a5473524 'str' object has no attribute 'ignore_common_filters' Version web2py™ (1, 99, 4, datetime.datetime(2011, 12, 14, 14, 46,

Re: [web2py] Re: Set table name

2012-01-13 Thread Marcello Parra
Thanks Ross I tried this, but did not work: - db.person[1].dog.select() raises: KeyError: 'dog' but - db.person[1].dog12345.select() works fine On Fri, Jan 13, 2012 at 10:46 AM, Ross Peoples wrote: > I don't know if anyone has tried this kind of thing before. The only idea > I ha

[web2py] Get the URL

2012-01-13 Thread Web2Py Freak
Dear ALl , How can i get the URL of the page am in ?

[web2py] Row difference bug

2012-01-13 Thread Kenneth Lundström
Hello list, I got an Internal error and the problem is in a views file. And as we know row numbers in the source files is not the same as in the Error page. So I started looking at the error on the Error page and I think I found a bug in showing the code. File"/views/troop/campaign.html",lin

[web2py] Re: New Site for web2py poweredby

2012-01-13 Thread Cliff
Very nice. A agree with Annet about the forum styling, though. On Jan 13, 3:16 am, Rahul wrote: > Looks nice and professional :) nice work > > Rahul D > > On Jan 13, 12:29 pm, Annet wrote: > > > > > > > > > Hi Andrew, > > > Nice site. Just three questions, why did you swap photo gallery and > >

[web2py] Custom Operator

2012-01-13 Thread Vikas Singhal
Hi, I am using SQLCustomType to declare a field inet to tie it to string. Now I want to use custom SQL operator on it. I am trying to use <<= operator which says contains within, its like LIKE for inet field. How can I create it? Ref: http://www.postgresql.org/docs/current/static/functions-net.ht

[web2py] Re: Set table name

2012-01-13 Thread Ross Peoples
I don't know if anyone has tried this kind of thing before. The only idea I have right now is to alias your table objects. This MIGHT work, or might make things worse :) Either way, try this and see if it works (no promises): db.define_table('person12345', Field('name'), ) db.person = db.per

[web2py] Rows without Headers

2012-01-13 Thread Vikas Singhal
Hi , How can produce a list of rows without the header information. I need to use this to json encode and send it datatable which will then display it. Currently I have written a loop which does the job but I was wondering if we have something already? Regards, Vikas

[web2py] Re: Set table name

2012-01-13 Thread Marcello
No one ?? On 10 jan, 14:51, Marcello Parra wrote: > Hello Massimo and all, > > I'm trying to use web2py for several projects of mine. > I always find a problem that should be solved if I could set the table name. > > Let me show an example... > > Suppose that I have this: > > db.define_table('per

[web2py] Re: Routes error

2012-01-13 Thread Web2Py Freak
Dear all , am still trying and its not working , am just trying to change the default app , i renamed the router.example.py to router.py and changed the the welcome app and added another one , and then i entered the admin and clicked reload routes ,and then i restarted the sever , but nothing ha

Re: [web2py] Re: web2py powerby screenshot

2012-01-13 Thread Albert Abril
Hey! Can the mantainer of powereby remove the "arritmiacolectiva.es" link? I'm not the mantainer of the web anymore and they moved to some ugly php website :P Regards! 2012/1/12 Massimo Di Pierro > good job indeed. > > On Jan 12, 9:26 am, Francisco Costa wrote: > > Thanks, we've been worki

[web2py] Re: controller question

2012-01-13 Thread pbreit
7mb sounds quite large. Any reason you can't break it up?

[web2py] Re: why won't web2py create the databases

2012-01-13 Thread pbreit
What you are doing is pretty straightforward so I'm surprised you are running in to trouble. I did notice this line is not quite right: jodb.joke_category.requires = IS_IN_DB(jodb,jodb.joke.id) Should be: jodb.joke_category.joke_id.requires = IS_IN_DB(jodb, joke.id ) For

[web2py] Re: New Site for web2py poweredby

2012-01-13 Thread Rahul
Looks nice and professional :) nice work Rahul D On Jan 13, 12:29 pm, Annet wrote: > Hi Andrew, > > Nice site. Just three questions, why did you swap photo gallery and > login/join in the menu at the bottom? why not center the copyright > message? isn't it possible to style the forum in the same