plainblack.com
Username Password
search
Bookmark and Share
WebGUI::Session::Scratch -- save arbitrary data structures.  (#342)
Issue

It would be nice to be able to save arbitrary data structures to the user session scratch. This could be easily accomplished using Storable or Data::Dumper or Yaml.

 

Changing to read:

Add some new convenience methods that will setStructure() getStructure() that will store and retrieve as serialized JSON.

Comments
JT
0
12/18/2006 3:18 pm
You can already do that, as you say, just serialize it to whatever thing you want and store it.
preaction
0
12/18/2006 3:37 pm

That's what I'm currently doing (using Storable and nfreeze). I'm saying it'd be sweet if WebGUI::Session::Scratch->set would check the type of reference and do it for me. That way WebGUI could perform some magic on it (like breaking it apart if it reaches 16,000 character maximum), and I wouldn't have to worry about anything.

Data structure go in, data structure come out. Like what Stow does, just not as volatile. 

Of course, if it was a scalar, it'd be stored as-is.

JT
0
12/18/2006 9:56 pm
You can't do that without breaking the
Details
Ticket Status Pending  
Rating0.0 
Submitted By DBell  
Date Submitted2006-12-18 
Assigned To unassigned  
Date Assigned 2020-08-10  
Assigned By  
What to improve?  
URLrfe/request-for-enhancement/webguisessionscratch----save-arbitrary-data-structures_
Karma
Difficulty 2  
Karma So Far0
Karma Rank0.00
Keywords
Ticket History
© 2020 Plain Black Corporation | All Rights Reserved