[web2py] Re: web3py -> py4web

2019-09-03 Thread mostwanted
Beautiful, can't wait for a complete project Mostwanted On Wednesday, July 24, 2019 at 7:40:27 AM UTC+2, Massimo Di Pierro wrote: > > OK. I know. I am not good with names. > But there are lots of requirements to be fulfilled. > py4web.com was available and the pypi package was avail

Re: [web2py] Web2py binary conversion

2019-08-21 Thread mostwanted
the original file the package was create from so I wondered if PyInstaller could do a better job. Regards Mostwanted On Thursday, August 22, 2019 at 12:20:16 AM UTC+2, Nico Zanferrari wrote: > > Well, on a second thought is not so simple. > > Basically, you just need to follow the instru

Re: [web2py] Web2py binary conversion

2019-08-21 Thread mostwanted
> startup and no persistence > > Nico > > Il Mer 21 Ago 2019, 11:16 mostwanted > > ha scritto: > >> I was wondering, is there a way to convert web2py binaries into .exe >> files with pyinstaller? If so what's the process? >> >> Regards: >> >>

[web2py] Web2py binary conversion

2019-08-21 Thread mostwanted
I was wondering, is there a way to convert web2py binaries into .exe files with pyinstaller? If so what's the process? Regards: Mostwanted -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p

[web2py] Re: Automatic user logout & redirect

2019-08-19 Thread mostwanted
round-color: red; font-weight: bold; padding: 3px; border-radius:5px;")*There must be something I can do which i dont know, please help! Regards; Mostwanted On Monday, August 19, 2019 at 12:16:55 PM UTC+2, Val K wrote: > > There is no 'select' in your code. Is that a typo? -- Resources:

[web2py] Re: Automatic user logout & redirect

2019-08-19 Thread mostwanted
date: current_date = request.now.date()- datetime.timedelta(days=0) if exp_d.expiry_date < current_date: redirect(URL('subscribe')) return locals() Regards; Mostwanted On Monday, August 19, 2019 at 12:16:55 PM UTC+2, Val K wrote: > > There is no 'select'

[web2py] Re: Automatic user logout & redirect

2019-08-19 Thread mostwanted
its always redirecting, it does not respect the condition of the if statement even if the expiry date is greater than the current_date! How can i emprove this to work right? Regards; Mostwanted On Sunday, August 18, 2019 at 12:26:13 PM UTC+2, mostwanted wrote: > > I am trying

[web2py] Automatic user logout & redirect

2019-08-18 Thread mostwanted
cription has expired get logged out immediately & be redirected to the subscription page. Regards; Mostwanted. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (R

[web2py] Re: Tables in Appadmin/index have disappeared

2019-08-14 Thread mostwanted
You are not the only one my friend. On Wednesday, August 14, 2019 at 11:13:08 PM UTC+2, Tom Campbell wrote: > > If you can imagine a version of the old song "Strumming My Pain" but about > programming ("I felt he'd found my letters and read each one out loud"), > yeah, you just told the story

[web2py] Re: A calculation gives unsupported operand type(s) for -: 'str' and 'str'

2019-08-14 Thread mostwanted
-between-dates-picked-on-a-date-picker-calend Regards; Mostwanted On Tuesday, August 13, 2019 at 11:35:55 PM UTC+2, Dave S wrote: > > > > On Tuesday, August 13, 2019 at 10:12:07 AM UTC-7, mostwanted wrote: >> >> My understanding of the error is that i can not subtract st

[web2py] Re: No being able to access all the details from a for loop in the view

2019-08-13 Thread mostwanted
Thanks for your input @villas but i can't change the link to an id because it already has a class is called *whatsapp *which is the one i am calling on the *click *function > try: > > $(document).on("click", '#whatsapp', function(e) { > > > > On Tuesday, 13 August

[web2py] Re: A calculation gives unsupported operand type(s) for -: 'str' and 'str'

2019-08-13 Thread mostwanted
My understanding of the error is that i can not subtract strings, which is true, but these fiends on which i am performing subtraction are dates and i was trying to pick their days when i put them into* ().days *so they wont be treated as strings because they are date fields, i cant figure out

[web2py] A calculation gives unsupported operand type(s) for -: 'str' and 'str'

2019-08-13 Thread mostwanted
mpute=lambda r: float(r['price'])* int (r['daysLoaned']), label=SPAN('Total Price', _style="font-weight: bold;"))) Why am i getting this error? How do i rectify it, maybe i am missing something! Regards; Mostwanted -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] No being able to access all the details from a for loop in the view

