Vreman, Peter - Acision wrote:
Can a hash for a session be added to store user changes of the webui.
Example is the page, limit and filter settings during in the list.
When an operation is done and returned to the list the old settings
are reused.
The hash can contain things like:
System_list_page
System_list_limit
System_list_filtername
Distro_list_page
Distro_list_limit
The page of a system list can be in the URL, so that it can be
bookmarked and shared... but I like the idea of being able to preserve
someone's filter settings until they change it a lot.
Yes, we can definitely use the session variable.
Would some of these be better saved as cookie, though, so that they
would exist between logins?
Using the session will also cleanup the URLs.
E.g. after a search execute you can do the following commands to show
the results:
self.session[‘system_list_filtername’]=’newsearchXXXX’
return self.__redirect(‘system_list’)
Thoughts?
Regards,
Peter
This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be
copied, disclosed to, retained or used by, any other party. If you are
not an intended recipient then please promptly delete this e-mail and
any attachment and all copies and inform the sender. Thank you.
------------------------------------------------------------------------
_______________________________________________
cobbler-devel mailing list
cobbler-devel(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler-devel