[web2py] Re: FOREIGN KEY constraint failed

2017-07-18 Thread mostwanted
. On Sunday, July 2, 2017 at 10:37:22 AM UTC+2, mostwanted wrote: > > Hi guys, i need help, i'm pulling my hairs out over here, i have a website > where when i'm trying to record an entry i get an error: > FOREIGN KEY constraint failed > > > I have been able to create 2 for

[web2py] wrong home page presented

2017-07-18 Thread mostwanted
Guys i need help, i dont know what i'm doing wrong or if there is something wrong with my code, i hosted my application with pythonanywhere.com but when i go to the url *sesowa.pythonanywhere.com* i get the wrong home page where as it is this address

[web2py] Re: wrong home page presented

2017-07-18 Thread mostwanted
Yes i did On Tuesday, July 18, 2017 at 1:51:06 PM UTC+2, Marlysson Silva wrote: > > Do you clicked in "Reload webapp" in web tab view? > > Em terça-feira, 18 de julho de 2017 06:34:15 UTC-3, mostwanted escreveu: >> >> Guys i need help

[web2py] Re: wrong home page presented

2017-07-18 Thread mostwanted
Not really, http://sesowa.pythonanywhere.com/ gives a page with the logo in the top left corner and a search text field in the top right corner but this URL http://sesowa.pythonanywhere.com/init/default/index

[web2py] Re: wrong home page presented

2017-07-18 Thread mostwanted
, 2017 at 5:45:25 PM UTC+2, mostwanted wrote: > > Not really, http://sesowa.pythonanywhere.com/ gives a page with the logo > in the top left corner and a search text field in the top right corner but > this URL http://sesowa.pythonanywhere.com/init/default/index > <http://www.goo

[web2py] Re: wrong home page presented

2017-07-18 Thread mostwanted
i dont understand how that could be possible but i'll look into it On Tuesday, July 18, 2017 at 6:15:10 PM UTC+2, Leonel Câmara wrote: > > It seems to me that you have 2 web2py applications in your pythonanywhere. > One that you defined as the default application, and the init application >

[web2py] FOREIGN KEY constraint failed

2017-07-02 Thread mostwanted
+timestamp.2016.05.10.00.21.47 Traceback 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. Traceback (most recent call last): File "/home/mostwanted/web2py/gluon/restricted.py", line 227, in restricted exec ccode in environment File "/home/mostwanted/web2py/applicatio

[web2py] Re: FOREIGN KEY constraint failed

2017-07-03 Thread mostwanted
e name is spelled > "governmenttForm" (note the extra "t"), and for the field type, you have > "reference govmntForm". > > Anthony > > On Sunday, July 2, 2017 at 4:37:22 AM UTC-4, mostwanted wrote: >> >> Hi guys, i need help, i'm pulling

[web2py] Re: FOREIGN KEY constraint failed

2017-07-03 Thread mostwanted
Field('formTitle',requires=IS_NOT_EMPTY()), > Field('formName', 'reference governmenttForm > '),migrate=False,fake_migrate=True) > > Best regards > > > El lunes, 3 de julio de 2017, 4:15:18 (UTC-3), mostwanted escribió: >> >> It is the actually code

[web2py] Re: FOREIGN KEY constraint failed

2017-07-05 Thread mostwanted
creation of the table. > > A similar error ocurred to me and it was on the creation of the id's > references on the forange. But your code looks ok > > El lunes, 3 de julio de 2017, 15:50:45 (UTC-3), mostwanted escribió: >> >> this is the actual code Sant

[web2py] selecting python list elemnts without searching

2017-05-11 Thread mostwanted
Please someone out there coz I'm pulling out my hairs at this point: I want to extract pictures from within a list of elements extracted from the database and store them inside a JavaScript array for a slide show. *CONTRLOLLER* def form1Details(): form=db.compForm(request.args(0))

[web2py] Extracting values out of a python list as individual entities

2017-05-11 Thread mostwanted
Please someone out there coz I'm pulling out my hairs at this point: I want to extract pictures from within a list of elements extracted from the database and store them inside a JavaScript array for a slide show. *CONTRLOLLER* def form1Details(): form=db.compForm(request.args(0))

[web2py] Downloading and printing images a user is viewing on my website

2017-05-13 Thread mostwanted
Hi guys, how do i implement a method for printing and downloading current images a user is viewing on my website? I have a web2py project and want users to be able to either download images they are viewing and like or download them into an external device Thanks. -- Resources: -