2019-08-12 Thread mostwanted
*{{=details.amount}}Share Details On Whatsapp* {{pass}} {{pass}} Regards Mostwanted -- 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) ---

[web2py] Re: Tables in Appadmin/index have disappeared

2019-08-03 Thread mostwanted
de a tab, i didn't realize this when i wrote that line, I changed the tab-content class name and my databases re-appeard. *This programming thing will kill us!!! I'm goign to bed now! I deserve it, i'll wake up after 2 days!* Regards; Mostwanted On Wednesday, July 31, 2019 at 6:43:18

[web2py] Tables in Appadmin/index have disappeared

2019-07-31 Thread mostwanted
I have somehow suddenly lost my tables in appadmin, they have just disappeared & i don't know where to!!! How can i retrieve them & why have they disappeared?? Regards; Mostwanted -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2p

[web2py] where can one find web2py apparels

2019-07-07 Thread mostwanted
At one point in the past there was this conversation https://groups.google.com/forum/#!topic/web2py/LVrtF2q27JI Whatever happened to it? It would be nice to own a web2py apparel. Is it in the plans or does it exist & I just don't know about it? Mostwanted -- Resources: - http://web2py

[web2py] Re: Cart session callback function

2019-07-02 Thread mostwanted
to html element with id = > target = 'items%s'%p.id > > On Tuesday, July 2, 2019 at 3:35:03 PM UTC+3, mostwanted wrote: >> >> Can anyone please explain to me in lay-man terms how the code below >> works! It is a function for adding items to the shopping cart. I a

[web2py] Cart session callback function

2019-07-02 Thread mostwanted
) return str(session.cart[id]) Regards Mostwanted -- 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

[web2py] Addressing the different timestamps for created_on because of different time zones

2019-06-29 Thread mostwanted
time zone?? Regards Mostwanted -- 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 the Google Gr

[web2py] Re: Adding another field to the auth_user registration form

2019-06-28 Thread mostwanted
esis and voila Regards; Mostwanted On Friday, June 28, 2019 at 10:31:40 AM UTC+2, mostwanted wrote: > > How can I add another field of my desire to the web2py auth_user > registration form? > In my registration form in addition to all the fields i want my clients to > also regis

[web2py] Adding another field to the auth_user registration form

2019-06-28 Thread mostwanted
How can I add another field of my desire to the web2py auth_user registration form? In my registration form in addition to all the fields i want my clients to also register their telephone and cell phone numbers. Regards; Mostwanted -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Re: Hiding an element or text after login

2019-06-26 Thread mostwanted
I dont know if its because i added the {{else:}} statement but its working now, thank you @ Константин Комков On Wednesday, June 26, 2019 at 8:48:59 PM UTC+2, Константин Комков wrote: > > Check that your conditions and pass quantity coincides. Becouse your code > correct work in my app. Also

[web2py] Hiding an element or text after login

2019-06-26 Thread mostwanted
ieve my task? Regards; Mostwanted -- 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 the Google Gr

Re: [web2py] A none responsive If statement in the view

2019-06-12 Thread mostwanted
s, i think it duplicated the *NO LISTINGS* message because it was within the for loop, it didnt give me what i wanted! But its working now, thanks alot. Mostwanted On Tuesday, June 11, 2019 at 9:19:46 PM UTC+2, Dave S wrote: > > > > On Tuesday, June 11, 2019 at 1:57:31 AM U

[web2py] Re: A schedule automatic delete from Database

2019-06-11 Thread mostwanted
Thanks for the elaborate explanation Dave, really means a-lot. On Tuesday, June 11, 2019 at 5:20:13 PM UTC+2, Dave S wrote: > > > > On Monday, June 10, 2019 at 9:52:59 PM UTC-7, mostwanted wrote: >> >> I am yet to understand how the scheduler works. >> >

Re: [web2py] A none responsive If statement in the view

