[web2py] Transferring the whole database from a python 2.7 framework to 3.11 framework

2024-05-22 Thread mostwanted
Hi guys, my app has been running on python2.7 since its inception, I have been reluctant to make the big change but now very critical updates a force the change. How do I move the entire database with all its images and data to the new app? I have tried a few things and a few things, The

[web2py] Re: Exception Error: 'Field' object has no attribute '__dir__'

2023-12-12 Thread mostwanted
Is there something wrong with the upload functionality or is just my app? On Friday, December 8, 2023 at 7:39:49 PM UTC+2 mostwanted wrote: > Hi guys, I recently 'upgraded' my web2py version to the latest version > (2.27.1) but i've forgotten the previous version. Now suddenly when

[web2py] Exception Error: 'Field' object has no attribute '__dir__'

2023-12-08 Thread mostwanted
Hi guys, I recently 'upgraded' my web2py version to the latest version (2.27.1) but i've forgotten the previous version. Now suddenly when i try to submit forms i get this error: 'Field' object has no attribute '__dir__' Below is the tracebeack Traceback Traceback (most recent call last):

[web2py] Displaying images from web2py as a server

2023-10-08 Thread mostwanted
I have a little functionality here where i'm pulling information from a web2py server and displaying it on a kivy app for the user, all the other details are displaying but the image is failing to display & I get the error:* [ERROR ] [AsyncImage ] Not found .* What am I doing wrong? How do

[web2py] Failing to download search results as csv

2023-08-22 Thread mostwanted
Hi guys, i need help downloading results as csv, i am failing dismally I dont know what to do After the search results return values I want to download those results into my computer somewhere the current version of my code is giving me an error: * string indices must be integers* Here is my

[web2py] Re: Extracting just submitted details in a redirect

2023-08-20 Thread mostwanted
e}) but then reference > to form.vars.student as student.id? > > Regards > > On Sunday, August 20, 2023 at 1:04:51 PM UTC+2 mostwanted wrote: > >> I have a student registration form that immediately after registering a >> student I want to use those details in anoth

[web2py] Extracting just submitted details in a redirect

2023-08-20 Thread mostwanted
I have a student registration form that immediately after registering a student I want to use those details in another form, a payments form to enter that student's payment status but my code keeps returning none like student is not available, I am doing something wrong here please assist me

[web2py] Re: Failing to display details only for member groups

2023-03-30 Thread mostwanted
lambda > q:(db.client_order.company.belongs(db(db.business.authority==auth.user_id)._select( > db.business.id))) > > This will AND this query to any other query you make on the table. > > A quarta-feira, 29 de março de 2023 à(s) 14:00:52 UTC+1, mostwanted > escreveu: > >> This is supposed to

[web2py] Failing to display details only for member groups

2023-03-29 Thread mostwanted
This is supposed to be simple but i'm failing to make it work! If it were about displaying the How can I get business owners of businesses listed in the business table also referenced in clients_order table to view only requested orders of their businesses in the client_order table? I hope

[web2py] Re: Unable to calculate values of a selected Index

