[web2py] Date format

2015-01-26 Thread Sh. Moiz M. Husain Bhai Nagpurwala
I want to Display date as *Tuesday, January 27, 2015* How to do that. Thanks. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message

Re: [web2py] Re: represents currency format

2015-01-26 Thread Massimo Di Pierro
Notice this can also be done in JS and it will make your code cleaner: http://numeraljs.com/ On Monday, 26 January 2015 18:01:08 UTC-6, Niphlod wrote: > > in the view, you have > > {{=list.UnitPrice}} > > use instead > > {{=db.KR_Product.UnitPrice.represent(list.UnitPrice)}} > > should work with

[web2py] Re: IMPORTANT - DO NOT POST ISSUE ON GOOGLE CODE

2015-01-26 Thread Massimo Di Pierro
Thank you Niphlod, this is an amazon job. Massimo On Monday, 26 January 2015 17:00:52 UTC-6, Niphlod wrote: > > migration completed. > > You can find in the original googlecode issue a last message by me linking > to the newly migrated issue on github, and on the github issue the link to > the

[web2py] Re: Strange behaviour with request.args(0)

2015-01-26 Thread Ian Ryder
Just to add, I swapped to use request.vars and it's all fine with the same IDs...so I'm rolling but a mystery with .args :) On Monday, January 26, 2015 at 10:21:40 AM UTC+11, Ian Ryder wrote: > > Hi there, first post after a couple of months using web2py - really > enjoying it. > > I have a stra

[web2py] Re: Checksum for download of web2py?

2015-01-26 Thread Benjamin
Thank you very much for your answer, Mr Di Pierro. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to

Re: [web2py] Is Web2py suitable for my project

2015-01-26 Thread Eric
Richard, If you try Bokeh and/or mpld3 please tell me how it went. I'll need scientific plots in my application and would welcome any hints on how to accomplish this in Web2py. Eric On Monday, January 26, 2015 at 9:30:48 AM UTC-6, Richard wrote: > > Didn't know bokeh thanks! > > Richard > > On

Re: [web2py] Re: HELP!! Another upgrading failed for Apache running web2py

2015-01-26 Thread Niphlod
uhm. apache is relly something nasty when it comes to a few things like https://code.google.com/p/modwsgi/wiki/ApplicationIssues and https://code.google.com/p/modwsgi/wiki/IssuesWithPickleModule wondering if it's a problem-per-se or not. On Friday, January 23, 2015 at 11:46:08 PM UT

Re: [web2py] Re: represents currency format

2015-01-26 Thread Niphlod
in the view, you have {{=list.UnitPrice}} use instead {{=db.KR_Product.UnitPrice.represent(list.UnitPrice)}} should work without issues. or read about render() here -- Resources: -

[web2py] Re: put signature on custom auth table

2015-01-26 Thread 黄祥
thanks cynthia for the trick. i use custom auth table for that. e.g. auth.settings.extra_fields['auth_user']= [ Field('name') ] # create all tables needed by auth if not custom tables auth.define_tables(username = True, signature = True) """ custom_auth_table """ custom_auth_table = db[auth.setti

Re: [web2py] Re: represents currency format

2015-01-26 Thread Omi Chiba
Can you give me more details? I'm not sure if directly call it from view or controller. I apprecite if you can provide a sample code with the following. db.KR_Product.UnitPrice.represent = lambda value, row: '$ %.2f' % (0.0 if value == None else value) On Mon, Jan 26, 2015 at 4:56 PM, Niphlod wr

[web2py] Re: request_reset_password not returning a form

2015-01-26 Thread Cynthia Butler
It looks like your mail.settings.login = keydata['email_pass'] may be just a password. I'm guessing, it depends on what the value of 'email_pass' is. It needs to be the full user@domain:password, like this: name@maildomain:password On Monday, January 26, 2015 at 1:04:05 PM UTC-7, Ian W. Scott

[web2py] Re: IMPORTANT - DO NOT POST ISSUE ON GOOGLE CODE

2015-01-26 Thread Niphlod
migration completed. You can find in the original googlecode issue a last message by me linking to the newly migrated issue on github, and on the github issue the link to the original issue on googlecode. >From now on: - googlecode issues WON'T be looked at - please post ONLY issues on https://

[web2py] Re: represents currency format

2015-01-26 Thread Niphlod
if you're not using web2py's facilities (SQLTABLE, grid, rows.render(), etc), you have to call represent directly {{=db.KR_Product.UnitPrice.represent(list.UnitPrice)}} On Monday, January 26, 2015 at 11:39:07 PM UTC+1, Omi Chiba wrote: > > I want to show the UnitPrice like $1,000,00 but it sho

[web2py] represents currency format