2019-06-11 Thread mostwanted
or jobs in details: > if jobs.category in letters: > }} > ... > {{ else: }} > > *NO LISTINGS!* > > {{ pass }} > {{ pass }} > > > > On Tue, Jun 11, 2019 at 9:04 AM mostwanted > wrote: > >> My t

[web2py] A none responsive If statement in the view

2019-06-11 Thread mostwanted
}} Post: {{=jobs.post}} Post Description: {{=jobs.post_description}} Closing Date: {{=jobs.expiry_date}} {{pass}} {{pass}} *{{if jobs.category not in letters:}}NO LISTINGS!{{pass}}* Regards; Mostwanted -- Resources: - http://web2py.com

[web2py] Re: A schedule automatic delete from Database

2019-06-10 Thread mostwanted
I am yet to understand how the scheduler works. Thanks Dave On Monday, June 10, 2019 at 9:59:04 PM UTC+2, Dave S wrote: > > > > On Saturday, June 8, 2019 at 11:47:47 PM UTC-7, mostwanted wrote: >> >> Is there a way to schedule an automatic deleting of content from dat

Re: [web2py] A schedule automatic delete from Database

2019-06-10 Thread mostwanted
> 1 week ago, you can use the datetime function to select the date one week > ago and choose the date of deleting using timedelta(days =number) > Regards > > On Mon, 10 Jun 2019, 12:16 mostwanted > > wrote: > >> I am having a hard time figuring out how to calculate

Re: [web2py] A schedule automatic delete from Database

2019-06-10 Thread mostwanted
evious date. You don't have to manually delete > but works automatically. > Regards > > On Sun, 9 Jun 2019 at 12:41, Lovedie JC > > wrote: > >> Had one, let check my archives. >> >> On Sun, 9 Jun 2019, 09:47 mostwanted > >> wrote: >> >>> Is

[web2py] A schedule automatic delete from Database

2019-06-09 Thread mostwanted
Is there a way to schedule an automatic deleting of content from database on a specified date? I have an application that I want to delete posts when we reach specified dates. If anyone is familiar with this, your assistance would be greatly appreciated. Regards Mostwanted -- Resources

[web2py] Re: Custom validator that avoids saving duplicate / similar values on a database with custom forms

2019-05-22 Thread mostwanted
Nice one, Thanks alot On Monday, May 20, 2019 at 1:50:18 PM UTC+2, Leonel Câmara wrote: > > Valitadors have an error_message __init__ argument. So you can just do > IS_IN_DB(..., error_message=T('*that name is already used, please choose > a different name for your items*')) > -- Resources: -

Re: [web2py] Custom validator that avoids saving duplicate / similar values on a database with custom forms

2019-05-20 Thread mostwanted
DB() > > On Mon, 20 May 2019, 10:07 mostwanted > > wrote: > >> I have a custom form that allows users to save information on what they >> are selling but the problem is that at times customers save similar items >> names and during a search by buyers the buy

Re: [web2py] Custom validator that avoids saving duplicate / similar values on a database with custom forms

2019-05-20 Thread mostwanted
I wanna use a custom validator with a more relevant message, the message with IS_NOT_IN_DB() reads* "Value already in database or empty", *how can i change the message to what i want it to be? Mostwanted On Monday, May 20, 2019 at 9:36:32 AM UTC+2, Lovedie JC wrote: > &

[web2py] Custom validator that avoids saving duplicate / similar values on a database with custom forms

2019-05-20 Thread mostwanted
I have a custom form that allows users to save information on what they are selling but the problem is that at times customers save similar items names and during a search by buyers the buyer gets a duplicate name results, what i want is to disable registering clients from saving the same item

[web2py] Re: gmail unable to send email

2019-05-13 Thread mostwanted
hahahah* 'being marked as "EVIL"'*I really like your solution, i will give it a try as well. Mostwanted On Sunday, May 12, 2019 at 11:11:10 AM UTC+2, Dave S wrote: > > > > On Monday, May 6, 2019 at 6:49:33 AM UTC-7, Leonel Câmara wrote: >> >> If you don'

[web2py] Re: gmail unable to send email