2023-03-29 Thread mostwanted
e initial data that it needs- > > A quarta-feira, 29 de março de 2023 à(s) 08:38:04 UTC+1, mostwanted > escreveu: > >> In my head it was all supposed to work...but ultimately this worked >> >> function calculateSubtotal(input, index) { >>

[web2py] Re: Unable to calculate values of a selected Index

2023-03-29 Thread mostwanted
a wrote: > Looks like you're trying to mix javascript and python code in a quite > impossible way. Just pass qty instead of index to the function and use that > as the quantity. > > A domingo, 26 de março de 2023 à(s) 15:04:29 UTC+1, mostwanted escreveu: > >> I want to be ab

[web2py] Unable to calculate values of a selected Index

2023-03-26 Thread mostwanted
I want to be able to calculate subtotal by multiplying quantity and price but I cant because *var quantity = parseInt("{{=details.quantities[index]}}");* in the code below carries the value of 1 and it does not change. Please assist me identify what could be wrong here and how can i

[web2py] json Data from the server not displaying!

2023-03-20 Thread mostwanted
I have data that is in json format from the database, i want to draw a graph with data but i'm not sure how to display it in my view in graph format using the plotly library. My view code display nothing! *CONTROLLER* def dashboard(): call_clicks = db().select(db.dashboard.call_clicks)

[web2py] Re: Validator not saving images

2023-03-18 Thread mostwanted
INVOICE(IMG_HAS_TEXT): > > def __init__(self, error_message="The uploaded file is not a receipt > or invoice!"): > self.error_message = error_message > self.check_tokens = ("receipt", "invoice") > > > A terça-feira, 14 de março

[web2py] Validator not saving images

2023-03-14 Thread mostwanted
I have a little problem with my validator code, its saving 0 byte images and I just don't know why, the value variable is an image that actually contains an image, I have tested it several times to see what it contains and its an image but for some reason when it comes to saving it in the

[web2py] Re: Changing to hamburger menu at a desired device viewpoint

2022-11-12 Thread mostwanted
Anyone who could be going through my problem this is where i got help https://coderwall.com/p/wpjw4w/change-the-bootstrap-navbar-breakpoint Regards; On Friday, November 11, 2022 at 9:14:45 AM UTC+2 mostwanted wrote: > Is there a more easier way to change my menu to get displayed as hambur

[web2py] Re: Changing to hamburger menu at a desired device viewpoint

2022-11-12 Thread mostwanted
Anyone who could be going through my problem this is where is found help https://www.codeply.com/go/bp/120604 Regards On Friday, November 11, 2022 at 9:14:45 AM UTC+2 mostwanted wrote: > Is there a more easier way to change my menu to get displayed as hamburger > menu on a devices of c

[web2py] Changing to hamburger menu at a desired device viewpoint

2022-11-10 Thread mostwanted
Is there a more easier way to change my menu to get displayed as hamburger menu on a devices of certain viewpoints? The nav class which is the menu class is styled in the bootstrap.min.css file and I am not getting anywhere with it no matter what I try! I wanna invoke the hamburger menu

[web2py] Re: Custom Login Decorator

2022-09-24 Thread mostwanted
ails: redirect(URL('default', 'subscribe')) else: return func() return wrapper ​ On Wednesday, September 21, 2022 at 10:33:45 AM UTC+2 mostwanted wrote: > *STATEMENT OF THE PROBLEM* > ​ > > I have an infinite loop problem that i don't know how to

[web2py] Custom Login Decorator

2022-09-21 Thread mostwanted
*STATEMENT OF THE PROBLEM* ​ I have an infinite loop problem that i don't know how to escape so i need help I have never used a decorator before I'm not even sure i fully understand how they work but i have used one & it's giving me a headache. I have registration form that's supposed

[web2py] Service worker code preventing form submissions

2022-07-27 Thread mostwanted
I have this code below for a service worker, its primary purpose was for it to serve an offline page when the user is offline, it works ok as intended but the problem its causing now is that its preventing forms from submitting & other pages from opening!! Its javascript but i was hoping to

[web2py] Re: App crushed during a web2py upgrade

2022-06-11 Thread mostwanted
t 1:11:03 AM UTC-7 mostwanted wrote: > >> I was able to resolve the problem, I reloaded the app from my >> pythonanywhere account and i was able to access my admin but i still can >> not get my callback to work as expected. Can someone please help me! What >> am i doing

[web2py] Re: App crushed during a web2py upgrade

2022-06-11 Thread mostwanted
-stable+timestamp {{=A(company.no_of_ppadb_codes, _href='#', callback=URL('ppadb_codes.load', args=company.id), target="content", _class="show_codes")}} Regards On Saturday, June 11, 2022 at 9:53:55 AM UTC+2 mostwanted wrote: > I tried to upgrade my app to the

[web2py] App crushed during a web2py upgrade

2022-06-11 Thread mostwanted
I tried to upgrade my app to the latest version because the callback{{=A(link, callback=URL())}} functionality kept redirecting instead of calling the page to the current page div but it crushed When i open my admin gape i get (*Ticket issued:

[web2py] Re: calculating sums of a table field when the values are inherited from another table

2022-04-11 Thread mostwanted
me}} > {{=c.policy_cover.premium}}* > > > *{{total +=c.policy_cover.premium}}{{pass}}* > ** > ** > *TOTAL PREMIUM: {{=total}}* > * * > ** > > > On Monday, April 11, 2022 at 4:56:37 AM UTC-5 mostwanted wrote: > >> I have a problem that i

[web2py] calculating sums of a table field when the values are inherited from another table

