Skip to content

Commit 632084b

Browse files
authored
Merge pull request #162 from A-Baji/part-table-support
part table support
2 parents ed8a2fd + 57b1459 commit 632084b

File tree

3 files changed

+25
-3
lines changed

3 files changed

+25
-3
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
Observes [Semantic Versioning](https://semver.org/spec/v2.0.0.html) standard and [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) convention.
44

5+
## [0.8.5] - 2023-04-26
6+
7+
### Added
8+
9+
- Part table support for forms [#162](https://github.com/datajoint/pharus/pull/162)
10+
511
## [0.8.4] - 2023-04-04
612

713
### Changed
@@ -296,6 +302,7 @@ Observes [Semantic Versioning](https://semver.org/spec/v2.0.0.html) standard and
296302
- Support for DataJoint attribute types: `varchar`, `int`, `float`, `datetime`, `date`, `time`, `decimal`, `uuid`.
297303
- Check dependency utility to determine child table references.
298304

305+
[0.8.5]: https://github.com/datajoint/pharus/compare/0.8.4...0.8.5
299306
[0.8.4]: https://github.com/datajoint/pharus/compare/0.8.3...0.8.4
300307
[0.8.3]: https://github.com/datajoint/pharus/compare/0.8.2...0.8.3
301308
[0.8.2]: https://github.com/datajoint/pharus/compare/0.8.1...0.8.2

pharus/component_interface.py

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,10 +223,25 @@ def __init__(self, *args, **kwargs):
223223
s,
224224
connection=self.connection,
225225
),
226-
t,
226+
t[0],
227+
)
228+
if len(t) == 1
229+
else getattr(
230+
getattr(
231+
dj.VirtualModule(
232+
s,
233+
s,
234+
connection=self.connection,
235+
),
236+
t[0],
237+
),
238+
t[1],
227239
)
228240
for s, t in (
229-
_.format(**request.args).split(".")
241+
(
242+
_.format(**request.args).split(".")[0],
243+
_.format(**request.args).split(".")[1:],
244+
)
230245
for _ in self.component_config["tables"]
231246
)
232247
]

pharus/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
"""Package metadata."""
2-
__version__ = "0.8.4"
2+
__version__ = "0.8.5"

0 commit comments

Comments
 (0)