2019-05-07 Thread mostwanted
Thanks guys but this link seems to have solved the problem https://groups.google.com/d/msg/web2py/PS9QhsdsQfM/hJplwLYRBAAJ I am able to send right now Regards; Mostwanted On Monday, May 6, 2019 at 3:49:33 PM UTC+2, Leonel Câmara wrote: > > If you don't send too many emails I recommend

[web2py] gmail unable to send email

2019-05-05 Thread mostwanted
could use for my app and what is the setup process or a way to get gmail to support my application that won't change in the long run as it has today! Regards; Mostwanted -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code

[web2py] Re: Hiding menu when on a certain page

2019-04-24 Thread mostwanted
thanks Stifan On Wednesday, April 24, 2019 at 8:50:27 PM UTC+2, 黄祥 wrote: > > perhaps can use conditonal if to check the controller or the function > *e.g.* > if not 'test' in request.controller and request.function == 'index' : > response.menu = [options ] > else: > response.menu

[web2py] Hiding menu when on a certain page

2019-04-24 Thread mostwanted
Is there a way to hide menu entirely when in a certain page? I know when I wanna hide menu before login its MENU if auth.is_logged_in (): response.menu = [options ] else: response.menu = [] but i wanna be able to hide menu when i go to another page. Regards; Mostwanted

Re: [web2py] Asynchronous submission of request.vars values to Controller for calculations using Ajax

2019-04-17 Thread mostwanted
I have seriously fiddled with docs code trying to bend it to my will but its not obliging, maybe its my limited programming skills but thanks for replying Ramos. Mostwanted -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source

Re: [web2py] Asynchronous submission of request.vars values to Controller for calculations using Ajax

2019-04-17 Thread mostwanted
xtend 'layout.html'}} > > > > {{extend 'layout.html'}} > > > > > > Em qua, 17 de abr de 2019 às 12:18, mostwanted > escreveu: > >> I am trying to do something that is supposed to be relatively simple, i >> want to submit a value through a form

[web2py] Asynchronous submission of request.vars values to Controller for calculations using Ajax

2019-04-17 Thread mostwanted
ot;,['name'], ':eval'); return false; }); }); *CONTROLLER:* def index(): answer=0 info=request.vars.name if info is None: info=0 if info: info=int(info) num1=200 answer=info-num1 return locals() Help!!! Mostwanted -- Resources: - http://web2py.

[web2py] How do i update a database value with a new computed value from a controller function

2019-04-15 Thread mostwanted
the Quantity column with the new value when the sale is being made. I expect to find a new Quantity value when i look at the purchased items in the database table, but that is not happening, how cn i fix this? Mostwanted -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http

[web2py] Re: Adding up values in a selected SQLFORM.grid column

2019-04-14 Thread mostwanted
Yes Dave, it is in response to pressing a button labeled total, you must be living in my mind hahaha, but thanks for the reply, i will try it out. On Sunday, April 14, 2019 at 9:29:18 PM UTC+2, Dave S wrote: > > On Sunday, April 14, 2019 at 6:25:10 AM UTC-7, mostwanted wrote: &

[web2py] Adding up values in a selected SQLFORM.grid column

2019-04-14 Thread mostwanted
I was wondering if there is a way to add up values in a desired SQLFORM.grid column? and if there is how is it performed? Mostewnted -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: Disabling Migration In Production

2019-04-08 Thread mostwanted
Thank you On Monday, April 8, 2019 at 9:01:38 PM UTC+2, Leonel Câmara wrote: > > migrate_enabled=False will disable migrations even if a table has > migrate=True, migrate=False works like the default migrate for tables. If > you don't have migrate defined at the table level they are basically

[web2py] Disabling Migration In Production

2019-04-08 Thread mostwanted
chieve that. Thank you; Mostwanted -- 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 the Google Groups &

[web2py] Re: Thank you Web2py community - I have completed a live application, ViewBase.com, using Web2py

2019-04-07 Thread mostwanted
Congratulations William, this is great stuff. Mostwanted On Friday, April 5, 2019 at 6:44:56 PM UTC+2, William wrote: > > Just writing to thank Massimo and the Web2py community, for answering all > my questions here and also building this awesome framework. > > I'm proud to say

Re: [web2py] Re: Using the results of a variable returned by one function in another function

