Skip to content

Read-only files; bump glpython-editor to v0.1.19 - #27

Merged
cedricvogel-leo merged 2 commits into
mainfrom
feature/read-only-files
Oct 29, 2026
Merged

cedricvogel-leo merged 2 commits into
mainfrom
feature/read-only-files

Conversation

@cedricvogel-leo

Copy link
Copy Markdown
Collaborator

Decision 2 from the Etappe 4 check: parser.py is a black box, so it's read-only in the IDE.

Changes

  • Bump to glpython-editor v0.1.19 (Read-only files (ProjectFile.readOnly) glpython-editor#41):
    • A file with readOnly: true opens read-only; on an iPad the keyboard doesn't open.
    • Its tab has a lock.
    • Typing into it shows «Schreibgeschützt: Diese Datei kann gelesen, aber nicht geändert werden.»
    • It includes the fix for tab switches overwriting the previous file.
  • File drawer: a lock instead of rename/delete for a read-only file.
  • Share links accept readOnly only as a boolean. Links from the LiaScript macro set it for libraries (separate macro PR).
  • ZIP: «Projekt herunterladen» lists read-only files in glpython.json ("readOnly": [...]); ZIP and folder import mark them again.
  • README «Project persistence».

Checked locally (this code against the v0.1.19 build)

  • Share link with parser.py read-only:
    • lock on its tab and in the drawer (no rename/delete); auswerter.py keeps both buttons
    • typing leaves parser.py unchanged and shows the message
    • tab switches leave both files intact
    • «Tests» 11 von 11
  • ZIP round trip: glpython.json has "readOnly": ["parser.py"]. After importing into a fresh profile, the flag and the lock are back.
  • npm run build passes. Lint shows only the existing warnings in public/coi-serviceworker.js.

Merging deploys the IDE.

🤖 Generated with Claude Code

cedricvogel-leo and others added 2 commits October 29, 2026 22:48
A file with readOnly: true (glpython-editor v0.1.19, e.g. a course's
library in a share link) shows a lock in the file drawer instead of rename
and delete. Share links accept the flag only as a boolean; ZIP export lists
read-only files in glpython.json ("readOnly"), and ZIP and folder import
mark them again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cedricvogel-leo
cedricvogel-leo merged commit 6981c9f into main Oct 29, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant