[web2py] Re: How to solve '\x00' error

2018-12-09 Thread mostwanted
Can you please explain further Leonel? On Wednesday, December 5, 2018 at 1:02:22 AM UTC+2, Leonel Câmara wrote: > > The application should be running with migration disabled in production in > which case this won't happen. > -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Re: How to solve '\x00' error

2018-12-03 Thread mostwanted
What concerns me is that I developed a standalone application with web2py & every-time there is a sudden power cut which is an issue in my area, when switching on a computer to continue using the application we find that the application has crushed! Isn't there a away to avoid the application

[web2py] Using a value of one table as a default value of another table

2018-12-01 Thread mostwanted
efault=request.now,writable= False)) 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 t

[web2py] Re: How to solve '\x00' error

2018-12-01 Thread mostwanted
type meanwhile saving information in it. The other involves partial committing of complex transaction. I haven't encountered any of these so i'm still trying to figure out where my error falls & how I can apply the given solutions. Mostwanted On Saturday, December 1, 2018 at 11:39:18 AM U

[web2py] Re: How to solve '\x00' error

2018-12-01 Thread mostwanted
Please refer me, what page, I will be lying if i said i looked it up! On Saturday, December 1, 2018 at 11:09:02 AM UTC+2, Val K wrote: > > It seems that dal-metafiles are broken. Did you try to fix it as the book > suggests? -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] How to solve '\x00' error

2018-11-30 Thread mostwanted
There was a electrical power cut in my area today, it happened while i was working on my application. When the power returned & I tried to continue with my application I got this error: *"'<'type 'exceptions.KeyError'> '\x00'"* Now my application is NOT working! This is not the first time, i

[web2py] Re: Restricting values entered into a field to a certain minimum

2018-11-27 Thread mostwanted
I'll give it a go On Sunday, November 25, 2018 at 12:58:34 PM UTC+2, Val K wrote: > > Note that you can just turn requires into list and prepend it with > IS_NUMBER validator -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source

[web2py] Re: Restricting values entered into a field to a certain minimum

2018-11-25 Thread mostwanted
Well its a miracle! coz now it works! Thanks Val K -- 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] Re: Restricting values entered into a field to a certain minimum

2018-11-25 Thread mostwanted
I initially tried converting but it didnt work but let me try it again, i moved the validator code to a different directory, i'll be importing it from modules, maybe it will work when i convert this time around. On Sunday, November 25, 2018 at 11:27:00 AM UTC+2, Val K wrote: > > Maybe convert

[web2py] Re: Restricting values entered into a field to a certain minimum

2018-11-25 Thread mostwanted
i am facing now is that the validator disqualifies every value i enter even those greater than 10! When i change the comparison operator to greater than it accepts everything! If anyone sees the problem please point it out to me, thank you. Mostwanted On Sunday, November 25, 2018 at 9:51:18 AM UTC+2,

[web2py] Re: Restricting values entered into a field to a certain minimum

2018-11-24 Thread mostwanted
I ended up creating my custom validator, to handle this situation. On Friday, November 23, 2018 at 2:55:03 PM UTC+2, mostwanted wrote: > > How can I restrict a value entered into a database field to a certain > desirable minimum? > > -- Resources: - http://web2py.com - http://

[web2py] Restricting values entered into a field to a certain minimum

2018-11-23 Thread mostwanted
How can I restrict a value entered into a database field to a certain desirable minimum? -- 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] 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

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] Re: Summing up values in a dabase table with compute r: r[' ']

2018-11-12 Thread mostwanted
Thanks Stifan On Monday, November 12, 2018 at 9:29:50 PM UTC+2, 黄祥 wrote: > > perhaps you can learn from web2py appliance: pos > if i'm not wrong the code to calculate for sum is on the controller side > > ref: > https://github.com/mdipierro/web2py-appliances/ > > best regards, > stifan > --

[web2py] '<'

2018-11-12 Thread mostwanted
I'm pulling my hairs out over this error, it occurred from no where & I cant make sense of it because i had not made any updates to my code & got this error Here is the traceback if anyone can figure something out please help me, thank you in advance. Ticket ID

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

2018-11-12 Thread mostwanted
I wanted to create an Invoice for clients orders, i wanted to be able to do all the calculations of the costs of their services as I enter values into the database. But I kinda found a way around this coz it was giving me a headache, so i decided to calculate the total in the controller like i

[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] Re: HOW TO SET A DEFAULT VALUE FOR A TABLE REFERENCED IN ANOTHER TABLE

2018-11-09 Thread mostwanted
Thanks On Friday, November 9, 2018 at 2:14:55 PM UTC+2, tim.n...@conted.ox.ac.uk wrote: > > You set the default in client: > > db.define_table( > 'client', > Field('city', db.city, default='Value here'), > ) > > > On Friday, 9 November 2018 04:59:23 UTC, mos

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