2019-04-06 Thread mostwanted
tokens=form.vars.query.split() query=reduce(lambda a,b:a, [db.locations.name.contains(k) for k in tokens]) location=db(query).select(orderby=db.locations.name) else: location=[] return locals() Mostwanted On Wednesday, March 27, 2019 at 9:17:34 PM UTC+2, Ben Duncan

[web2py] Updating Values with the Ajax Callback funtion

2019-04-04 Thread mostwanted
,quantity = value,price = db.product(key).price) session.cart.clear() session.flash = 'Purchase Complete' redirect(URL('invoice',args=invoice)) return dict(cart=session.cart,form=form,total=total) Mostwanted -- Resources: - http://web2py.com - http://web2py.com/book (Documentat

[web2py] Re: Using the results of a variable returned by one function in another function

2019-03-28 Thread mostwanted
I put up this line rslts=db((db.business.place==results.id) & (db.business.services==request. vars.services_id)).select() The good thing is i am not getting any errors anymore but now the page is displaying nothing at all! I am not getting any results in my view *CONTROLLER* def Results():

[web2py] Re: Using the results of a variable returned by one function in another function

2019-03-28 Thread mostwanted
I put up this line rslts=db((db.business.place==results.id) & (db.business.services==request. vars.services_id)).select() The good thing is i am not getting any errors anymore but now the page is displaying nothing at all! I am not getting any results in my view *CONTROLLER* def Results():

[web2py] Re: Using the results of a variable returned by one function in another function

2019-03-28 Thread mostwanted
return locals() Mostwanted On Wednesday, March 27, 2019 at 8:42:30 PM UTC+2, Anthony wrote: > > It's not quite clear what you mean. Are these two functions two separate > controller actions? If so, it's not clear how you can share that variable, > as it is defined based on reques

[web2py] Using the results of a variable returned by one function in another function

2019-03-27 Thread mostwanted
=services rslts=db(db.business.place==results.id).select *(db.business.services==resultsARE.id)* services=len(rslts) return locals() Mostwanted -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com

[web2py] Re: selecting with IS_IN_DB()

2019-03-19 Thread mostwanted
m/forum/#!topic/web2py/MeQEA9vB-Vc>* Mostwanted On Monday, March 18, 2019 at 11:04:52 PM UTC+2, Dave S wrote: > > > > On Saturday, March 16, 2019 at 2:18:03 AM UTC-7, mostwanted wrote: >> >> >> Hi guys, i am trying out the IS_IN_DB() validator for the first time, i

[web2py] Re: Filtering through a selected group of entities with a search function

2019-03-18 Thread mostwanted
Thanks for that assistance on sessions *@ *Константин Комков, On Monday, March 18, 2019 at 9:46:14 AM UTC+2, Константин Комков wrote: > > Did you write that in db.py? > > session .connect(request >

[web2py] Re: Filtering through a selected group of entities with a search function

2019-03-18 Thread mostwanted
me in this, anyone out there please help, Massimo, Anthony...anyone. Mostwanted On Sunday, March 17, 2019 at 5:41:12 PM UTC+2, mostwanted wrote: > > I have a table of companies that offer variable services, what i want is > to enable my users to search for companies that offer a desired servic

[web2py] Filtering through a selected group of entities with a search function

2019-03-17 Thread mostwanted
y in rslts:}} {{=company.company_name}} {{pass}} I hope my question is clear. Please help me, anyone???* (sad emojis)* Mostwanted -- 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

[web2py] selecting with IS_IN_DB()

2019-03-16 Thread mostwanted
ow what do but its not. Please help me. Regards Mostwanted -- 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

[web2py] PDF view and download with a proper name

2019-03-07 Thread mostwanted
e user to:* *http://127.0.0.1:8000/pdfs/static/pdfs/pdfs.file.aaf5d3f7779841d0.6e65775f64616c5f68656c702e706466.pdf <http://127.0.0.1:8000/pdfs/static/pdfs/pdfs.file.aaf5d3f7779841d0.6e65775f64616c5f68656c702e706466.pdf>* Regards Mostwanted -- Resources: - http://web2py.com - http://web2py.com/boo

Re: [web2py] Displaying Uploaded PDF Documents

