flinventory 0.6.13__py3-none-any.whl → 0.7.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
flinventory/constant.py CHANGED
@@ -176,6 +176,7 @@ class Options:
176
176
 
177
177
  for simple_option, default, data_type in (
178
178
  ("separator", "-", str),
179
+ ("long_separator", " > ", str),
179
180
  ("length_unit", "cm", str),
180
181
  ("sign_max_height", 28, (int, float)),
181
182
  ("sign_max_width", 18, (int, float)),
flinventory/location.py CHANGED
@@ -318,7 +318,9 @@ class Location(dict[str, Value]):
318
318
  @property
319
319
  def long_name(self):
320
320
  """Get the string representation with names."""
321
- return self.options.separator.join(str(level.name) for level in self._levels)
321
+ return self.options.long_separator.join(
322
+ str(level.name) for level in self._levels
323
+ )
322
324
 
323
325
  @property
324
326
  def schema(self) -> Schema:
@@ -468,7 +468,11 @@ class SignPrinterLaTeX:
468
468
  insertions = {
469
469
  "PrimaryName": sanitize_latex_code(german),
470
470
  "SecondaryName": sanitize_latex_code(english),
471
- "location": sanitize_latex_code(str(thing.where)),
471
+ "location": sanitize_latex_code(
472
+ str(thing.location.long_name)
473
+ if thing.sign.get("location_long", False)
474
+ else str(thing.where)
475
+ ),
472
476
  "height": height,
473
477
  "widthAdjusted": width,
474
478
  }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: flinventory
3
- Version: 0.6.13
3
+ Version: 0.7.0
4
4
  Summary: An inventory system for self-help repair shops
5
5
  Author-Email: flukx <flinventory-flukx@612211124.xyz>
6
6
  License: GPL3
@@ -1,18 +1,18 @@
1
- flinventory-0.6.13.dist-info/METADATA,sha256=BJTq57UB3n0BB0p3sOwTX0Dfqp5iUXct1VSPWYeN4K0,4908
2
- flinventory-0.6.13.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
3
- flinventory-0.6.13.dist-info/entry_points.txt,sha256=De3jjbHfy68_ZrwdjywlgrSUCn4QhqZGI0CJJt9S8_c,78
4
- flinventory-0.6.13.dist-info/licenses/LICENSE,sha256=9c-AWlAEeFMmn1aODEfabsw2he-SpQeykurYw-KqSdw,34478
1
+ flinventory-0.7.0.dist-info/METADATA,sha256=EPxlIGRVYY8HtPjE4CjOhWtK6kMILO8470YSCUpmBc8,4907
2
+ flinventory-0.7.0.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
3
+ flinventory-0.7.0.dist-info/entry_points.txt,sha256=De3jjbHfy68_ZrwdjywlgrSUCn4QhqZGI0CJJt9S8_c,78
4
+ flinventory-0.7.0.dist-info/licenses/LICENSE,sha256=9c-AWlAEeFMmn1aODEfabsw2he-SpQeykurYw-KqSdw,34478
5
5
  flinventory/__init__.py,sha256=0HTGxw9J-2KnbxQbzX6HH-Pztkp0BEjiHANhndfbtYM,270
6
6
  flinventory/__main__.py,sha256=5U_RxWDlnhzlC98RaE8SkejjiYjv27OLdm5DPYgL4Gw,1295
7
7
  flinventory/box.py,sha256=rk7yrAjVdxcrpvmTMt3jkMVOAoQNJfqoSig9U2S3yJ0,10480
8
- flinventory/constant.py,sha256=4qb7gX-pQdr7fGq25dTkESe6B53yi4yILOF4Y8KtWk0,10672
8
+ flinventory/constant.py,sha256=CDMuqN3jRd6-cDlqB-Iy22JaFDbXj3I71b91jVylORY,10716
9
9
  flinventory/datacleanup.py,sha256=_CImmWJhq5uKz21jJQUqKYoQfbHEYA0000RyPRt5BI0,11363
10
10
  flinventory/defaulted_data.py,sha256=WbchY7w4jg4K5gQMzoqkqX1utcSEs8y7234gMeEPi4E,21590
11
11
  flinventory/generate_labels.py,sha256=wjlyta9gowWOLvVfOVUQ8Ktpv3eg85JbAfDzI4Ok2V4,8476
12
12
  flinventory/inventory_io.py,sha256=OWThcf9nzeZNqvNpzQiBhESQAnVXC7hUA8DEVzq-w-Y,12561
13
- flinventory/location.py,sha256=UgJlbno16ipuFa4yUZK3SLrid70ACwE5He9Dd4P2SMU,16875
13
+ flinventory/location.py,sha256=PdYtxKjyc6N_BumCii8N92CA3skTcZoKEsAyTg-0R2E,16902
14
14
  flinventory/sign.py,sha256=8G7fsne3Nsf8zZKKTUl40uWMNsWIv7FYV2KcqBR2MQI,5515
15
- flinventory/signprinter_latex.py,sha256=YsYAbVz_PF6CahrMJ1W0KlLAJCMPqYne-D-7PDNDdjA,27295
15
+ flinventory/signprinter_latex.py,sha256=mPsu27E_27XU4sQXU-KS3tzEwD5rdodmUrNAtpSrgy0,27434
16
16
  flinventory/thing.py,sha256=86fXj3RwTbkCdVVWrbyO-VEW_e5lKJlV8PPt1Xf8ejY,5079
17
17
  flinventory/thingtemplate_latex/.gitignore,sha256=DTF250Ttj8O2lxrQBwMNrQ73rWPvdwCytipfZSLFtlU,51
18
18
  flinventory/thingtemplate_latex/dummyImage.jpg,sha256=bIBH5Lrxlr5qJ42nP1cpJXPRNGLOwyEuzwXFSvNwTSk,147857
@@ -20,4 +20,4 @@ flinventory/thingtemplate_latex/sign.tex,sha256=cVlOjImuS97Gf19MGW27HiP6Uw8JNnob
20
20
  flinventory/thingtemplate_latex/signlist-footer.tex,sha256=LcZw5__h8SqgMmYxs5oLbXLaFTQlx_X5rtYnpxwUh9Y,14
21
21
  flinventory/thingtemplate_latex/signlist-header.tex,sha256=F1J4aSPq6QO_Ved4Zn7-rytP1vDkdWTqjjtGJpe_FDg,297
22
22
  flinventory/thingtemplate_latex/signs-example.tex,sha256=J6eCcPhP0Xklgn8xnSenDOvjzmc_NGmakWU4RGbeUtM,3090
23
- flinventory-0.6.13.dist-info/RECORD,,
23
+ flinventory-0.7.0.dist-info/RECORD,,