Mercurial > libervia-backend
diff frontends/src/quick_frontend/constants.py @ 736:6246eb6d64a0
frontends: define the constants with classes and inheritance instance of using __builtin__
author | souliane <souliane@mailoo.org> |
---|---|
date | Sat, 23 Nov 2013 10:21:40 +0100 |
parents | 84a6e83157c2 |
children | 1fe00f0c9a91 |
line wrap: on
line diff
--- a/frontends/src/quick_frontend/constants.py Sun Nov 24 11:22:20 2013 +0100 +++ b/frontends/src/quick_frontend/constants.py Sat Nov 23 10:21:40 2013 +0100 @@ -16,6 +16,10 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -import __builtin__ + +from sat_frontends import constants + -__builtin__.__dict__['const_PRIVATE_PREFIX'] = "@PRIVATE@" +class Const(constants.Const): + + PRIVATE_PREFIX = "@PRIVATE@"