Changes between Version 17 and Version 18 of GSOCWebSetupImplementation


Ignore:
Timestamp:
04/05/11 17:36:19 (14 years ago)
Author:
anubhav
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GSOCWebSetupImplementation

    v17 v18  
    165165
    166166
    167 == CONTROLLERS ==
     167== '''CONTROLLERS''' ==
    168168=== default.py ===
    169169     
     
    419419
    420420In the form.accepts you will need to set the module values according to the request.post_vars.
     421
     422==== Def write_out(): ====
     423
     424<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'>&nbsp;</p>
     425
     426<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'>This writes
     427data to 000_config</p>
     428
     429<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'>For this
     430they would need to open the config using os.path.join and write data to the
     431config  in the correct format. </p>
     432
     433<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'>Like modules
     434needs to be done in this format:-</p>
     435}}}
     436{{{
     437“deployment_settings.modules = Storge(\n” +
     438 
     439#For for all keys
     440“    “ + <?module.key?> "= Storage(\n” +
     441   
     442#For all keys in module.keys
     443“    “  + “    ” + <?keys of module.keys?> + “=” + <?values of their respective fields?> + “,\n” +
     444 
     445"    " + “),\n”              #after module.key
     446 
     447+ “)”                   #for the main
     448}}}
     449{{{
     450#!html
     451
     452<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'>Writing
     453settings will be much more easier, as they are not stored in dict, somewhat
     454like:-</p>
     455
     456}}}
     457{{{
     458For all keys of settings
     459<?Keys of the settings ?> + “=” + <?values of the respective keys?> “\n”
     460}}}
     461{{{
     462#!html
     463<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'>I would
     464write default values if any request.post_var returns an invalid value according
     465to the validation.</p>
     466
     467<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt'><span
     468style='color:#0D0D0D'>&nbsp;</span></p>
     469}}}
     470