Re: [Cppcms-users] App configuration section : namespace question
Brought to you by:
artyom-beilis
From: Artyom B. <art...@ya...> - 2012-07-02 10:42:00
|
Generally I put my cppcms apps settings in their own namespace i.e. blog, wikipp, mb (message board) But I can add a guarantee that there will be no members used by CppCMS that start with one of the following prefixes: - app - data - conf - Any Capital letter (.i.e. MyApp) - Underscore "_" So any name in format "(app|data|conf|[A-Z_]).*" will be reserved for application use. Is it Ok? If so who adds this there: http://cppcms.com/wikipp/en/page/cppcms_1x_config Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Lee Elenbaas <lee...@gm...> >To: cpp...@li... >Sent: Monday, July 2, 2012 1:28 PM >Subject: Re: [Cppcms-users] App configuration section : namespace question > > >This is the other way around for solving the issue - but yes this is exactly the issue >i think that moving all the CppCMS configurations into a namespace will render all existing config files non working - so i prefered the other way around. > > >some guarantee that cppcms will not use the name: "app_config" for example >with that guarantee i can build config files that i am certain will never conflict > > >and as i said - an easi API to get to those settings will be a nice plus > > >On Mon, Jul 2, 2012 at 12:13 PM, augustin <aug...@ov...> wrote: > >About this feature request: >>http://sourceforge.net/tracker/?func=detail&atid=1011838&aid=3539381&group_id=209965 >> >>I tried to log into sourceforge to comment there, but whenever I try to, I get >>a blank page with the simple message: "XSRF Attempt Detected!" >> >>I can't login so I comment here. >> >>If I understand the question correctly, I think it is about namespace >>collision. >>The user wants to make sure there will be no namespace collision now and in >>the future between cppcms settings and his application's settings. >>cppcms settings probably should have been placed in a single namespace like >>this: >> >>"cppcms" : { >> "localization" { >> "locales" : [ "en_US.UTF-8" ] >> } >> } >>etc. >> >>augustin. >> >> >> >> >>-- >>Friends: http://www.reuniting.info/ >>My projects: >>http://astralcity.org/ http://lesenjeux.fr/ http://linux.overshoot.tv/ >>http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ >>http://openteacher.info/ http://minguo.info/ http://jacqueslemaire.fr/ >>http://www.wechange.org/ http://searching911.info/ >> >> >> >> >> >> >> >> >> >> >> >> >>. >> >>------------------------------------------------------------------------------ >>Live Security Virtual Conference >>Exclusive live event will cover all the ways today's security and >>threat landscape has changed and how IT managers can respond. Discussions >>will include endpoint security, mobile security and the latest in malware >>threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>_______________________________________________ >>Cppcms-users mailing list >>Cpp...@li... >>https://lists.sourceforge.net/lists/listinfo/cppcms-users >> > > > >-- >-- >lee >Lee Elenbaas >lee...@gm... > > >------------------------------------------------------------------------------ >Live Security Virtual Conference >Exclusive live event will cover all the ways today's security and >threat landscape has changed and how IT managers can respond. Discussions >will include endpoint security, mobile security and the latest in malware >threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |