Grid Pages Form Buttons

157 views
Skip to first unread message

Kevin Keller

unread,
Feb 23, 2021, 8:17:47 AM2/23/21
to py4web
Hello, 

A) I would like to add a "Back" Button.

to the Edit form of the Edit page from the Grid.

B) And also relabel the "Submit" button text to something like "OK". 

C) and finally maybe a hint where I can used translations with the Grid. 

As always, appreciate your help :). 



image.png
cloudHQPowered by
cloudHQ

Jim Steil

unread,
Feb 23, 2021, 9:49:23 AM2/23/21
to py4web
Looks like we have a little work to do on grid.

Anyone interested in a 'sprint' day?  Looks like grid, auth, form and of course docs could use a little love.  I think it would be great to set aside an upcoming Saturday to push ahead.  Anyone interested (and have the time) in helping?  Defining needs? Documentation?  Programming?

-Jim

Kevin Keller

unread,
Feb 23, 2021, 10:25:07 AM2/23/21
to Jim Steil, py4web
Being in a different time zone it would be difficult for me, but I can get my hand around a sprint week. :)

I would love to that we just get rid of the auth api endpoints that we have now. 
They are hard to use if at all and developers today would just expect a JWT token back that they can use for any subsequent calls. 
I can base it on the work already done and the first try would be a rather basic think where you can get JWT token back on the login endpoint and use that for the 
other endpoints using a JWTread etc fixture. 
I would probably in another week add a "sessiontoken" endpoint where you can auth and instead of getting an "login" token back, you can get a token back that you can 
exchange for a login token and a local session. 

But I dont know how session manages in py4web works yet and where we save sessions, so I would need to figure this out. 

If I have your blessing I can get started on it this week. 

On grid maybe you can have a look? 

I am happy to help, but you are the grid master :). 

I was thinking we use a separate form.py for the grid that may be more attune to grid needs. 

Maybe I can help with testing on the grid and form matters and do a review/suggestions. 


cloudHQPowered by
cloudHQ
--
You received this message because you are subscribed to the Google Groups "py4web" group.
To unsubscribe from this group and stop receiving emails from it, send an email to py4web+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/py4web/b3c3a7ca-badb-420b-88f8-938d537008e4n%40googlegroups.com.

Christian Varas

unread,
Feb 23, 2021, 11:20:59 AM2/23/21
to Jim Steil, py4web
I would like to help 🖖
I’m available on Saturday :) 

Cheers.
Chris.

--

Massimo

unread,
Mar 27, 2021, 1:08:27 PM3/27/21
to py4web
A sprint day sounds like a good idea.

Massimo

unread,
Mar 27, 2021, 1:15:02 PM3/27/21
to py4web
Form has the concept of form.param.sidecar
Grid has form.param.new_sidecar (for create forms) and param.edit_sidecar (for update form)
form.param.sidecar is a list of helpers that you want to concatenate after the submit button so:

grid.param.edit_sidecar = DIV(BUTTON('click me and I do nothing'))
grid.param.edit_submit_value = "I am your submit button!"

Jim Steil

unread,
Mar 27, 2021, 1:41:16 PM3/27/21
to py4web
Massimo

I've never been involved in a sprint before.  How is one organized.  Do people just pick something they want to work on, or do we get a list of items that need attention and then pick and choose from them?

Can you suggest some dates/duration that work for you? 

I'm interested in helping any way possible.

-Jim

Massimo

unread,
Mar 28, 2021, 1:25:42 PM3/28/21
to py4web
I think we pick a date and make a web page of lists of todos.
People who volunteer will add their names to the todos so we avoid duplication of work.
We chat while we work.

Finding the time is the hardest thing. The next 2 weeks-ends I cannot. The one after on Saturday should work for me.
Meanwhile we could make a list of things that need fixing.

Massimo

Kevin Keller

unread,
Mar 28, 2021, 1:59:22 PM3/28/21
to Massimo, py4web
Yes, starting a list sounds good. But let's not use email. Can we agree on a Google sheet or something similar?



--
You received this message because you are subscribed to the Google Groups "py4web" group.
To unsubscribe from this group and stop receiving emails from it, send an email to py4web+un...@googlegroups.com.

Jim Steil

unread,
Mar 28, 2021, 2:43:27 PM3/28/21
to py4web
So maybe April 17th?

Do we define start/end times for something like this?  Or, do each of us just state what times we'll be online?

I'm in favor of having a google sheet to track the activities.

-Jim

Massimo

unread,
Apr 11, 2021, 9:18:21 PM4/11/21
to py4web
Are we still doing this? I am available on April 17th from 9am to 3pm PST. If we have a quorum of about 4 people who can participate, we can formalize the details. We would also need to make a list of todo items.

Kevin Keller

unread,
Apr 12, 2021, 8:28:30 AM4/12/21
to Massimo, py4web
I would be in. 

I started a spreadsheet to capture some information who is coming and what we can discuss:




Kevin Keller

unread,
Apr 12, 2021, 4:39:18 PM4/12/21
to Massimo, py4web
So far it's Massimo, Jim and me.


Jim Steil

unread,
Apr 13, 2021, 11:22:11 AM4/13/21
to py4web
Anyone else interested in joining us?

-Jim

Maurizio Brilli

unread,
Apr 14, 2021, 2:38:21 AM4/14/21
to py4web
I would love to, the time frame is perfect in my time zone (I might be only a few minutes late) , but I'm wondering if I can be of any help, as my knowledge of the project is extremely superficial.

I have a couple of projects I'd like to apply py4web to, but they have been "incubating" for over a year now, and I'm not sure if I have the resources to start them now.

If you think I can help anyway, I can be there, mostly to learn...

Ciao
Maurizio

klaus z

unread,
Apr 15, 2021, 4:01:43 PM4/15/21
to py4web
@Jim, re your question: 'Anyone else interested in joining us?'
Thats coming Sunday between 18:00 and 24:00 CEST (Central European Summer Time).
Yes, I could make myself available. But I am not sure how I can be of help? 
Creating simple forms out of dbtables is one issue i am interested. 
Another thing, that could be more interesting, and where I have made some stuff is a prepared list of instructions for pyDAL. 
Similar to cheat SQL sheets like these examples: 
This commands I would like to have in jupyter notebooks. But then some minor installations have to be done on the local PC. 
If it works, we could also try Google CoLab instead of Jupyter notebooks. 
As result there should be a sheet with commands to connect to a database, create tables, select data etc. (manipulating data). 
Let me know if this is interesting and if yes, how to go ahead. 
~Klaus 

Jim Steil

unread,
Apr 15, 2021, 4:13:01 PM4/15/21
to py4web
What we're looking to do is to try to improve py4web.  We could use help with documentation.

If you have web2py experience we need help documenting how to convert apps to py4web.

klaus z

unread,
Apr 15, 2021, 4:23:25 PM4/15/21
to py4web
I made a few small apps with web2py. But there was nothing as good as what I have done in py4web now. 
Some weeks ago I went through the most recent documentation from Nico where he also added a chapter on how to convert. But I never made a document there.   
An interesting task i see, is there a very good web2py application that should be brought to py4web?   

Jim Steil

unread,
Apr 15, 2021, 4:36:53 PM4/15/21
to py4web
I'm sure there are great web2py apps that could/should be brought to web2py.  web2py is/was a very popular framework and it would be great if the transition from one to the other were as seamless as possible. Documenting the ways you accomplish web2py'ish things in py4web is therefore really important.

As for how to be involved, I think Kevin has put together a google meet (or whatever its called) for us to communicate, but mostly I think this will be time where I'll be working exclusively on py4web code and will be available to answer questions to chat with others that are doing the same. I'm not sure of Massimo's plans but I believe he has set aside time to be working on some issues, which you can see in the document that Kevin linked.

-Jim

Reply all
Reply to author
Forward
0 new messages