[web2py] Getting different home pages for my App on python anywhere!!!

2017-05-09 Thread mostwanted
Hi guys, i developed an APP in web2py and hosted it with python anywhere, now when i go to the URL i seem to be getting 2 different home pages for my sesowa App.* http://sesowa.pythonanywhere.com/ * URL is giving a different page and the

[web2py] Re: Extracting values out of a python list as individual entities

2017-05-12 Thread mostwanted
ore > you need beyond the answer you accepted on Stack Overflow: > <a rel="nofollow" href="http://stackoverflow.com/a/43682846/440323">http://stackoverflow.com/a/43682846/440323</a>. > > Anthony > > On Thursday, May 11, 2017 at 6:51:34 AM UT

[web2py] Turning a web2py App in to an installable stand alone desktop App

2017-05-06 Thread mostwanted
Hi guys, how can I make a web2py App into an installable desktop stand alone App? -- 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

[web2py] saving PDF documents in my database and displaying them

2017-06-28 Thread mostwanted
Hi guys can you please help me, i need assistance saving PDF documents in my database and displaying those PDF documents at the click of a link. Thank you -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

Re: [web2py] Open a form (form=SQLFORM(db.marks)) for a selected person by clicking on a link of their name

2017-10-23 Thread mostwanted
://stu.id>* > form=SQLFORM(db.marks) > return locals(); > > 2017-10-22 8:59 GMT-03:00 mostwanted <godir...@gmail.com >: > >> Hi guys, i need help, I'm creating a simple results management system for >> a school and I've hit a stumbling block, what i wanna do

[web2py] Failing calculate the average

2017-11-14 Thread mostwanted
i'm failing to calculate avarage on my web2py application But its supposed to be very simple, i have been able to calculate the percentages for all the marks now i want to add up all those percentages and divide them by the number of subjects, get the avarage percentage and grade a

[web2py] Re: How can i use incremental addition to add altogether the values using computing fields method

2017-11-27 Thread mostwanted
hahahaha they get what they deserve, *garbage in garbage out*, thanks. On Monday, November 27, 2017 at 4:41:20 PM UTC+2, Pierre wrote: > > here: > > http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#sum--avg--min--max-and-len > > > and don't be too severe with your

[web2py] Re: How can i use incremental addition to add altogether the values using computing fields method

2017-11-27 Thread mostwanted
On Monday, November 27, 2017 at 4:41:20 PM UTC+2, Pierre wrote: > > here: > > http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#sum--avg--min--max-and-len > > and don't be too severe with your students... > I am having an issue, in the process of calculating

[web2py] Re: CREATING A SCHEDULED DATABASE BACKUP

2017-11-28 Thread mostwanted
I'll try that and see how it works out, thanks. On Saturday, November 25, 2017 at 11:38:58 AM UTC+2, 黄祥 wrote: > > just an idea, why not use the backup database schedule to the system > backup (cron, bacula, etc) to lower database web2py io? > > best regards, > stifan > -- Resources: -

[web2py] Storing the value of a calculation in my db table

2017-11-25 Thread mostwanted
Is it possible to store the definition of the calculation of a value in a table so that the value of that column is different every-time for all the different entries? For an example say i have the first value A and the second value B and have C as (the sum of A and B) stored in a column but as

[web2py] CREATING A SCHEDULED DATABASE BACKUP

2017-11-24 Thread mostwanted
I have two questions but its basically about database backups *QUESTION 1* I am trying to create a scheduled database back-up but i am failing can someone help me and correct my script, I used a sleep time of 10seconds because i wanted to witness it happen on real time import StringIO import

[web2py] Re: How to distribute your applications as binaries¶

2017-11-23 Thread mostwanted
Oh its working!! I eliminated the *set interfaces and set port *lines and remained with the *set command *line and it opened On Thursday, November 23, 2017 at 9:35:08 AM UTC+2, mostwanted wrote: > > When i run my .bat file it just flashes a black console and then closes, > it doesn'

[web2py] Re: How to distribute your applications as binaries¶

2017-11-23 Thread mostwanted
! On Thursday, November 23, 2017 at 8:42:16 AM UTC+2, Dave S wrote: > > > > On Wednesday, November 22, 2017 at 9:19:51 PM UTC-8, mostwanted wrote: >> >> Hi guys, i am trying to make my application a widnows desktop app, (i'm >> from Ubuntu), i'm reading the steps in the link

[web2py] Re: How to distribute your applications as binaries¶

2017-11-22 Thread mostwanted
=0.0.0.0 set port=8000 start %command% --interfaces=%interfaces% --p=%port% What am I missing or messing up?? On Thursday, November 23, 2017 at 8:37:19 AM UTC+2, 黄祥 wrote: > > On Thursday, November 23, 2017 at 12:19:51 PM UTC+7, mostwanted wrote: >> >> Hi guys, i am trying to m

[web2py] How to distribute your applications as binaries¶

2017-11-22 Thread mostwanted
Hi guys, i am trying to make my application a widnows desktop app, (i'm from Ubuntu), i'm reading the steps in the link below http://web2py.com/books/default/chapter/29/14/other-recipes#How-to-distribute-your-applications-as-binaries

[web2py] How do u get rid of the choose a password prompt screen?

2017-11-23 Thread mostwanted
I have been able to create a web2py desktop app thanks to alot of assistance from others in the group. What i asked and never got an answer to is Isn't there a way to eliminate the web2py screen that prompts me to *choose a password *every-time i run my .bat file*, *can't i specify the

[web2py] Are we still like to experience the corrupt tables error solved by fake_migrate with this version

2017-11-28 Thread mostwanted
With some earlier versions of web2py, the APPS we created used to experience *corrupt tables error* and back then we'd advised to put migrate=False,fake_migrate=True line before closing the table definition. My question is has this issues been addressed with the latest versions like the

[web2py] Re: Are we still like to experience the corrupt tables error solved by fake_migrate with this version

2017-11-29 Thread mostwanted
On Thursday, November 30, 2017 at 1:40:05 AM UTC+2, Dave S wrote: > > > > On Tuesday, November 28, 2017 at 9:37:38 PM UTC-8, mostwanted wrote: >> >> With some earlier versions of web2py, the APPS we created used to >> experience *corrupt tables error* and

[web2py] How to position students based on their total averages

2017-11-30 Thread mostwanted
I'm at the brink of pulling my hairs out!!! Can please please someone out there help me, in my results management system i want to add up the students averages and give the their class positions and level positions according to how their averages add up. Number 1 being the one with position 1

[web2py] Re: How to position students based on their total averages

2017-11-30 Thread mostwanted
On Thursday, November 30, 2017 at 12:03:06 PM UTC+2, tim.n...@conted.ox.ac.uk wrote: > > I think you need to give a bit more context. What are your model > definitions for db.student_class and db.marks? Does each student have > multiple rows in the marks table? > *THESE ARE MY MODEL

[web2py] How can i use incremental addition to add altogether the values using computing fields method

2017-11-27 Thread mostwanted
I am trying to add up values in my DB, in the averages column to end up with a summed up value of total averages, i chose the computing fields methods but i'm not familiar with it, i am not getting the values i need, i keep getting null in my DB. db.define_table('marks',

[web2py] Re: How to position students based on their total averages

2017-11-30 Thread mostwanted
ect( > db.marks.avg().with_alias('average_marks'), > groupby=db.marks.student, > orderby=~db.marks.avg() > ) > > return locals() > > Then you can find the position in the rowset. > OK thanks, i'll try this out & i really really hope it helps me c

[web2py] Re: Glyphicons not showing

2017-12-17 Thread mostwanted
Thank you On Saturday, December 16, 2017 at 11:48:51 PM UTC+2, Massimo Di Pierro wrote: > > Will be fixed in next version of web2py. Problem is that class names are > different... need to rename them all. > > On Thursday, 7 December 2017 16:45:50 UTC-6, Alex Glaros wrote: >> >> From another

[web2py] In an APP with many accounts How do i get users to open only their accounts at login?

2017-12-19 Thread mostwanted
I want to create an application that has 2 accounts, account_A & account_B and a login page, i want every user to be directed to their specific account at login, account_A user should see only all the account_A details and information when they successfully login and not account_B information.

[web2py] Selecting attributes of an item from a database and have them displayed in a DIV by clicking a link

2017-12-13 Thread mostwanted
I'm a tourist with JavaScript & right now I'm trying to achieve something with JQuery but there is something wrong with my code i cant figure it out, i need help. I'm creating a simple point of sale system, I have a list of sold items in my database and i am placing them as a menu of links of

[web2py] Getting wrong Results with my grading system

2017-11-18 Thread mostwanted
I am getting wrong results with my grading system, i think this is more of a syntax problem, i just don't know where I'm mixing up things. My system is supposed to give students grades depending on what percentages they got but the grades do not correspond well with the percentages. I'm

Re: [web2py] Getting wrong Results with my grading system

2017-11-18 Thread mostwanted
ttp://subbaraman.wordpress.com/about/ > > On 18-Nov-17 1:37 PM, mostwanted wrote: > > > I am getting wrong results with my grading system, i think this is more > of a syntax problem, i just don't know where I'm mixing up things. My > system is supposed to give studen

[web2py] Re: Getting wrong Results with my grading system

2017-11-18 Thread mostwanted
I want grade 'A' to fall within a range of percentages, 'A' ranges from 80%(being the lowest) to 100%(being the highest), how do i reflect that here to get the system to grade properly?? On Saturday, November 18, 2017 at 11:05:02 AM UTC+2, Jose C wrote: > > Simple logic error... > > Your first

[web2py] Re: Getting wrong Results with my grading system

2017-11-18 Thread mostwanted
Thanks for the {{pass}} clarification, its clear now On Saturday, November 18, 2017 at 2:38:28 PM UTC+2, Anthony wrote: > > > And I'd also be grateful if someone just simple explained what {{pass}} >> does in web2py and where do we place it because i find myself placing it in >> wrong places

[web2py] Re: Getting wrong Results with my grading system

2017-11-19 Thread mostwanted
WOOOW!!! Thank you Jose i have been switching the signs, i have been using *> *as small than and *< *as greater than,i do not know when all this information got mixed up in my head but it took your words to pay close attention & realize my error. Thank you. *And honestly its not an

[web2py] Re: Getting wrong Results with my grading system

2017-11-18 Thread mostwanted
7 at 9:15:36 AM UTC-5, mostwanted wrote: >> >> I want grade 'A' to fall within a range of percentages, 'A' ranges from >> 80%(being the lowest) to 100%(being the highest), how do i reflect that >> here to get the system to grade properly?? >> > > if perc >

[web2py] Re: Failing calculate the average

2017-11-15 Thread mostwanted
U were right man, i calculated my average right below the {{pass}} and now it is able to increment and do the average of course i changed the variables to total and average. Thanks alot Tony On Wednesday, November 15, 2017 at 5:36:19 PM UTC+2, Anthony wrote: > > {{ >> average=0for report in

[web2py] Getting wrong results for my modal window

2017-11-05 Thread mostwanted
Hi guys, what i want my code to do is to open a modal window everytime i click a link which is a name and that modal window should open with the details of that name but that is not happening!! Instead only one link which is the first link can open the modal window but with the wrong details,

[web2py] Glyphicons not showing

2017-12-07 Thread mostwanted
I upgraded to the 2.16.1-stable+timestamp.2017.11.14.05.54.25 version of web2py but i seem not to be able to get my glyphicons to appear! Could i be doing something wrong Thanks -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py

[web2py] name 'average' is not defined

2017-10-29 Thread mostwanted
*I AM TRYING TO CALCULATE THE AVARAGE IN AMY VIEW, I ADDED A VARIABLE CALLED average TO HOLD THE RESULTS OF THE AVAERAGE CALCULATIONS BUT I KEEP GETTING THIS ERROR: name 'average' is not definedI DONT UNDERSTAND WHAT I'M DOING

[web2py] Re: name 'average' is not defined

2017-10-29 Thread mostwanted
A thanks Tony, it worked, i initialized the variable at the top On Monday, October 30, 2017 at 3:18:06 AM UTC+2, Anthony wrote: > > > > On Sunday, October 29, 2017 at 2:24:47 AM UTC-4, most

[web2py] Re: IntegrityError('FOREIGN KEY constraint failed',)

2017-10-25 Thread mostwanted
for allowing me to figure this one out* On Wednesday, October 25, 2017 at 9:55:28 AM UTC+2, mostwanted wrote: > > > > *WHEN I TRY ENTERING A STUDENT'S DETAILS AND SELECTING THEIR GUARDIAN AS > FROM THE DROP DOWN MENU AS REFERNCED I GET A FOREIGN CONSTRAINT FAILED > ERRO

[web2py] Re: IntegrityError('FOREIGN KEY constraint failed',)

2017-10-25 Thread mostwanted
2017 at 9:55:28 AM UTC+2, mostwanted wrote: > > > > *WHEN I TRY ENTERING A STUDENT'S DETAILS AND SELECTING THEIR GUARDIAN AS > FROM THE DROP DOWN MENU AS REFERNCED I GET A FOREIGN CONSTRAINT FAILED > ERROR MESSAGEMY TABLES* > > db.define_table('guardian', >

[web2py] GETTING THE WRONG RESULTS

2017-10-24 Thread mostwanted
*Hi guys, I'm faced with a little problem, I'm developing a results management system for a school, in the report preparation page i want there to be displayed the student's percentage pass for a subject as well as their grade for that subject, now the problem is nothing gets when i write

[web2py] Re: GETTING THE WRONG RESULTS

2017-10-24 Thread mostwanted
t; {{pass}} statements? > > In the snippet you included I see 3 {{pass}} statements but only 2 > conditional statements. Can you include the entire file? Also, are you > getting a traceback error? > > -Jim > > On Tuesday, October 24, 2017 at 11:01:22 AM UTC-5, mostwanted wr

[web2py] Re: GETTING THE WRONG RESULTS

2017-10-24 Thread mostwanted
l file. > > -Jim > > On Tuesday, October 24, 2017 at 11:58:33 AM UTC-5, mostwanted wrote: >> >> By entire file you mean including the models and controllers? >> >> I am not getting any Traceback error, the results are just not displaying! >> >> On Tues

[web2py] IntegrityError('FOREIGN KEY constraint failed',)

2017-10-25 Thread mostwanted
ile', args=students.id))}} | {{=students.surname}} {{=students.name}} {{=students.class_name.class_name}} {{=students.guardian.guardian}} {{pass}} *MY TRACEBACK ERROR* FOREIGN KEY constraint failed Traceback (most recent call last): File "/home/mo

[web2py] Open a form (form=SQLFORM(db.marks)) for a selected person by clicking on a link of their name

2017-10-22 Thread mostwanted
Hi guys, i need help, I'm creating a simple results management system for a school and I've hit a stumbling block, what i wanna do is be able to open a form to make detail entries of a specific individual and this is how i want to do it, i wanna click on the specific individual's name and have

[web2py] Menu option on We2py 2.16.1-stable doesnt open on cellphones

2018-05-24 Thread mostwanted
Hi guys, my menu is not opening on cellphones, i can not access my menu when i open my website on a cell phone, i am using 2.16.1-stable version. Is there something wrong with this version or the problem is my application? Thanks -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Re: Menu option on We2py 2.16.1-stable doesnt open on cellphones

2018-05-24 Thread mostwanted
. Thank you guys. On Thursday, May 24, 2018 at 6:37:58 PM UTC+2, mostwanted wrote: > > Hi guys, my menu is not opening on cellphones, i can not access my menu > when i open my website on a cell phone, i am using 2.16.1-stable version. > Is there something wrong with this version or

[web2py] DISPLAYING LINK DETAILS INTO ANOTHER DIV USING (args=variable.id)

2018-01-08 Thread mostwanted
My task is very simple but i do not know how carry it out I have 2 DIVs namely *#names* and *#details*, there is a list of names in link format in DIV *#names*, what I want is that when i click on any of these links i want the rest of that link's details to be displayed in DIV *#details* in the

[web2py] web2py mobile interface

2018-01-08 Thread mostwanted
Hi guys, where can i find good web2py mobile interface tutorials and some applications that are using it? I wanna try it out but its giving me a hard time, and if anyone has used it and are willing to give out pointers i'd really appreciate it. Thanks -- Resources: - http://web2py.com -

[web2py] Re: DISPLAYING LINK DETAILS INTO ANOTHER DIV USING (args=variable.id)

2018-01-08 Thread mostwanted
ws#A. > You can use either (1) the "callback" and "target" arguments or (2) the > "cid" argument in conjunction with an Ajax component > <http://web2py.com/books/default/chapter/29/12/components-and-plugins#Components--LOAD-and-Ajax> > . > > Anth

[web2py] decorator() takes exactly 1 argument (0 given)

2018-01-12 Thread mostwanted
Lately i am experiencing this error: * decorator() takes exactly 1 argument (0 given)* but i do not understand what it stems from, here is the controller below: def Company_Update(): details=db(db.company).select(db.company.ALL) details2=db(db.company).select(db.company.ALL) for dtls

[web2py] Downloading ALL images in a table at once

2018-02-04 Thread mostwanted
I have a table which stores different images of different places, what i want is for the site users to be able to download all the images of a selected place by clicking the download button without having to download the images one at a time. How can i achieve this?? I tried this below:

[web2py] Re: Downloading ALL images in a table at once

2018-02-07 Thread mostwanted
ome javascript magic. Since it is a bit of > non-standard way of doing things I've never attempted... > > -Jim > > > On Sunday, February 4, 2018 at 4:00:13 PM UTC-6, mostwanted wrote: >> >> I have a table which stores different images of different places, what i >&g

[web2py] A web2py image slide show

2018-01-03 Thread mostwanted
Hi guys, complements of the new season to you all. Can anyone tell where i can find a simple web2py image slide show that's manually navigated with buttons? Thanks. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] reference gives error table company has no column named....

2018-08-30 Thread mostwanted
I have a database which i recently updated by adding a new table called *tlamelo*, the new table is referenced in one of the old tables called *company, *when i try to save data into the table *company* i get the error bellow *(table company has no column named tlamelo)!* I do not understand

[web2py] Getting wrong results from a tootip after a for loop ina a view

2018-09-10 Thread mostwanted
I have contact details of different places in my DB, the names of these different places are displayed as links in a page, what i want is for the contact details of a place to be displayed in a tooltip when i click on the link name of that place. But that is not happening! What happens is

[web2py] How to hide the the SQLFORM.grid results until a search is done & returns something

2018-10-08 Thread mostwanted
t;https://groups.google.com/forum/#!newtopic/web2py/web2py/9_Lz5VWb80A>* I was hoping there was a way to also hide the results and only display them when a search returns something. Regards Mostwanted -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.

[web2py] Re: How to set my menu to hamburger menu for tablet devices when they open my webapp

2018-10-13 Thread mostwanted
Thanks Dave On Friday, October 12, 2018 at 9:37:07 PM UTC+2, Dave S wrote: > > > > On Friday, October 12, 2018 at 3:06:58 AM UTC-7, mostwanted wrote: >> >> Can anyone assist me in figuring out how to set my menu to hamburger menu >> for tablet devices when th

[web2py] Infringement issues over creating licenced sofware with web2py

2018-10-17 Thread mostwanted
Hi guys, i wanna know if there would be any infringement issues if i created licensed standalone software using the web2py framework. Will i be overstepping some copyright laws which will make me liable to be penalized?? Regards: Mostwanted -- Resources: - http://web2py.com - http

[web2py] Re: Infringement issues over creating licenced sofware with web2py

2018-10-18 Thread mostwanted
hahahaha thanks Leonel, i wont be a "dick"thanks for the clarification. On Thursday, October 18, 2018 at 4:32:01 PM UTC+2, Leonel Câmara wrote: > > No you don't need to worry, web2py is LGPL licensed which means that you > may: > > - redistribute web2py with your apps (including official

[web2py] Re: How to get members of groups to view only what their group members post

2018-10-22 Thread mostwanted
Yes i am using group memberships in my Auth tables On Monday, October 22, 2018 at 8:58:06 AM UTC+2, Dave S wrote: > > > > On Saturday, October 20, 2018 at 12:30:07 PM UTC-7, mostwanted wrote: >> >> I can get registered users to view only what they post and not wha

[web2py] My SQLFORM() is not saving anything after putting my APP online

2018-10-19 Thread mostwanted
("Record Made") elif form.errors: response.flash = T('Error') return locals() *I am using web2py version **2.17.2:* I am mentioning this but i don't know if it will help. Is there something wrong with my above code? Regards: Mostwanted -- Resources: - http://web2py.

[web2py] How to set my menu to hamburger menu for tablet devices when they open my webapp

2018-10-12 Thread mostwanted
something but I came out blank, maybe i don't know what i am looking for. 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

[web2py] Re: Creating a CSV backup for the database file in the app

2018-10-24 Thread mostwanted
() Regards Mostwanted On Tuesday, October 23, 2018 at 10:11:55 PM UTC+2, Dave S wrote: > > > > On Tuesday, October 23, 2018 at 11:44:41 AM UTC-7, mostwanted wrote: >> >> I have a folder in my desktop that contains a CSV file that backs up >> information

[web2py] Creating a CSV backup for the database file in the app

2018-10-23 Thread mostwanted
Please observe the form!") return locals() 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 becaus

[web2py] Re: Creating a CSV backup for the database file in the app

2018-10-24 Thread mostwanted
I got the answer here: https://stackoverflow.com/questions/52976228/accessing-and-importing-data-from-a-private-csv-file-using-os-path-join/52981326#52981326 Regards: Mostwanted On Wednesday, October 24, 2018 at 3:01:52 PM UTC+2, mostwanted wrote: > > I am able to save some infor

[web2py] Re: reference gives error table company has no column named....

2018-10-25 Thread mostwanted
. >6. Remove the comment from #2 above and run another request -- pyDAL >will now create the missing field. > > Anthony > > On Thursday, August 30, 2018 at 4:13:02 PM UTC-4, mostwanted wrote: >> >> I have a database which i recently updated by adding a new t

[web2py] Selecting a single item's entity with $('').clicking(function(){}

2018-10-31 Thread mostwanted
ot;).val()) != "" && !isNaN($(".num1").val())) ? parseFloat($(".num1").val()) : 1;var $price=($.trim($("#price").html()) != "" && !isNaN($("#price").html())) ? parseFloat($("#price").html()) : {{=product.pric

Re: [web2py] Re: reference gives error table company has no column named....

2018-10-25 Thread mostwanted
25 Oct 2018, 13:52 mostwanted > > wrote: > >> If i delete it from the database folder and refresh my browser with the >> table using the same name will it not throw the *table exists *error? >> >> On Thursday, October 25, 2018 at 11:13:31 AM UTC+2, Lovedie JC wr

[web2py] Re: mobile friendly login page

2018-10-25 Thread mostwanted
The attachment link gives *error 404* On Thursday, October 25, 2018 at 2:06:15 PM UTC+2, lbjc...@gmail.com wrote: > > The default login page on the desktop looks absolutely good. The mobile > page,see attached needs some workup. Is there a way to align the buttons? > Regards > -- Resources: -

[web2py] How to strip away and get rid of (… days, 0:00:00) from a value acquired from a date calculation

2018-10-25 Thread mostwanted
', 'date'), Field('days', compute=lambda r: r['Bookout']-r['Bookin']), Field('guests', 'integer'),Field('price', compute=lambda r: r['days']*r['guests']*650))* Regards: Mostwanted -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http

[web2py] Unable to update database entry after compute=lambda r: calculation of some field values in the DB

2018-10-25 Thread mostwanted
Field('Amount', compute=lambda r: r['Days']*r[ 'Number_of_Guests']*650)) *UPDATE CONTROLLER:* def clientUpdate(): details=db.ClientDetails(request.args(0, cast=int)) form=SQLFORM(db.ClientDetails, details.id, deletable=True, showid=False ).process() return locals()

Re: [web2py] Re: Unable to update database entry after compute=lambda r: calculation of some field values in the DB

2018-10-26 Thread mostwanted
was using. Regards Mostwanted On Friday, October 26, 2018 at 7:20:22 AM UTC+2, sandeep patel wrote: > > I think there is a problem in field type in Days because the default is a > string so days have a string value, you are multiplying string with an > integer in the computed fi

Re: [web2py] How to strip away and get rid of (… days, 0:00:00) from a value acquired from a date calculation

2018-10-25 Thread mostwanted
It works SP, thank you. Regards: Mostwanted On Thursday, October 25, 2018 at 7:17:03 PM UTC+2, sandeep patel wrote: > > > > > > > > > *You can directly count days from date type.this belongs to datetime > class.db.define_table('hotels',Field('Hotel'

Re: [web2py] Re: reference gives error table company has no column named....

2018-10-25 Thread mostwanted
rename it > brhe refresh or restart web2py. > > On Thu, 25 Oct 2018, 09:36 mostwanted > > wrote: > >> When i do all this it gives me error saying table Customer exists! >> >> On Friday, August 31, 2018 at 2:53:18 AM UTC+2, Anthony wrote: >>> >>>

[web2py] Re: Selecting a single item's entity with $('').clicking(function(){}

2018-11-02 Thread mostwanted
: > > > > On Wednesday, October 31, 2018 at 1:45:16 AM UTC-7, mostwanted wrote: >> >> I am trying to create a simple point of sale system but i am having a >> hard time selecting an items, their prices and adding them up in a selected >> DIV. I am not doing something right, could

[web2py] Re: Unable to update database entry after compute=lambda r: calculation of some field values in the DB

2018-10-25 Thread mostwanted
With this one there was no error traceback, the form just failed to submit showed a message that read *Error in form, please check it out *and i do have a field Number_of_Guests i just didnt include it coz i thought i was minimizing the whole code to show what could the root cause of the

[web2py] Making a calculation of two database fields set a value for the third database field

2018-10-20 Thread mostwanted
w can i achieve this in web2py? *Model:* db.define_table('logging', Field('startingDistanceValue','integer', requires= IS_NOT_EMPTY()), Field('endingDistanceValue','integer', requires=IS_NOT_EMPTY ()), Field('distanceTravelled')) Regards: Mo

Re: [web2py] My SQLFORM() is not saving anything after putting my APP online

2018-10-20 Thread mostwanted
se.flash = T('Error') > return locals() > > In *form.process().**accepted *does not need request.vars and session > arguments. > > Best/ > sp > > On Fri, Oct 19, 2018 at 6:27 PM mostwanted > wrote: > >> Before taking my application online i was able to

Re: [web2py] Making a calculation of two database fields set a value for the third database field

2018-10-20 Thread mostwanted
time summited form distanceTravelled field calculated automatically. > > Best > SP > > On Sat, Oct 20, 2018 at 2:46 PM mostwanted > wrote: > >> I was hoping to get assistance here, i have a database table called* >> (logging)* that has 3 fields, *(startingDistan

[web2py] How to get members of groups to view only what their group members post

2018-10-20 Thread mostwanted
: {{=details.posted_by.first_name}} {{pass}} How can I change my *details controller* to be able to achieve the above 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

[web2py] Re: Request for direction to benchmark

2018-11-07 Thread mostwanted
Hey Stifan, i did look at it but id dint quite find what i was looking for but thanks for the suggestion. On Thursday, November 8, 2018 at 1:28:30 AM UTC+2, 黄祥 wrote: > > perhaps you can check on web2py appliances, there are some examples of that > ref: >

[web2py] Re: Request for direction to benchmark

2018-11-08 Thread mostwanted
I think you are right, i complicated the UI from the jump now i cant finish it, I should lay a more flexible foundation. On Thursday, November 8, 2018 at 10:19:39 AM UTC+2, Dave S wrote: > > > > On Wednesday, November 7, 2018 at 10:29:49 PM UTC-8, mostwanted wrote: >> >>

[web2py] Summing up values in a dabase table with compute r: r[' ']

2018-11-10 Thread mostwanted
[ 'quantity']), *Field('Total', writable=False, compute=lambda r: (r['totalPrice']).sum()))* 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

[web2py] HOW TO SET A DEFAULT VALUE FOR A TABLE REFERENCED IN ANOTHER TABLE

2018-11-08 Thread mostwanted
it doesn't need a code example. 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

[web2py] Request for direction to benchmark

2018-11-07 Thread mostwanted
i will be more than willing to send you what i have done to help me execute sales and save them. 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

[web2py] Glyphicons still not showing in version 2.17.1-stable

2018-11-07 Thread mostwanted
Was a solution ever provided/created for the not appearing glyphicons? Massimo promised a solutions to this last year (2017): https://groups.google.com/forum/#!msg/web2py/CSA-p4OSKM0/mziFoZ3KBQAJ;context-place=topic/web2py/Eii2yOpd_TU Whats the way around this problem? Mostwanted

Re: [web2py] '<'

2018-11-14 Thread mostwanted
I had to re-create my database from scratch too, i don't know where this error came from. Thanks for replying. Mostwanted On Wednesday, November 14, 2018 at 11:02:00 AM UTC+2, Lovedie JC wrote: > > I used to get such esp. when on of my files was corrupted in the > databases. > I

[web2py] How to convert my view to pdf

2018-11-14 Thread mostwanted
/lucasdavila/web2py-appreport/wiki/Docs-and-examples but the results are not what i want. I wanna have a button on my view which when i click converts that view in to pdf straight away and have it saved. Is this possible and if so how can i achieve it? (Smiles :) Mostwanted. -- Resources

  1   2   >