[Tutor] Namespace variables vs. instantiation keywords - best practices
Tim Johnson
tim at johnsons-web.com
Thu Feb 3 20:54:38 CET 2011
* Tim Johnson <tim at johnsons-web.com> [110203 10:34]:
> # OR (project config file)
> kws = load.config("myconfig","tmpl_kws")
> kws.update({"prj":"myproject","templatepath":"views"})
#Grr! The following line is wrong ..
> kws = {"prj":"myproject","templatepath":"views"}
Should be
#content = LoadView(**kws)
sorry
--
Tim
tim at johnsons-web.com or akwebsoft.com
http://www.akwebsoft.com
More information about the Tutor
mailing list