2022-04-11 Thread mostwanted
I have a problem that i'm failing to fix, i want to calculate the sum of all premiums for all tables in a client's account. A client is paying insurance for his kids & his parents, i want to display this information in the view in an html table and be able to calculate his total premium for

[web2py] Re: Grouping information with its client

2022-04-10 Thread mostwanted
name}} {{=ex.extended_family.montly_subscription}} {{pass}} {{pass}} {{pass}} currently so far so good On Saturday, April 9, 2022 at 9:13:03 PM UTC+2 mostwanted wrote: > Guys i need help here, I have an insurance database that has 3 tables of > information that relates to

[web2py] Grouping information with its client

2022-04-09 Thread mostwanted
Guys i need help here, I have an insurance database that has 3 tables of information that relates to the client (account holder), what i want to do is to be able to group each piece of information according to its owner (account holder) in an html table in the view and not have it mixed up.

[web2py] Re: Creating a sums value from a column on an SQLFORM.grid

2022-04-08 Thread mostwanted
an improve > what I'd submitted so far. > > -Jim > > On Thursday, April 7, 2022 at 3:29:37 AM UTC-5 mostwanted wrote: > >> Hi guys, I was wondering if i could create a sums column on an >> SQLFORM.grid so that every search that's made produces a sums value, >> somethin

[web2py] Creating a sums value from a column on an SQLFORM.grid

2022-04-07 Thread mostwanted
Hi guys, I was wondering if i could create a sums column on an SQLFORM.grid so that every search that's made produces a sums value, something like this: *def payments():grid = SQLFORM.grid(db.payments, args=[db.payments]) if grid.process().accepted:query=("#Search queries of

Re: [web2py] Exporting html table as csv

2022-03-30 Thread mostwanted
Its a permanent html table in the view with information from different database tables. From there i wanna download it as CSV to be used in excel reports. On Wednesday, March 30, 2022 at 11:10:12 AM UTC+2 snide...@gmail.com wrote: > > On Saturday, March 26, 2022 at 2:24:06 AM UTC-7 most

[web2py] Re: Unable to save pdf documents in my app

2022-03-30 Thread mostwanted
%Y-%m-%d-%H%M%S'))], stderr=PIPE) > > Thus, if the directory is not available you can create it. I guess the > return value of Popen will tell you. > > Maybe it helps. > > Regards > Clemens > > On Tuesday, March 29, 2022 at 8:00:20 AM UTC+2 mostwanted wrote: >

[web2py] Re: Unable to save pdf documents in my app

2022-03-29 Thread mostwanted
Yes they do On Wednesday, March 30, 2022 at 4:57:01 AM UTC+2 Jim S wrote: > Does the user that is running the web2py server have rights to create the > directory and files inside that directory? > > -Jim > > > On Tuesday, March 29, 2022 at 9:51:42 PM UTC-5 mostw

[web2py] Re: Unable to save pdf documents in my app

2022-03-29 Thread mostwanted
Yes it is On Tuesday, March 29, 2022 at 9:41:43 PM UTC+2 Jim S wrote: > I think the folder would be created. However, the security must be setup > properly for it to happen. > > Is this on a production box? Linux? > > -Jim > > On Tuesday, March 29, 2022 at 2:37:23 P

[web2py] Re: Unable to save pdf documents in my app

2022-03-29 Thread mostwanted
er exists? If so, does the file exist? > > -Jim > > On Tuesday, March 29, 2022 at 1:07:26 AM UTC-5 mostwanted wrote: > >> I tried to change this line: >> *Field('fileS','upload',uploadfolder=request.folder+'static/pdfs'))* >> to this below >> >> *Field('fi

[web2py] Re: Unable to save pdf documents in my app

2022-03-29 Thread mostwanted
I tried to change this line: *Field('fileS','upload',uploadfolder=request.folder+'static/pdfs'))* to this below *Field('fileS','upload',uploadfolder=os.path.join(request.folder, 'static/profile')) * but still nothing works!!! On Tuesday, March 29, 2022 at 8:00:20 AM UTC+2 mostwanted wrote

[web2py] Unable to save pdf documents in my app

2022-03-29 Thread mostwanted
Guys my app suddenly wont save PDF documents. *db.define_table('pdfs', Field('fileS','upload',uploadfolder=request.folder+'static/pdfs')).* The above code does not create static/pdfs folder as expected so when i click on the link thats supposed allow me to view the pdf

