Re: [web2py] Re: join question

2014-12-27 Thread Alex Glaros
thanks for the great insight everyone much appreciated Alex -- 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 su

[web2py] Re: tips requested for tracing errors

2014-12-27 Thread Dave S
On Friday, December 26, 2014 2:56:05 PM UTC-8, Dave S wrote: > > > > On Monday, December 22, 2014 4:45:05 PM UTC-8, Alex Glaros wrote: >> >> I searched the error ticket for traces for table name, line number, but >> couldn't see any connection to anything regarding the real error (which I >> kn

Re: [web2py] Re: tool for making actions' diagrams

2014-12-27 Thread António Ramos
Another one http://bramp.github.io/js-sequence-diagrams/ Em 27/12/2014 16:51, "Niphlod" escreveu: > those are made with http://yuml.me/ . alternatives may be also > http://www.nomnoml.com/ for "hosted solutions" if you want to do > something similar within your app without using external serv

[web2py] Re: Markmin Blockquote

2014-12-27 Thread lyn2py
Sorry niphlod, it looks just like that, a single line with no newlines... This is a paragraph in a blockquote + item 1 + item 2 -- item 2.1 -- item 2.2 + item 3 - 0 | 0 | X 0 | X | 0 X | 0 | 0 -:tableclass1 On Sunday, December 28, 2014 12:45:09 AM UTC+8, Niphlod wrote: > > if y

Re: [web2py] Re: Rocket // HTTP 400 Bad Request - Body is incomplete

2014-12-27 Thread Niphlod
put a few logging statements on copystream_progress and see where it explodes... -- 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 messag

[web2py] Reserved key error (expires)

2014-12-27 Thread Avi A
Hi, Need some help with setting cookies. While basically setting cookies works, when I add this line : response.cookies['expires'] = 3600 * 24 returns: CookieError: Attempt to set a reserved key: expires Thanks, Avi. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation)

[web2py] Re: get the iteration number from a scheduled task

2014-12-27 Thread Niphlod
uhm... there's not a stable API to do it, but you can access the relative scheduler_task record via W2P_TASK. >From web2py 2.4.1, any task processed by the scheduler can access a global variable named W2P_TASK that is a Storage() holding the id and the uuid of the running task. this means

[web2py] Re: format does not work for SQLFORM

2014-12-27 Thread Niphlod
IMHO you can't have a format definition that needs values from different tables to be represented you need a separate function to do that. On Saturday, December 27, 2014 12:14:50 AM UTC+1, t_gle...@yahoo.com wrote: > > My application manages debits of hardware to personnel > > Here is my mode

Re: [web2py] Re: Rocket // HTTP 400 Bad Request - Body is incomplete

2014-12-27 Thread Louis Amon
If it’s easy to debug then how do I proceed ? :) I’ve copied here the request headers from Google Chrome : Request URL:http://localhost:8000/location/index/espace-de-stockage/la-seyne-sur-mer/1 Request Headers Provisional headers are shown Accept:text/html,application/xhtml+xml,application/xml;

[web2py] Re: tool for making actions' diagrams

2014-12-27 Thread Niphlod
those are made with http://yuml.me/ . alternatives may be also http://www.nomnoml.com/ for "hosted solutions" if you want to do something similar within your app without using external services, there's https://github.com/knsv/mermaid On Saturday, December 27, 2014 9:23:33 AM UTC+1, Matt Be

[web2py] Re: Markmin Blockquote

2014-12-27 Thread Niphlod
if you don't paste your contents in a code block on the forum, it's impossible to tell you what's wrong because "normal posts" don't keep spacing and newlines On Saturday, December 27, 2014 2:53:02 PM UTC+1, lyn2py wrote: > > Hi guys I'm trying MARKMIN here and the block quotes I have look l

[web2py] Re: Rocket // HTTP 400 Bad Request - Body is incomplete

2014-12-27 Thread Niphlod
whoa, that seems to be an issue with copystream_progress (in gluon/globals.py), that is quite easy to debug. Usually due to some weird issue with really huge POSTs, or streaming ones that don't carry the content-length attribute, or something raaally really weird. -- Resources: - http

[web2py] Rocket // HTTP 400 Bad Request - Body is incomplete

2014-12-27 Thread Louis Amon
I made some changes to my code and it seems I broke some stuff. Problem is : instead of getting a ticket, my POST request is stalled and my console is displaying this error : ERROR - 27-12-2014 17:16:27 - Rocket.Errors.Thread-10 : Traceback (most recent call last): File "/opt/web2py-prod/gluo

[web2py] Re: How would one design a promotion for products using web2py?

2014-12-27 Thread 黄祥
a, i c, the controller do the job, i've searched on the google that the others (magento, prestashop, oracle, etc) using tables (promotion, pricing rules, cart rules, etc) to handle it. put the condition on table and then compare it using controller, please correct me if i'm wrong. i'd love to l

[web2py] Markmin Blockquote

2014-12-27 Thread lyn2py
Hi guys I'm trying MARKMIN here and the block quotes I have look like this This is a paragraph in a blockquote + item 1 + item 2 -- item 2.1 -- item 2.2 + item 3 - 0 | 0 | X 0 | X | 0 X | 0 | 0 -:tableclass1 And not like the one shown in: http://www.web2py.com/init/static/ma

[web2py] Re: How would one design a promotion for products using web2py?

2014-12-27 Thread Massimo Di Pierro
db.define_table('product', Field('name'), Field('price')) pen = db.product.insert(name="Pen", price="8 if cart[pen]>4 else 10 if cart[pen]>2 else 12") cart = {pen: 3} # 3 pens in cart cart_total = sum(eval(p.price, cart) for p in db(db.product.name.belongs(cart.keys())).select()) On

[web2py] get the iteration number from a scheduled task

2014-12-27 Thread olivier hubert
Could you tell me the way to get the iteration number inside a scheduled task? I want to perform a different treatment if it's the first run of my tasks. ex: iteration 1 : treatment A iteration 2 : treatment B iteration 3 : treatment B iteration 4 : treatment B ... -- Resources: - http://web2py

[web2py] tool for making actions' diagrams

2014-12-27 Thread MAbeeTT
I see in the 3rd chapter of the book some diagrams for describing the actions' relationship. http://www.web2py.com/books/default/image/29/en3400.png Do you use some tool for drawing this? (different than pencil and paper). Do you recomend someone? Thanks, -- .::MAbeeTT::. mabeett

[web2py] Grab locations Via Google Maps

2014-12-27 Thread Gyanendra Mishra
Trying to learn web2py via a project. I would like to have a map with multiple places marked out of which a person can select a few places and click the submit button for the data to be processed. How should I proceed with it?A thread about google maps plugin says its old and obsolete.I might be