2019-03-02 Thread mostwanted
; row = db(db.*pdfs*.id <http://db.pdfdocs.id/> > ==request.args(0)).select(db.*pdfs*.fileS).first() > redirect(URL('static','pdfs',args=row.fileS)) > > > Cheers. > Chris. > > El vie., 1 de mar. de 2019 09:40, mostwanted > escribió: > >> I am attempting B

Re: [web2py] Displaying Uploaded PDF Documents

2019-03-01 Thread mostwanted
=URL('default', 'viewer'))}}*I changed the 'file' variable because it said its an "ALL" reserved SQL/NOSQL keyword What can i do to make this link redirect me without an error i'm getting?? Regards; Mostwanted On Tuesday, December 14, 2010 at 6:57:05 PM UTC+2, rochacb

[web2py] callback function

2019-02-21 Thread mostwanted
) return str(session.cart[id]) How can i avoid the page switching to cart_callback page where it shows count but still be able to choose whatever item i want as many times as i want without leaving that page?? Regards Mostwanted -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Re: Writing time without seconds

2019-02-18 Thread mostwanted
Thanks Leonel On Friday, February 15, 2019 at 12:27:17 PM UTC+2, Leonel Câmara wrote: > > You actually have to edit web2py.js in your application and then where you > have: > > $(this).timeEntry({ > spinnerImage: '' > }).attr('autocomplete', 'off'); > > > Change it too > >

[web2py] Writing time without seconds

2019-02-15 Thread mostwanted
the time appears with seconds but i don't want seconds Regards; Mostwanted -- 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] Increment the value of a variable in one page by clicking a link in a different page

2019-02-10 Thread mostwanted
Thanks alot @SP, i can really work with this On Sunday, February 10, 2019 at 7:41:33 PM UTC+2, sandeep patel wrote: > > Hello,@Mostwanted > The code is working well. Actually in your view is not displaying anything > at all because of initially items is none, so for loop will

Re: [web2py] Increment the value of a variable in one page by clicking a link in a different page

2019-02-10 Thread mostwanted
Hey @SP, my view is not not displaying anything at all, my link is not displayed!! I was working on your example above, I dont know if i am missing something. On Sunday, February 10, 2019 at 3:24:38 PM UTC+2, sandeep patel wrote: > > > @Mostwanted > I think you can achieve this f

[web2py] Increment the value of a variable in one page by clicking a link in a different page

2019-02-10 Thread mostwanted
iously coz i couldn't implement it, i only have this as an idea, if anyone understands how i could implement this please help out. Regards; Mostwanted -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.go

[web2py] Re: fixing .table appears corrupted on a compiled application

2019-02-09 Thread mostwanted
gods (nodding toward Greek mythonlogy) >> >> >>>> > Versioning systems for code, more so. > > Mostwanted, if you don't want to start with something heavy and unwieldy > as git, at the very least try Fossil <http://fossil-scm.org> > -- Resour

[web2py] Re: fixing .table appears corrupted on a compiled application

2019-02-02 Thread mostwanted
I was able to solve this, i found an old version of the app, after installing it i overwrote it with corrupt version, that gave me the option to remove the compiled version and i was able to edit the code & fix my problem. On Thursday, January 31, 2019 at 7:08:15 PM UTC+2, mostwanted w

[web2py] fixing .table appears corrupted on a compiled application

2019-01-31 Thread mostwanted
\c8b669d15150d7109e5f7ab36744a5b7_quotationClient.table appears corrupted) *but now i can not access the code because to add *migrate=False,fake_* *migrate=True *to the table! Now they can not access the saved information for all orders made What can i do Please help!!! Mostwanted -- Resources

[web2py] adding fields dynamically in web2y forms

2019-01-23 Thread mostwanted
"), Field("price", "list:integer"), format='%(product)s') In my view i want these details displayed in an html table but they appear in list format, how do i remove them from the list to display them individually na d how do i sum up those in

[web2py] Re: decremental subtraction of values in DB field

2019-01-22 Thread mostwanted
('fuelLogging', Field('ODO_Reading', 'integer'), Field('Delta', 'integer', default=0)) db.fuelLogging._before_update.append(fuelLogging_before_update()) I still have a hardtime getting results On Friday, January 18, 2019 at 8:43:36 AM UTC+2, mostwanted wrote: > > Hey Anthony, my delta