Re: [web2py] Exporting html table as csv

2022-03-26 Thread mostwanted
547198/export-html-table-to-csv-using-vanilla-javascript > > If you want to read CSV and insert to db, you can check the codes in > appadmin.py file on admin app. > > Regards, > Murat. > > > > mostwanted , 25 Mar 2022 Cum, 11:11 tarihinde şunu > yazdı: > >

[web2py] Exporting html table as csv

2022-03-25 Thread mostwanted
Is there a way to download data in my html table as csv? I have information in an html table that comes from 4 different database tables but i want to have it downloaded to be used further in excel. Can i download this html table that i have combined all this information in as a single csv

[web2py] unable to parse csv file web2py

2022-03-22 Thread mostwanted
Morning guys, I am encountering this issue for the first time today that is why i am coming before the forum for clarification. I cant use the web2py admin csv upload button because i get a popup that says *unable to parse csv file web2py *. I have been researching this issue & apparently

[web2py] Re: About migrate and fake_migrate

2022-03-22 Thread mostwanted
Tom Thank you, i will re-read this and come back to it when i encounter one of these because they used to taunt me alot, i cant count the number of times I deleted & re-created & re-named a table because of this error. On Wednesday, March 16, 2022 at 10:56:33 AM UTC+2 Tom Clerckx wrote: > I

Re: [web2py] Upgrading to a higher version of web2py through the admin interface

2022-01-18 Thread mostwanted
ade. > > On Wed, Jan 12, 2022, 11:30 AM mostwanted wrote: > >> Hi guys, is it safe to upgrade my version of web2py through the admin >> interface? Has anyone tried it & did it work? >> >> I have an opp developed in an older version of web2py, some functio

[web2py] Upgrading to a higher version of web2py through the admin interface

2022-01-12 Thread mostwanted
Hi guys, is it safe to upgrade my version of web2py through the admin interface? Has anyone tried it & did it work? I have an opp developed in an older version of web2py, some functions are not working on it like *callback=URL()* but in my research it says the functionality works well in newer

Re: [web2py] (PWA) Send a Subscription information to my Server

2022-01-06 Thread mostwanted
The [target] controller is " save_data ", "func" was is just a mistake I made On Thursday, January 6, 2022 at 10:08:43 AM UTC+2 snide...@gmail.com wrote: > On Tuesday, January 4, 2022 at 1:44:36 AM UTC-8 mostwanted wrote: > >> I tried adding this to my cod

Re: [web2py] (PWA) Send a Subscription information to my Server

2022-01-04 Thread mostwanted
e "body:" with "data:" on the code? > There is a sample JS code on the page: > https://www.digitalocean.com/community/tutorials/submitting-ajax-forms-with-jquery > > By the way, it is better to check the JSON object format with > https://jsonlint.com/ or similar.

[web2py] (PWA) Send a Subscription information to my Server

2022-01-02 Thread mostwanted
Hi guys, I am still in the path of converting my app into a PWA. After subscribing the user to receive push messages I have to take save this information to the server into my database & this is where I am failing, I tried the code below to send the information to a function that will save

Re: [web2py] Re: Error ticket for "admin" when trying to create a view

2021-12-17 Thread mostwanted
e really weird. Have you tried with a fresh install of web2py? > > Jim > > On Fri, Dec 17, 2021, 5:56 AM mostwanted wrote: > >> But that's just the thing, I wasn't trying pass any data, i just trying >> to create a new view for a new function In my admin interface, as so

[web2py] Re: Error ticket for "admin" when trying to create a view

2021-12-17 Thread mostwanted
attached the image to the Error snapshot: [image: Screenshot (79).png] <https://www.sesoa.co.bw/admin/default/ticket/admin/41.77.89.203.2021-12-17.11-50-47.952e9d4f-bc1f-4fd9-abf5-b266902c89ba#> On Friday, December 17, 2021 at 1:56:35 PM UTC+2 mostwanted wrote: > But that's just the thing,

[web2py] Re: Error ticket for "admin" when trying to create a view

2021-12-17 Thread mostwanted
ks like you're passing some data through the request vars and the value > is Null. Would need to see more code to be able to help. > > -Jim > > On Wednesday, December 15, 2021 at 12:09:08 AM UTC-6 mostwanted wrote: > >> Hi guys, I'm updating one of my very early projects, I

