diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/utils.py | 4 | ||||
-rw-r--r-- | core/views/survex.py | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/core/utils.py b/core/utils.py index 161a7f6..798e48f 100644 --- a/core/utils.py +++ b/core/utils.py @@ -263,7 +263,7 @@ def git_string(author_string): def write_and_commit(files, message, editor=None): """Writes the content to the filepath and adds and commits the file to git. If this fails, a WriteAndCommitError is raised. - These need refactoring + This needs refactoring to just write and then call only_commit() """ git = settings.GIT commands = [] @@ -380,7 +380,7 @@ class WriteAndCommitError(Exception): return f"WriteAndCommitError: {self.message}" -def writetrogglefile(filepath, filecontent, commit_msg=None): +def writetrogglefile(filepath, filecontent, commit_msg=None): """ REPLACE with call to write_and_commit + any necessary setup used only by cave editor in diff --git a/core/views/survex.py b/core/views/survex.py index 56d447f..07eab38 100644 --- a/core/views/survex.py +++ b/core/views/survex.py @@ -145,6 +145,10 @@ class SvxForm(forms.Form): """Two-pane form, upper half is the raw survex file, lower half (with green background) is the output : of running 'cavern' on the survex file, of running a 'difference', of checking that there are no square brackets left. + + This is not a ModelForm. + see https://docs.djangoproject.com/en/5.1/topics/forms/modelforms/ + """ dirname = forms.CharField(widget=forms.TextInput(attrs={"readonly": True})) @@ -154,7 +158,7 @@ class SvxForm(forms.Form): code = forms.CharField(widget=forms.Textarea(attrs={"cols": 140, "rows": 36})) who_are_you = forms.CharField( widget=forms.TextInput( - attrs={"size": 100, "placeholder": "You are editing this page, who are you ? e.g. 'Animal <mta@gasthof.expo>'", + attrs={"size": 100, "placeholder": "You are editing this page, who are you ? e.g. 'Becka' or 'Animal <mta@gasthof.expo>'", "style": "vertical-align: text-top;"} ) ) |