[web2py] Re: Editing a compiled app

2019-01-18 Thread mostwanted
ou use "Pack compiled" to pack just the compiled files of the app, > and then install that compiled version? If so, it does not include the > original source files. Presumably you saved the source files somewhere, > right? > > On Friday, January 18, 2019 at 8:2

[web2py] Re: Editing a compiled app

2019-01-18 Thread mostwanted
ou use "Pack compiled" to pack just the compiled files of the app, > and then install that compiled version? If so, it does not include the > original source files. Presumably you saved the source files somewhere, > right? > > On Friday, January 18, 2019 at 8:2

[web2py] Editing a compiled app

2019-01-18 Thread mostwanted
and there was no remove compiled, when i clicked on the design tab it said it can not design the app because it has been compiled. But i have to make updates on this specific app, how do I make my updates??? Please help! Regards Mostwanted -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Re: decremental subtraction of values in DB field

2019-01-17 Thread mostwanted
familiar with them! Mostwanted -- 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 the Google Groups

[web2py] Re: decremental subtraction of values in DB field

2019-01-15 Thread mostwanted
0 PM UTC+2, Anthony wrote: > > On Monday, January 14, 2019 at 2:23:32 AM UTC-5, mostwanted wrote: >> >> I am trying your formula but my Delta field is not getting updated. It is >> supposed to change as i enter a different value in ODO_Reading. >> > > Pleas

[web2py] Re: Problem with a link that displaying wrong information upon clicking

2019-01-14 Thread mostwanted
window in the background! But i do get my modal window displaying what i want! *Mostwanted* On Friday, January 11, 2019 at 8:22:50 AM UTC+2, mostwanted wrote: > > My task I want to believe is fairly simple but something is wrong in my > code, I am attempting to incorporate something I lea

[web2py] Re: decremental subtraction of values in DB field

2019-01-13 Thread mostwanted
I am trying your formula but my Delta field is not getting updated. It is supposed to change as i enter a different value in ODO_Reading. On Monday, January 14, 2019 at 6:26:09 AM UTC+2, Anthony wrote: > > On Sunday, January 13, 2019 at 10:24:03 AM UTC-5, mostwanted wrote: >> >&g

[web2py] decremental subtraction of values in DB field

2019-01-13 Thread mostwanted
'])) To get the delta field i have to subtract the previously entered ODO_Reading value from the newly entered ODO_Reading value but what i have done here is not working, any suggestions? Mostwanted -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py

[web2py] Problem with a link that displaying wrong information upon clicking

2019-01-10 Thread mostwanted
+ 'px' }).css({ 'background-color': 'rgba(0,0,0,0.6)' }).appendTo('body');$('img#close').click(function(){ $(hiddenSection).fadeOut(); });});});});{{for clients in people:}}{{=clients.name}} {{=clients.surname}}DETAILS{{=clients.age}}{{pass}}*Mostwanted -- Resources: - http://web2py.com - http

[web2py] Re: getting auth.settings.login_next = URL('function') to work

2019-01-10 Thread mostwanted
Much appreciated. Mostwanted On Thursday, January 10, 2019 at 4:36:21 PM UTC+2, Anthony wrote: > > auth.settings.login_next is just a default -- it is overridden if there is > a _next variable in the URL query string (which will be the case if the > user arrives at login page via the au

[web2py] getting auth.settings.login_next = URL('function') to work

2019-01-10 Thread mostwanted
span! I have *auth.settings.login_next = URL('function') *defined in my *db.py* and i hoped this was enough to redirect my user to the defined page at login but nothing is happening! What should i add where to get it to work?? Mostwanted -- Resources: - http://web2py.com - http://web2py.com/book (Documenta

Re: [web2py] Editing the default formstyle styles

2019-01-09 Thread mostwanted
Sorry SP the problem was in my application CSS, i tried to explain it on my follow up message which i just posted seconds after your reply. But thanks for replying! Mostwanted On Thursday, January 10, 2019 at 8:02:49 AM UTC+2, sandeep patel wrote: > > @mostwanted > In my case your cod

[web2py] Re: Editing the default formstyle styles

2019-01-09 Thread mostwanted
and the border! Sorry! False alarm! Mostwanted On Thursday, January 10, 2019 at 7:43:22 AM UTC+2, mostwanted wrote: > > Is there a way to edit and customize the default *formstyle* styling? I > am trying to place a form label on top of my sqlform.factory form with > formstyle='table3cols' &

[web2py] Editing the default formstyle styles

2019-01-09 Thread mostwanted
kens]) company=db(query).select(orderby=db.Client_Details.company) else: company=[] return locals() Mostwanted -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/

[web2py] Re: Deleting all items of a selecte ID at the same time

2019-01-07 Thread mostwanted
ent and not erasing everything in the database On Tuesday, January 8, 2019 at 12:05:15 AM UTC+2, Anthony wrote: > > On Monday, January 7, 2019 at 2:06:43 AM UTC-5, mostwanted wrote: >> >> My delete function is not working, I think I am doing doing something >> wrong but i'

[web2py] Re: Deleting all items of a selecte ID at the same time

2019-01-06 Thread mostwanted
(request.args(0, cast=int)) remove=db(db.invoice.customer==query.id).delete() if remove: redirect(URL('registeredClients')) return locals() On Sunday, January 6, 2019 at 4:35:36 PM UTC+2, Anthony wrote: > > On Sunday, January 6, 2019 at 9:15:41 AM UTC-5, mostwanted wrote: >

[web2py] Re: Web2py .exe pack custom

2019-01-06 Thread mostwanted
ains your application, which you can then use to > distribute as a standalone binary, as described here > <http://web2py.com/books/default/chapter/29/14/other-recipes#How-to-distribute-your-applications-as-binaries> > . > > Anthony > > On Sunday, January 6, 2019 at 1:56:42

[web2py] Re: Deleting all items of a selecte ID at the same time

2019-01-06 Thread mostwanted
Hey Anthony, thanks for the heads up in the garbage code in the controller i will address it, with regards to deleting invoices i want to be able to delete all invoices in the db.invoice table but only for a specific selected client. I want to be able to delete an entire invoice by clicking

[web2py] Deleting all items of a selecte ID at the same time

2019-01-06 Thread mostwanted
one at a time, is there another function i can use that will allow me to delete them all at once? By deleteng the invoice items this will delete the entire invoice allowing the user to implement a new invoice. Please help! Mostwanted -- Resources: - http://web2py.com - http://web2py.com/book (Documen

[web2py] Web2py .exe pack custom

2019-01-05 Thread mostwanted
Hi guys, can anyone please explain to me how the .exe option under pack custom works? I have tried it and after packaging and unzipping the zipped folder I wasn't sure what is should be looking for. Regards Mostwanted -- Resources: - http://web2py.com - http://web2py.com/book (Documentation

[web2py] Making my binary standalone apps function faster

2018-12-30 Thread mostwanted
Hi guys, I develop a-lot of stand alone apps with web2py but my problem is that i find the performing slower, every-time there is data entry or a query it takes a while to save information and or bring out the query results, is there a way in which i can make my apps faster? Mostwanted

[web2py] Re: Displaying textfield information with ajax() function in different pages

2018-12-29 Thread mostwanted
I have changed my controller abit according to your advice *CODE:* def echo(): session.name=request.vars.name return 'Welcome, ', session.name & in view 2 and other views i simply add {{=session.name}} and i get what I want, it works & i hope the semantics of how i used session are ok

[web2py] Displaying textfield information with ajax() function in different pages

2018-12-29 Thread mostwanted
ugal force on bends? Mostwanted -- 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 the Go

Re: [web2py] Error Handling in the view

2018-12-24 Thread mostwanted
Thank you very much SP for pointing that out, much appreciated Mostwanted On Monday, December 24, 2018 at 3:11:23 PM UTC+2, sandeep patel wrote: > > @Mostwanted > This is because of try-except block under if block. when price value has > None than if condition false. > I have t

[web2py] Error Handling in the view

2018-12-24 Thread mostwanted
In my view i have a section that does a calculation of a value plus its VAT(tax), the problem is if this value is not found i get an error like the one below: unsupported operand type(s) for *: 'NoneType' and 'float' What i want to be able to do is to be able to redirect to another page

<    1   2   3   4   5   >