[web2py] Error ticket for "admin" when trying to create a view

2021-12-14 Thread mostwanted
Hi guys, I'm updating one of my very early projects, I was trying to create a view and I got an error: Error ticket for "admin", I dont know what's causing it, how do I fix this? Its a new error that I have never encountered before, thats the traceback below. I developed it with Version

[web2py] Re: Keeping track of database entires

2021-12-13 Thread mostwanted
in: > https://stackoverflow.com/questions/18902549/web2py-redirect-after-login > > Is it what you want? > > Best regards > Clemens > > On Monday, December 13, 2021 at 6:27:10 AM UTC+1 mostwanted wrote: > >> Is there a way of keeping track of table entries? I have to cre

[web2py] Keeping track of database entires

2021-12-12 Thread mostwanted
Is there a way of keeping track of table entries? I have to create a function that shows a pop-up warning when a client has not made payments in 3 months ,i dont know where to begin, any ideas? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: Creating a validator to limit the number of table entries

2021-12-12 Thread mostwanted
Thank you, really. On Sunday, December 12, 2021 at 3:46:40 PM UTC+2 Clemens wrote: > Now parent is a valid row object, that can be referenced by parent.id. If > it delivers what you want to, it's fine! > > Best regards > Clemens > > On Sunday, December 12, 2021 at 2:42:3

[web2py] Re: Creating a validator to limit the number of table entries

2021-12-12 Thread mostwanted
t=parent.id form=SQLFORM(db.children) if form.process(onvalidation=my_validator).accepted: response.flash=T('Client Regitered') return locals() On Sunday, December 12, 2021 at 3:01:37 PM UTC+2 mostwanted wrote: > What I want is to prevent more than 10 entries of children per s

[web2py] Re: Creating a validator to limit the number of table entries

2021-12-12 Thread mostwanted
b.*parent*.id>0) & (db.children.parent==parent.id)).count() >=10: > ... > > Then the error should not occur and you are get all parents with more than > 10 children. > > Regards > Clemens > > > On Sunday, December 12, 2021 at 9:29:11 AM UTC+1 mostwanted wrote: &

[web2py] Creating a validator to limit the number of table entries

2021-12-12 Thread mostwanted
I am trying to create a short validator that limits the number of children that can be listed under one parent but I'm having a problem with the highlighted line because I cant use *parent.id *to specify the selected parent when the parent variable is referenced outside the validator function.

[web2py] Load giving a 404 NOT FOUND

2021-12-10 Thread mostwanted
Why cant i use *details=db.table(request.args(0, cast=int)) *function in a load? When i do i get 404 NOT FOUND error, is there way around this? function: def children(): client=db.client(request.args(0, cast=int)) db.children.client.default=client.id form=SQLFORM(db.children)

[web2py] LOAD is giving 404 NOT FOUND

2021-12-10 Thread mostwanted
I have forms i'm trying load into another page but i'm getting 404 NOT FOUND error. I dont know what i'm doing wrong, if anyone can spot it please help, thats my code below *{{loadmsg = SPAN("loading ...", BR(), SPAN(_class="fa fa-spinner fa-spin"),

[web2py] Re: Limiting the number of values that could be input in a form field

2021-12-08 Thread mostwanted
acters/digits') >> >> For further information about validators with regular expressions have a >> look here: >> http://web2py.com/book/default/chapter/07?search=formstyle#IS_MATCH >> >> On Wednesday, December 8, 2021 at 8:23:01 PM UTC+1 mostwanted wrote: >>

[web2py] IS_NOT_IN_DB( ) exception error

2021-12-08 Thread mostwanted
I'm trying to use the validator IS_NOT_IN_DB( ) but i keep getting the error below, what does it mean? * Validation error, field:policy_N * MY CODE: db.define_table('client', Field('client_name'), Field('id_number', requires = IS_MATCH('^\d{9}?$', error_message='An ID

[web2py] Limiting the number of values that could be input in a form field

2021-12-08 Thread mostwanted
Is there a validator that could be used to limit the number of values that could be submitted in a form field? I want users to input their ID numbers but they cant be more than 9 characters, how do i achieve this? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: Calculations on values extracted from several database tables not displaying some values

2021-11-30 Thread mostwanted
(Levy INCLUSIVE) > Total: > BWP {{=totalPrice}} > > {{pass}} > > > > > -Jim > > On Tuesday, November 30, 2021 at 12:58:23 AM UTC-6 mostwanted wrote: > >> In my Guest House booking sys

