~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to online_help/management/commands/update_help.py

  • Committer: Holger Rapp
  • Date: 2009-03-15 20:27:12 UTC
  • mfrom: (62.1.11 widelands)
  • Revision ID: sirver@h566336-20090315202712-qb3j0trhy76bpzep
Merged with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
102
102
            w = Ware.objects.get_or_create( tribe = self._to, name = name )[0]
103
103
            w.displayname = normalize_name(displayname)
104
104
            w.image_url = nn 
 
105
 
 
106
            # See if there is help available
 
107
            if self._cf.has_option("default","help"):
 
108
                helpstr = normalize_name(self._cf.get("default","help"))
 
109
                w.help = helpstr
 
110
 
105
111
            w.save()
106
112
    
107
113
    def _parse_buildings( self ):