2015-01-26 Thread Omi Chiba
I want to show the UnitPrice like $1,000,00 but it shows 1000.00. *Model* db.define_table('KR_Product', Field('ProductCode', length=15), Field('PartNumber', length=50), Field('SubA', length=15), Field('SubB', length=15), Field('UnitPrice', 'decimal(18,2)'), Field('Quantit

[web2py] Re: Record format and SQLFORM.factory

2015-01-26 Thread Niphlod
uhm. maybe you're missing the point that SQLFORM.factory() COMPLETELY forgets about models... you pass Fields and that's all that factory() knows about it. That's the whole point of factory() On Monday, January 26, 2015 at 10:22:53 PM UTC+1, César Bustíos Benites wrote: > > Hello Niphlod, do I

[web2py] Re: Record format and SQLFORM.factory

2015-01-26 Thread César Bustíos Benites
Hello Niphlod, do I have to do that? I think I'm missing the point with the *format* parameter of *define_table*. On Monday, January 26, 2015 at 3:01:09 PM UTC-5, Niphlod wrote: > > where are you telling to SQLFORM.factory the representation of the record > ? > > On Monday, January 26, 2015 at

[web2py] Dropdown lists

2015-01-26 Thread Omi Chiba
I have a three dropdown and the value will be dynamically changed using ajax. It's working fine but something is wrong. In second dropdown (id="lead_name"), I specify jQuery('#model_name') but it's actually jQuery('#leadl_name') but then when the value for the second drop changed, the value dis

[web2py] request_reset_password not returning a form

2015-01-26 Thread Ian W. Scott
When I click on "Lost Password" in the user menu I just get a page with a blank body. The url to which I'm forwarded seems right (http://ianwscott.webfactional.com/paideia/default/user/request_reset_password?_next=/paideia/default/index) but there's no form on the page. It's as if the page cont

[web2py] Re: Record format and SQLFORM.factory

2015-01-26 Thread Niphlod
where are you telling to SQLFORM.factory the representation of the record ? On Monday, January 26, 2015 at 5:09:31 PM UTC+1, César Bustíos Benites wrote: > > Hello! I have a table called *presupuesto *with a custom *format*: > > db.define_table('presupuesto', > Field('jar', db.jar, label='JA

[web2py] How to temporarily disable record versioning in a scheduler task

2015-01-26 Thread Antonio Salazar
I have a scheduled task which ocassionally updates a lot of records in a versioned table. I'd like to disable record versioning only inside the task. I understand that record version can be activated per table and thus conditioned, but since the models run before eveything, I can't figure how t

[web2py] Re: web2py pagination

2015-01-26 Thread Cássio Botaro
An example: http://mindbending.org/pt/paginando-consultas-web2py unfortunately in portuguese, but the code is clear. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report

[web2py] Re: What are the usual steps for designing a web2py application?

2015-01-26 Thread Luc Chase
Your question refers to after the basic requirements are known? I'd interested to hear from @Massimo and others about the scope for using Web2py as an analysis & design tool via rapid functional-prototyping tool ( including instead of wireframes ) leading to final production version of the sof

[web2py] Record format and SQLFORM.factory

2015-01-26 Thread César Bustíos Benites
Hello! I have a table called *presupuesto *with a custom *format*: db.define_table('presupuesto', Field('jar', db.jar, label='JAR'), Field('monto', 'decimal(11, 2)', label='Presupuesto inicial', requires=IS_NOT_EMPTY(error_message='Ingrese un monto para el presupuesto')), Field('mont

Re: [web2py] Re: What are the usual steps for designing a web2py application?

2015-01-26 Thread Richard Vézina
Strange requirement!! On Sat, Jan 24, 2015 at 7:23 AM, Y wrote: > In my case Facebook, LinkedIn, Google are not trustworhy (quite the > opposite). I need - most importantly - to avoid that database entries of > users can be attributed to users. > The users should be mere abstract nodes with prop

Re: [web2py] Is Web2py suitable for my project

2015-01-26 Thread Richard Vézina
Didn't know bokeh thanks! Richard On Sun, Jan 25, 2015 at 10:43 PM, Kiran Subbaraman < subbaraman.ki...@gmail.com> wrote: > Eric, > The best option then is for you to try out the "hello-world" example in > web2py. This will give you a good idea as to how to create a minimal web > application, a

[web2py] IMPORTANT - DO NOT POST ISSUE ON GOOGLE CODE

2015-01-26 Thread Massimo Di Pierro
We have a migration in process and we will be moving all the open issues form googlecode to gihub (thanks Niphlod for handling all of this). So until it is done please: - don't touch existing issues on googlecode - don't open new ones on googlecode - wait a day or two for the complete migrati

[web2py] Re: Checksum for download of web2py?

2015-01-26 Thread Massimo Di Pierro
We should post them. We will add them. On Sunday, 25 January 2015 06:20:03 UTC-6, Benjamin wrote: > > Hello Group, > > Unfortunately, I am not able to find a checksum for the official download > on web2py.com. > Is there a reason not to offer one, or is it just me being blind? > > Your answer is

[web2py] Re: web2py 2.9.12 is OUT

2015-01-26 Thread Maurice Waka
Great and Thanks On Saturday, January 17, 2015 at 9:20:14 AM UTC+3, Massimo Di Pierro wrote: > > Changelog: > > - Modular DAL, thanks Giovanni > - Added coverage support, thanks Niphlod > - More tests, thanks Niphlod and Paolo Valleri > - Added support for show_if in readonly sqlform, thanks Paol

[web2py] Re: Strange behaviour with request.args(0)

2015-01-26 Thread Anthony
I think we'll need to see the code that generates the URL (i.e., where the request arg is created). On Sunday, January 25, 2015 at 6:21:40 PM UTC-5, Ian Ryder wrote: > > Hi there, first post after a couple of months using web2py - really > enjoying it. > > I have a strange one though - I have a

[web2py] web2py pagination

2015-01-26 Thread Maurice Waka
Suppose I have such a code: def products(): if len(request.args): page=int(request.args[0]) else: page=0 items_per_page=20 limitby=(page*items_per_page,(page+1)*(items_per_page+1)) qset = db(db['products']['name']!='None') grid = qset.select(limitby=limitby) return dict(grid=grid,pag

[web2py] Re: insert a task into a scheduler of another app

2015-01-26 Thread Niphlod
there are no issues in sharing the scheduler db. Did you find any ? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you

[web2py] Re: crash - session_pickled = pickle.dumps(self, pickle.HIGHEST_PROTOCOL) on 2.9.11

2015-01-26 Thread Niphlod
that's not a solution. it's making things slower as they were before. On Monday, January 26, 2015 at 10:28:57 AM UTC+1, Dmitry Ermolaev wrote: > > solve^^ > replace all pickle.dumps with: > session_pickled = pickle.dumps(self) , pickle.HIGHEST_PROTOCOL) > > понедельник, 13 октября 2014 г., 20

[web2py] Re: Strange behaviour with request.args(0)

2015-01-26 Thread Leonel Câmara
Hey, What do you have in your web2py's routes.py? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to

[web2py] Re: web2py 2.9.12 is OUT

2015-01-26 Thread Dmitry Ermolaev
solved! replase all pickle.dumps *session_pickled = pickle.dumps(self) ##, pickle.HIGHEST_PROTOCOL)* понедельник, 26 января 2015 г., 8:15:42 UTC+3 пользователь Dmitry Ermolaev написал: > > > Traceback (most recent call last): > File "C:\web2py-m\gluon\main.py", line 435, in wsgibase > ses

[web2py] Re: crash - session_pickled = pickle.dumps(self, pickle.HIGHEST_PROTOCOL) on 2.9.11

2015-01-26 Thread Dmitry Ermolaev
solve^^ replace all pickle.dumps with: session_pickled = pickle.dumps(self) , pickle.HIGHEST_PROTOCOL) понедельник, 13 октября 2014 г., 20:22:57 UTC+3 пользователь Dmitry Ermolaev написал: > > I use apache 2.2 > > If use 2 and more apps - error will be raise for each that not got first > HT

[web2py] Re: crash - session_pickled = pickle.dumps(self, pickle.HIGHEST_PROTOCOL) on 2.9.11

2015-01-26 Thread Dmitry Ermolaev
not worked (( I clear all cookies - error again понедельник, 13 октября 2014 г., 21:00:32 UTC+3 пользователь Leonel Câmara написал: > > You need to delete your browser cookies too. That said, this may also be a > web2py error because it shouldn't break just because the browser gives him > a non

[web2py] Re: crash - session_pickled = pickle.dumps(self, pickle.HIGHEST_PROTOCOL) on 2.9.11

2015-01-26 Thread Dmitry Ermolaev
why no error if rocked-server used and error if apache used ? why first aplication that got request HTTP worked but all others error? почему под сервером строенным все приложения работают а под сервером Апачи - нет почему работает только то приложение, которое получило первым HTTP-запрос, а все

[web2py] Re: crash - session_pickled = pickle.dumps(self, pickle.HIGHEST_PROTOCOL) on 2.9.11

2015-01-26 Thread Dmitry Ermolaev
please insert here code вторник, 2 декабря 2014 г., 17:13:55 UTC+3 пользователь Remco Boerma написал: > > What solved my issue was registering with copy_reg. > I store an instance of my own class in the session, which now brakes > without a registered reduction function. > Though the class im