[web2py] Calculations on values extracted from several database tables not displaying some values

2021-11-29 Thread mostwanted
In my Guest House booking system I function that is intended to do invoice calculations for clients using values from different database tables & display the information in a table in the view. The problem now is some information is not being displayed in the table in the view when a client

[web2py] Re: Displaying database information without repeating details

2021-10-30 Thread mostwanted
> product table and setting the sort order properly. Add the left join will > then require that you include the table name in your field references in > your template. > > -Jim > > On Thursday, October 28, 2021 at 9:31:09 AM UTC-5 mostwanted wrote: > >> I apologize

[web2py] Re: Displaying database information without repeating details

2021-10-28 Thread mostwanted
> > Name > Quantity Sold for this sale > Total quantity so far > > But now I'm not sure I'm right > > What does product.Quantity represent vs sales.quantity? > > -Jim > > On Thursday, October 28, 2021 at 8:57:38 AM UTC-5 mostwanted wrote: > >> Hey Jim, thanks

[web2py] Re: Displaying database information without repeating details

2021-10-28 Thread mostwanted
ay, October 28, 2021 at 4:15:49 AM UTC-5 mostwanted wrote: > >> I am able to group them up using *(groupby) *e.g >> (*products=db().select(db.sales.ALL, >> orderby=db.sales.product.name <http://db.sales.product.name>, >> groupby=db.sales.product.name <http:

[web2py] Re: Displaying database information without repeating details

2021-10-28 Thread mostwanted
he-database-abstraction-layer#sum-avg-min-max-and-len >> >> Is it what you need? >> >> Best regards >> Clemens >> >> >> On Wednesday, October 27, 2021 at 4:44:11 PM UTC+2 mostwanted wrote: >> >>> I have a sales database table that reco

[web2py] Displaying database information without repeating details

2021-10-27 Thread mostwanted
I have a sales database table that records items sold in a store, an item can appear several times in the table having been sold several times or in different days. What i wanna do is display this information in an html table in a view without the item names repeating also with the sold

[web2py] Hiding details from view without deleting them from a database when certain condition is satisfied

2021-10-11 Thread mostwanted
Hi guys, I need help achieving a certain task, I have a system which creates credit accounts for clients, this information is displayed in a view called *credit_details *, what I want is for this information to stop displaying once the customer has paid all of their credit but without deleting

[web2py] Can I create check boxes for IS_IN_DB() validator drop down menu?

2021-02-18 Thread mostwanted
ults? Regrads, 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 "

Re: [web2py] Re: Push Notifications

2020-11-20 Thread mostwanted
trigger('fileit', 'plannerPesos', {'message': > "PlaySound('ok')"}) > > Em sex., 20 de nov. de 2020 às 07:41, mostwanted > escreveu: > >> Hey Ramos, I was able to successfully register the app on pusher.com. >> towards step 4 its says i should copy this

Re: [web2py] Re: Push Notifications

2020-11-19 Thread mostwanted
t;body":"Hello, world!"}}}' to my console! Which console is this one? My desktop console? I'm hosted with pythonanywhere.com, can i use the Bash console in my dashboard? On Tuesday, November 17, 2020 at 7:53:20 AM UTC+2 mostwanted wrote: > Thanks alot Ramos, think this will wo

[web2py] Network Protocol Violation Error on my web2py apps

2020-11-16 Thread mostwanted
not submit details after being filled up! Is it just me or others are experiencing the same thing? Is there is something wrong in my code that needs to be fixed? Regards; Mostwanted -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py

Re: [web2py] Re: Push Notifications

2020-11-16 Thread mostwanted
m seg., 16 de nov. de 2020 às 08:44, mostwanted > escreveu: > >> So far all I have been able achieve is asking the user for permission to >> send them notifications & if they accept all that happens is that everytime >> they open the app they get a greetings notificatio

[web2py] Re: Push Notifications

2020-11-16 Thread mostwanted
100, 200, 100, 200, 100] }); }); } } On Monday, November 16, 2020 at 10:31:10 AM UTC+2 mostwanted wrote: > > Has anyone been able to implement push notifications on their web2py apps? > > I need a working application with some examples on how to implement this &g

[web2py] Push Notifications

2020-11-16 Thread mostwanted
w I can easily implement this 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

[web2py] Push Notifications

2020-11-16 Thread mostwanted
I cant put it together in my head. If anyone has any idea on how I can easily implement this 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/li

Re: [web2py] Displaying content based on the id attribute

2020-11-10 Thread mostwanted
when you showed the span and when you made the ajax call. I do that > by putting the ajax call in a setTimeout function. If I don't, the screen > doesn't update until the ajax call is completed. > > On Tue, 3 Nov 2020, 7:36 pm mostwanted, wrote: > >> I have a hidden span tha

Re: [web2py] Re: Displaying content based on the id attribute

2020-11-09 Thread mostwanted
)}} Can you test that? > > Jim > > > On Sat, Nov 7, 2020, 10:30 PM mostwanted wrote: > >> I dont think i wrote this *$(data('id') == id)* properly but data('id') >> is supposed to return the data-id attribute of the hidden span i'm trying >> to show

Re: [web2py] Re: Displaying content based on the id attribute

2020-11-07 Thread mostwanted
// Select the contact with that id. > > What is data('id') supposed to return? > > Or is this some jquery thing I'm not aware of? > > -Jim > > On Saturday, November 7, 2020 at 1:57:01 PM UTC-6, mostwanted wrote: >> >> Yah there is more ot it, is there something speci

Re: [web2py] Re: Displaying content based on the id attribute

2020-11-07 Thread mostwanted
2020 at 9:38:42 PM UTC+2 Jim S wrote: > There is more to it, right? I see lots of javascript functions in there > with no definition. > > -Jim > > > On Saturday, November 7, 2020 at 1:23:26 PM UTC-6, mostwanted wrote: >> >> >> >> SESOA™ >>

Re: [web2py] Re: Displaying content based on the id attribute

2020-11-07 Thread mostwanted
r know how to format the code to look like the code with all the necessary color coding! On Saturday, November 7, 2020 at 8:09:47 PM UTC+2 Jim S wrote: > Sorry, I was looking for the actual html code that is generated. > > -Jim > > > On Saturday, November 7, 2020 at 12:06:3

Re: [web2py] Re: Displaying content based on the id attribute

2020-11-07 Thread mostwanted
im S wrote: > The page that was generated > > -Jim > > On Saturday, November 7, 2020 at 11:48:37 AM UTC-6, mostwanted wrote: >> >> What do you mean the final html Jim? Do you mean the actual code or the >> page generated? >> >> On Saturday, November 7,

Re: [web2py] Re: Displaying content based on the id attribute

2020-11-07 Thread mostwanted
What do you mean the final html Jim? Do you mean the actual code or the page generated? On Saturday, November 7, 2020 at 7:08:36 PM UTC+2 Jim S wrote: > Can you post the final html that is generated by web2py? > > -Jim > > > On Saturday, November 7, 2020 at 10:52:29 AM UTC-6

Re: [web2py] Re: Displaying content based on the id attribute

2020-11-07 Thread mostwanted
nclick from that element and add that function call > to the end of your listener defined in document ready? > > -Jim > > > On Wed, Nov 4, 2020 at 8:29 PM mostwanted wrote: > >> _onclick="updatelivesearch(jQuery('#res%s').html())" % c.service_name >> >> T

[web2py] Re: Add to home screen

2020-11-07 Thread mostwanted
 Thanks alot, these links will come in handy On Friday, November 6, 2020 at 12:56:47 AM UTC+2 snide...@gmail.com wrote: > > > On Wednesday, May 27, 2020 at 3:08:15 AM UTC-7, mostwanted wrote: >> >> Whats the simplest way to get my web2py application to prompt users to

[web2py] Re: Displaying content based on the id attribute

2020-11-04 Thread mostwanted
Maybe > there are some stronger javascript people that can jump in. > > -Jim > > > On Wednesday, November 4, 2020 at 11:23:45 AM UTC-6, mostwanted wrote: >> >> >> *" Are you trying to show the span when the link is clicked 'while' the >> page is loaded? &quo

[web2py] Re: Displaying content based on the id attribute

2020-11-04 Thread mostwanted
u have a listener for the click of that element already, I'm not > sure how it behaves if you have the onclick attribute set as well. Maybe > there are some stronger javascript people that can jump in. > > -Jim > > > On Wednesday, November 4, 2020 at 11:23:45 AM UTC-6

