Skip to content
This repository
Browse code

v0.97, sysconfig add homepage, adjust template/default input width

  • Loading branch information...
commit bb893beb1e57677983d094b4c21a6f1ae12557bd 1 parent ae8aa73
Noprianto authored
1  README.txt
@@ -25,6 +25,7 @@ FEATURES:
25 25 - Captcha (Random Font)
26 26 - Custom Logo
27 27 - Custom URL Redirect
  28 +- Custom Homepage URL
28 29 - Flash Animation as Product Picture
29 30 - Payment: Cash, Cash On Delivery, Bank/Wire Transfer
30 31 - More
10 app.py
@@ -232,7 +232,7 @@ def pget(option, default='', strip=True, callback=None):
232 232 ############################### CONSTANT ###############################
233 233
234 234
235   -VERSION = '0.96'
  235 +VERSION = '0.97'
236 236 NAME = 'onlinestore-multi'
237 237 PRECISION = 2
238 238 TEMPLATE_DIR = CURDIR + PS + 'template'
@@ -2968,7 +2968,7 @@ def GET(self):
2968 2968 data['mail_user'] = pget('mail_user')
2969 2969 data['mail_pass'] = pget('mail_pass')
2970 2970 data['mail_default'] = pget('mail_default')
2971   - data['url_base'] = pget('url_base')
  2971 + data['homepage'] = pget('homepage')
2972 2972 data['font_dir'] = pget('font_dir')
2973 2973 data['payments'] = pget('payments')
2974 2974 #
@@ -3000,7 +3000,7 @@ def POST(self):
3000 3000 mail_user='',
3001 3001 mail_pass='',
3002 3002 mail_default='',
3003   - url_base='',
  3003 + homepage='',
3004 3004 font_dir='',
3005 3005 )
3006 3006 #
@@ -3026,7 +3026,7 @@ def POST(self):
3026 3026 mail_user= i.mail_user
3027 3027 mail_pass= i.mail_pass
3028 3028 mail_default= i.mail_default
3029   - url_base= i.url_base
  3029 + homepage= i.homepage
3030 3030 font_dir= i.font_dir
3031 3031 #
3032 3032 tpinfo = tinfo(template)
@@ -3063,7 +3063,7 @@ def POST(self):
3063 3063 'mail_user' : mail_user,
3064 3064 'mail_pass' : mail_pass,
3065 3065 'mail_default' : mail_default,
3066   - 'url_base' : url_base,
  3066 + 'homepage' : homepage,
3067 3067 'font_dir' : font_dir,
3068 3068 }
3069 3069 for i in config.keys():
2  messages.py
@@ -310,6 +310,7 @@
310 310 'header_sys_mail_pass' : 'SMTP password',
311 311 'header_sys_mail_default' : 'default email',
312 312 'header_sys_url_base' : 'URL base',
  313 + 'header_sys_homepage' : 'Homepage URL',
313 314 'header_sys_font_dir' : 'font directory (server)',
314 315 'header_product_category_action': 'action',
315 316 'header_product_category_name': 'category name',
@@ -756,6 +757,7 @@
756 757 'header_sys_mail_pass' : 'password SMTP',
757 758 'header_sys_mail_default' : 'email default',
758 759 'header_sys_url_base' : 'basis URL',
  760 + 'header_sys_homepage' : 'URL Homepage',
759 761 'header_sys_font_dir' : 'direktori font (server)',
760 762 'header_product_category_action': 'action',
761 763 'header_product_category_name': 'name kategori',
20 template/default/admin_system.html
@@ -264,7 +264,7 @@
264 264 $:dkget(msg, 'desc_sys_payments', "&nbsp;<span class='systeminfo'>(", ')</span>&nbsp;')</span>
265 265 </td>
266 266 <td>
267   - <input type='text' name='payments' size='4' value="$data['payments']">
  267 + <input type='text' name='payments' size='16' value="$data['payments']">
268 268 </td>
269 269 </tr>
270 270
@@ -294,7 +294,7 @@
294 294 $:dkget(msg, 'desc_sys_max_file_size', "&nbsp;<span class='systeminfo'>(", ')</span>&nbsp;')</span>
295 295 </td>
296 296 <td>
297   - <input type='text' name='max_file_size' size='4' value="$data['max_file_size']">
  297 + <input type='text' name='max_file_size' size='16' value="$data['max_file_size']">
298 298 </td>
299 299 </tr>
300 300
@@ -314,7 +314,7 @@
314 314 $:dkget(msg, 'desc_sys_mail_smtp', "&nbsp;<span class='systeminfo'>(", ')</span>&nbsp;')</span>
315 315 </td>
316 316 <td>
317   - <input type='text' name='mail_smtp' size='4' value="$data['mail_smtp']">
  317 + <input type='text' name='mail_smtp' size='32' value="$data['mail_smtp']">
318 318 </td>
319 319 </tr>
320 320
@@ -324,7 +324,7 @@
324 324 $:dkget(msg, 'desc_sys_mail_user', "&nbsp;<span class='systeminfo'>(", ')</span>&nbsp;')</span>
325 325 </td>
326 326 <td>
327   - <input type='text' name='mail_user' size='4' value="$data['mail_user']">
  327 + <input type='text' name='mail_user' size='16' value="$data['mail_user']">
328 328 </td>
329 329 </tr>
330 330
@@ -334,7 +334,7 @@
334 334 $:dkget(msg, 'desc_sys_mail_pass', "&nbsp;<span class='systeminfo'>(", ')</span>&nbsp;')</span>
335 335 </td>
336 336 <td>
337   - <input type='text' name='mail_pass' size='4' value="$data['mail_pass']">
  337 + <input type='text' name='mail_pass' size='16' value="$data['mail_pass']">
338 338 </td>
339 339 </tr>
340 340
@@ -344,17 +344,17 @@
344 344 $:dkget(msg, 'desc_sys_mail_default', "&nbsp;<span class='systeminfo'>(", ')</span>&nbsp;')</span>
345 345 </td>
346 346 <td>
347   - <input type='text' name='mail_default' size='4' value="$data['mail_default']">
  347 + <input type='text' name='mail_default' size='24' value="$data['mail_default']">
348 348 </td>
349 349 </tr>
350 350
351 351 <tr>
352 352 <td width='20%' valign='top'>
353   - $msg['header_sys_url_base'].capitalize()
354   - $:dkget(msg, 'desc_sys_url_base', "&nbsp;<span class='systeminfo'>(", ')</span>&nbsp;')</span>
  353 + $msg['header_sys_homepage'].capitalize()
  354 + $:dkget(msg, 'desc_sys_homepage', "&nbsp;<span class='systeminfo'>(", ')</span>&nbsp;')</span>
355 355 </td>
356 356 <td>
357   - <input type='text' name='url_base' size='4' value="$data['url_base']">
  357 + <input type='text' name='homepage' size='16' value="$data['homepage']">
358 358 </td>
359 359 </tr>
360 360
@@ -364,7 +364,7 @@
364 364 $:dkget(msg, 'desc_sys_font_dir', "&nbsp;<span class='systeminfo'>(", ')</span>&nbsp;')</span>
365 365 </td>
366 366 <td>
367   - <input type='text' name='font_dir' size='4' value="$data['font_dir']">
  367 + <input type='text' name='font_dir' size='64' value="$data['font_dir']">
368 368 </td>
369 369 </tr>
370 370

0 comments on commit bb893be

Please sign in to comment.
Something went wrong with that request. Please try again.