Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrote a small python-script to combine a xml skeleton and a plain-xml-django-template into an rdmo-readable view-template file. #289

Open
wants to merge 2 commits into
base: master-rdmo2.x
Choose a base branch
from

Conversation

jannefleischer
Copy link

I am not sure anyone have a use for it, but it would be a waste to not share it.

@Zack-83
Copy link
Member

Zack-83 commented Feb 7, 2025

Sieht gut aus! Könnte vielleicht ein Python-Experte den Skript kontrollieren, z.B. @MyPyDavid @jochenklar @triole @johlton ?

import xml.etree.ElementTree as ET

files = list(zip(
glob.glob(os.path.join(os.path.dirname(__file__), 'templaterenderer-djangotemplates', '*.django')),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks! For the path things I would suggest to use from pathlib import Path instead of os.path, https://docs.python.org/3.9/library/pathlib.html?highlight=pathlib#module-pathlib

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.

3 participants