[web2py] Re: Displaying content based on the id attribute

2020-11-04 Thread mostwanted
gt; > Also, where in your javascript did you add the console.log()? > > -Jim > > > On Wednesday, November 4, 2020 at 12:34:02 AM UTC-6, mostwanted wrote: >> >> I threw in console.log("Hello world!"); but its not printing anything >> on the console! The link eve

[web2py] Re: Hosting my web2py application

2020-11-03 Thread mostwanted
ww.pythonanywhere.com? > > > On Thursday, October 29, 2020 at 1:21:17 AM UTC-4 mostwanted wrote: > >> I've come across alot of information on setting up a domestic webserver I >> just wasnt sure if the same setup of hosting a PHP application would apply >> to hosting a Pytho

[web2py] Re: Displaying content based on the id attribute

2020-11-03 Thread mostwanted
tion to see what is/isn't working? > > -Jim > > > On Tuesday, November 3, 2020 at 12:10:06 PM UTC-6, mostwanted wrote: >> >> Hey Jim, I have but it shows no errors! >> >> On Tuesday, November 3, 2020 at 6:02:50 PM UTC+2 Jim S wrote: >> >>> H

[web2py] Re: Displaying content based on the id attribute

2020-11-03 Thread mostwanted
Hey Jim, I have but it shows no errors! On Tuesday, November 3, 2020 at 6:02:50 PM UTC+2 Jim S wrote: > Have you checked your browser console to see if you have any javascript > errors? > > -Jim > > > On Tuesday, November 3, 2020 at 3:36:22 AM UTC-6, mostwanted wrote: >&

[web2py] Displaying content based on the id attribute

2020-11-03 Thread mostwanted
ction(){ $('.service').click(function(e) { const id = $(this).data('id'); $('#' + id).fadeIn(); e.preventDefault(); }); }); ** Regards; Mostwanted -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com

[web2py] Re: Hosting my web2py application

2020-10-28 Thread mostwanted
your requirements. None of it's specially difficult > but most of it is not specific to web2py. > > > On Tuesday, 27 October 2020 at 15:44:30 UTC mostwanted wrote: > >> How do I setup a private home server to host my web2py application? What >> do i need & how do i

[web2py] Re: Add to home screen

2020-10-28 Thread mostwanted
nt to my /sw.js script served now from my root directory & no longer from sub-directories in my app as set up above: *Main.js Script* window.onload = () => { 'use strict'; if ('serviceWorker' in navigator) { * navigator.serviceWorker.register('https://www.my-app.com/sw.js');* } }

[web2py] Re: Add to home screen

2020-10-28 Thread mostwanted
Hey guys, I'm still here, struggling with the add to home PWA fucntionality. Has anyone found a solution? Please share or assist. Regards On Monday, August 24, 2020 at 10:42:57 AM UTC+2 mostwanted wrote: > Hey guys i'm still struggling with the *add to home screen* prompt, > please look

[web2py] Hosting my web2py application

2020-10-27 Thread mostwanted
How do I setup a private home server to host my web2py application? What do i need & how do i put it together? If anyone has done it before please share the process or direct me to where I can find the information. Regards; Mostwanted -- Resources: - http://web2py.com - http://web2py

[web2py] Limiting database entries

2020-10-13 Thread mostwanted
Is there a way to limit the number of entries to a database? Like limiting the number of entries to only 100 and nothing more. Regards; Mostwanted -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https

[web2py] Re: uploadfolder=request.folder not working as it expected

2020-10-08 Thread mostwanted
This worked, thanks Villas On Tuesday, October 6, 2020 at 1:43:37 PM UTC+2 villas wrote: > Maybe you are not using a separator (eg '/'). Try something like this: > > uploadfolder = os.path.join(request.folder, 'static/docs') > > On Monday, 5 October 2020 at 17:21:43 UTC+1 m

[web2py] uploadfolder=request.folder not working as it expected

2020-10-05 Thread mostwanted
s.fileS).first() redirect(URL('static','docs',args=row.fileS))* *VIEW FOR SAVED DOCUMENT VIEWING* *{{extend 'layout.html'}}* *{{for details in details2: }}{{=A(details.Form_Name, _target="_blank", _href=URL('viewer', args=details.id))}} {{pass}}* Regards; Mostwanted -- Resources: - h

  1   2   3   4   5   >