webpub1c package
Submodules
webpub1c.apache_config module
- class webpub1c.apache_config.ApacheConfig(filename: str, vrd_path: str, dir_path: str, url_base: str, vrd_params: Dict[str, str | None] | None = None, templates_env: Environment | None = None)[source]
Bases:
objectapache config
- add_publication(publication: WebPublication, force: bool = False) None[source]
- create_publication(ibname: str, url_path: str | None = None, infobase_filepath='', force: bool = False) WebPublication[source]
- end_tag: str = '# --- WEBPUB1C PUBLICATION END:'
- get_publication(ibname: str) WebPublication | None[source]
- iter() Iterator[WebPublication][source]
- property publications: Iterator[str]
- start_tag: str = '# --- WEBPUB1C PUBLICATION START:'
- property text: str
webpub1c.cli module
webpub1c.common module
- webpub1c.common.slugify(value: str, lang: str = 'ru') str[source]
Creates a slug according to the given string
Parameters
- value: str
The string input to be converted to a slug
- lang: str
The language used to properly convert the given string to a slug (Default is ‘ru’, Russian)
Return
- str
The converted string with the format of a slug
webpub1c.webpublication module
- class webpub1c.webpublication.WebPublication(name: str, directory: str = '', vrd_filename: str = '', url_path: str = '', vrd_params: Dict[str, str | None] | None = None, templates_env: Environment | None = None, infobase_filepath='')[source]
Bases:
object1c web publication info for apache2 config
- static from_config(name: str, config: str, templates_env: Environment | None = None) WebPublication[source]
read publication info from config block