2018-11-09 Thread mostwanted
ame of your app* > /static/images/*your picture name*.png);background-repeat: no-repeat;} > > [image: ic.png] > HTML > class="glyphicon-user">Профиль > > среда, 7 ноября 2018 г., 12:43:53 UTC+3 пользователь mostwanted написал: >> >> Was a solution ever p

[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] 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] 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] 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

[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] 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: 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

[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] 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] 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'

[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] 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: -

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

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: 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] 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: 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: 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] 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

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] 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

[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] 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] 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: 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] 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] 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: Reading information from an external CSV file through SQLFORM.smartgrid

2018-10-04 Thread mostwanted
'my_csv_temp_table', ...) > temp_db.my_csv_temp_table.import_from_csv_file(...) > grid = SQLFORM.smartgrid(temp_db.my_csv_temp_table) > > Anthony > > On Wednesday, October 3, 2018 at 10:20:00 AM UTC-4, mostwanted wrote: >> >> I like the first suggestion* (You could import into a &g

[web2py] Re: Reading information from an external CSV file through SQLFORM.smartgrid

2018-10-04 Thread mostwanted
Yes it is Dave On Wednesday, October 3, 2018 at 11:10:53 PM UTC+2, Dave S wrote: > > > > On Wednesday, October 3, 2018 at 12:15:36 AM UTC-7, mostwanted wrote: >> >> Is it possible for me read information from a CSV file saved somewhere in >> my comput

[web2py] Re: Reading information from an external CSV file through SQLFORM.smartgrid

2018-10-03 Thread mostwanted
t; Anthony > > On Wednesday, October 3, 2018 at 3:15:36 AM UTC-4, mostwanted wrote: >> >> Is it possible for me read information from a CSV file saved somewhere in >> my computer into my application through SQLFORM.smartgrid without uploading >> the CSV file into t

[web2py] Reading information from an external CSV file through SQLFORM.smartgrid

2018-10-03 Thread mostwanted
Is it possible for me read information from a CSV file saved somewhere in my computer into my application through SQLFORM.smartgrid without uploading the CSV file into the application? Regards Mostwanted -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http

[web2py] Re: Object not found

2018-09-28 Thread mostwanted
On Friday, September 28, 2018 at 1:40:56 PM UTC+2, mostwanted wrote: > > Hey Matthew, i have another view called viewPurchases that has a link that > sends my args to the client_update controller, i didnt include it in the > above code i thought is wasn't important i

[web2py] Re: Object not found

2018-09-28 Thread mostwanted
> client=request.args(0,cast=int) > > > > > > > On Friday, September 28, 2018 at 8:04:57 AM UTC+2, mostwanted wrote: >> >> I have 3 table, Items, Client & Purchases, the Client table stores the >> details of the customer, the items table has a list of sold items and

[web2py] Object not found

2018-09-28 Thread mostwanted
ails in one view by clicking on the owner's name but i keep getting the *Object not found *message caused an attempt at opening an edit for the Purchases table, what am i doing wrong, is there a better way of doing this? Regards Mostwanted *MODELS* db.define_table('Customer', F

[web2py] Re: How can i select an item from the database only once?

2018-09-27 Thread mostwanted
Thank you Dave but this URL https://web2py.com/boobs/default/29/07/forms-and-validators#SQLFORM-and-insert-update-delete

[web2py] Re: How to capture auth_user login time & logout time

2018-09-27 Thread mostwanted
Thank you guys On Thursday, September 27, 2018 at 6:18:57 PM UTC+2, Joe Barnhart wrote: > > What Anthony said. Only sessions rarely log out. They mostly time out, > which does not show up as an event. > > Joe > > On Wednesday, September 26, 2018 at 12:13:25 PM UTC-7, mostw

[web2py] How to capture auth_user login time & logout time

2018-09-26 Thread mostwanted
Hi guys, i was wondering if there is a way for me to capture user login time and user logout time Regards Moatwanted -- 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] what is '\x00'

2018-09-24 Thread mostwanted
I opened my App this morning to work on it & i got this error * '\x00' *, can anyone please assist? What does it mean??? When i went to sleep everything was ok. Regards Mostwanted -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/we

[web2py] How do i get the details of a user in db.auth_user displayed by referencing it in my db?

2018-09-23 Thread mostwanted
_By.first_name}} {{pass}} {{pass}} *Client_Updates:* VIEW & UPDATE CLIENT DETAILS {{=clientDetails}} I could Use all the help i can get. Regards Mostwanted -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github

[web2py] Re: How can i select an item from the database only once?

2018-09-23 Thread mostwanted
18 at 1:06:24 AM UTC+2, Dave S wrote: > > > > On Friday, September 21, 2018 at 2:35:33 PM UTC-7, Dave S wrote: >> >> >> >> On Friday, September 21, 2018 at 9:54:00 AM UTC-7, mostwanted wrote: >>> >>> How do i get a value stored in the dat

[web2py] How can i select an item from the database only once?

2018-09-21 Thread mostwanted
How do i get a value stored in the database to be selected only once by users? I am creating a hotel system and in this system i have to make sure that a room can not be double booked, it can only be selected once for one client. Regards Mostwanted -- Resources: - http://web2py.com - http

[web2py] Ajax Live Search (auto-complete)

2018-09-12 Thread mostwanted
I have been looking at the code for the Ajax Live Search auto-complete under Ajaxing your search functions of the web2py cookbook, i want to implement the No results function if the search does not return anything but i'm not sure where and how to implement it. The Ajax live search code is

[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] 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] 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] 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: 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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: 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 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: 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] 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: 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] 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: 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] 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] 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] 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] 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-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-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] 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: 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

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

<    1   2   3   4   5   >