oss issueshttps://yourlabs.io/groups/oss/-/issues2021-03-16T15:15:09Zhttps://yourlabs.io/oss/djwc/-/issues/3Bundling components2021-03-16T15:15:09ZTim KamaninBundling componentsHi again :) As I said in #2, I've also built something similar for myself and been struggling to solve the bundling issue. The current approach is good when there aren't many web components on each pages. But what if there are tens of co...Hi again :) As I said in #2, I've also built something similar for myself and been struggling to solve the bundling issue. The current approach is good when there aren't many web components on each pages. But what if there are tens of components on each page? Adding ten script src doesn't seem like a good idea for the frontend performance. So I've been thinking about a clever way of bundling common components together, but never found a viable solution. Did you have similar ideas?https://yourlabs.io/oss/djsnowpack/-/issues/2demo does not work2021-01-15T18:59:41ZChristian Gonzálezdemo does not workAfter following the demo setup in your README, calling django's runserver spits out:
`ModuleNotFoundError: No module named 'djsnowpack'`
[Full error output](/uploads/e63c4f656fd479116b4dcf8318dc6626/error.txt)
Seems that there is a pro...After following the demo setup in your README, calling django's runserver spits out:
`ModuleNotFoundError: No module named 'djsnowpack'`
[Full error output](/uploads/e63c4f656fd479116b4dcf8318dc6626/error.txt)
Seems that there is a problem - I can't import it, even with
```
$ pip install djsnowpack
Requirement already satisfied: djsnowpack in /tmp/djsnowpack_demo/lib/python3.9/site-packages (0.1.3)
Requirement already satisfied: psutil in /tmp/djsnowpack_demo/lib/python3.9/site-packages (from djsnowpack) (5.8.0)
$ python
Python 3.9.1 (default, Dec 13 2020, 11:55:53)
[GCC 10.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import djsnowpack
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'djsnowpack'
```https://yourlabs.io/oss/djsnowpack/-/issues/3json.DecodeError does not exist.2021-01-16T21:25:19ZChristian Gonzálezjson.DecodeError does not exist.One of a few bugs:
```
if os.path.exists(path):
with open(path, "r") as f:
try:
data = json.load(f)
except json.DecodeError: # this is wrong
```
Should be `json.JSONDecodeError`One of a few bugs:
```
if os.path.exists(path):
with open(path, "r") as f:
try:
data = json.load(f)
except json.DecodeError: # this is wrong
```
Should be `json.JSONDecodeError`https://yourlabs.io/oss/djwc/-/issues/4Failed task: FileNotFoundError(2, 'No such file or directory')2021-02-14T14:44:09ZFabian SchererFailed task: FileNotFoundError(2, 'No such file or directory')Just following the instructions in the readme, I get the following error.
fscherer@FabianSrMacBook djwc % python manage.py djwc
Ensuring all dependencies extracted in /Users/fscherer/Desktop/test/djwc/src/djwc/static/djwc ...
Fai...Just following the instructions in the readme, I get the following error.
fscherer@FabianSrMacBook djwc % python manage.py djwc
Ensuring all dependencies extracted in /Users/fscherer/Desktop/test/djwc/src/djwc/static/djwc ...
Failed task: FileNotFoundError(2, 'No such file or directory')
Ensuring all scripts have patched imports ...
RESOLVE @polymer/paper-input/paper-textarea.js None
MODULE @polymer/paper-input/paper-textarea.js
PATCH /Users/fscherer/Desktop/test/djwc/src/djwc/static/djwc/@polymer/paper-input/paper-textarea.js
Failed task: FileNotFoundError(2, 'No such file or directory')
RESOLVE @polymer/paper-input/paper-input-char-counter.js None
MODULE @polymer/paper-input/paper-input-char-counter.js
PATCH /Users/fscherer/Desktop/test/djwc/src/djwc/static/djwc/@polymer/paper-input/paper-input-char-counter.js
Failed task: FileNotFoundError(2, 'No such file or directory')
RESOLVE @polymer/paper-input/paper-input-error.js None
MODULE @polymer/paper-input/paper-input-error.js
PATCH /Users/fscherer/Desktop/test/djwc/src/djwc/static/djwc/@polymer/paper-input/paper-input-error.js
Failed task: FileNotFoundError(2, 'No such file or directory')
RESOLVE @polymer/paper-input/paper-input-container.js None
MODULE @polymer/paper-input/paper-input-container.js
PATCH /Users/fscherer/Desktop/test/djwc/src/djwc/static/djwc/@polymer/paper-input/paper-input-container.js
Failed task: FileNotFoundError(2, 'No such file or directory')
RESOLVE @polymer/paper-input/paper-input.js None
MODULE @polymer/paper-input/paper-input.js
PATCH /Users/fscherer/Desktop/test/djwc/src/djwc/static/djwc/@polymer/paper-input/paper-input.js
Failed task: FileNotFoundError(2, 'No such file or directory')https://yourlabs.io/oss/djsnowpack/-/issues/4Make subprocess.Popen call shell-agnostic2021-02-19T18:03:12ZJohn KirkwoodMake subprocess.Popen call shell-agnosticThe shell command `type -p npm` is valid in `bash` but the `-p` option is *not* valid in `sh` or `dash` (the default shell - rather than 'login shell' - in many Linux).
However, `type npm` gives the same result in all three shells: `"np...The shell command `type -p npm` is valid in `bash` but the `-p` option is *not* valid in `sh` or `dash` (the default shell - rather than 'login shell' - in many Linux).
However, `type npm` gives the same result in all three shells: `"npm is /usr/bin/npm"`; so taking the last word from that result should give us what we need.
https://yourlabs.io/oss/djsnowpack/-/blob/master/djsnowpack.py#L56-62
It is possible to specify `/bin/bash` as the required shell using the `executable` keyword, but the shell may not be installed in the environment. The same argument applies to using the command `which`.
https://docs.python.org/3/library/subprocess.html#popen-constructorJohn KirkwoodJohn Kirkwoodhttps://yourlabs.io/oss/djsnowpack/-/issues/5No License2021-03-07T20:42:57ZJemma NelsonNo LicenseI was hoping to use this in a Django project at work, but with no license specified, I can't.
https://choosealicense.com/ is a helpful guide, including this writeup on the consequences of not specifying a license: https://choosealicens...I was hoping to use this in a Django project at work, but with no license specified, I can't.
https://choosealicense.com/ is a helpful guide, including this writeup on the consequences of not specifying a license: https://choosealicense.com/no-permission/https://yourlabs.io/oss/crudlfap/-/issues/4Drawer must close on click on mobile2021-05-25T18:08:33Zjpic ∞Drawer must close on click on mobileCommit 3237479604fb2d353f8bb72e3eda74c78638938e takes care of this, but it often doesn't work for me on browser with small width and on mobile.Commit 3237479604fb2d353f8bb72e3eda74c78638938e takes care of this, but it often doesn't work for me on browser with small width and on mobile.https://yourlabs.io/oss/crudlfap/-/issues/5New feature: crudlfap_i18n2021-05-25T19:45:20Zjpic ∞New feature: crudlfap_i18nCode a crudlfap_i18n module with a Language model, synchronizing its own "is_active" boolean by introspecting the settings on startup, it also offers a Content model with a db_index name and a JSONField containing a dict of `{lang: user ...Code a crudlfap_i18n module with a Language model, synchronizing its own "is_active" boolean by introspecting the settings on startup, it also offers a Content model with a db_index name and a JSONField containing a dict of `{lang: user text}` that a form metaclass could create textareas for.
The idea is to be able to use this with the `Markdown()` ryzom component as such:
```
Markdown(Block.objects.get(name='home/intro1', language=request.language))
```
And even a MarkdownBlock component:
```
MarkdownBlock('home/intro1')
```
It would get the request object from the context.https://yourlabs.io/oss/yourlabs.netdata/-/issues/1Use docker container for netdata2021-09-01T11:31:04Zjpic ∞Use docker container for netdataGo with classic docker-compose install like traefik, based on yourlabs.compose, adding prometheus and grafana and netdata as such:
https://learn.netdata.cloud/docs/agent/packaging/docker#create-a-new-netdata-agent-containerGo with classic docker-compose install like traefik, based on yourlabs.compose, adding prometheus and grafana and netdata as such:
https://learn.netdata.cloud/docs/agent/packaging/docker#create-a-new-netdata-agent-containerhttps://yourlabs.io/oss/crudlfap/-/issues/6Custom template2021-12-16T09:46:00Zbob-rCustom templateThe project is great. I am trying to integrate it to existing project based on django templates and AdminLTE. I'm stuck on ryzom/crudlfap.html modules. Ryzom may be a good idea but not for those who have to decompose/pythonise html or dj...The project is great. I am trying to integrate it to existing project based on django templates and AdminLTE. I'm stuck on ryzom/crudlfap.html modules. Ryzom may be a good idea but not for those who have to decompose/pythonise html or django templates. Can you advise on a clean way to customise crudflap template? Any documentation on this in crudlfap/ryzom projects?https://yourlabs.io/oss/crudlfap/-/issues/7Add this project to djangopackages.org CRUD2021-12-14T18:39:48Zbob-rAdd this project to djangopackages.org CRUDhttps://djangopackages.org/grids/g/crud/https://djangopackages.org/grids/g/crud/https://yourlabs.io/oss/crudlfap/-/issues/8Filters not fully working on demo2021-12-18T13:06:11Zbob-rFilters not fully working on demofilters are displayed but not applied: no filter button, no javascript callback
![image](/uploads/ac80413b2ad851426f34dec117cd67d2/image.png)filters are displayed but not applied: no filter button, no javascript callback
![image](/uploads/ac80413b2ad851426f34dec117cd67d2/image.png)jpic ∞jpic ∞https://yourlabs.io/oss/crudlfap/-/issues/9Inconsistent getters in search/filter view mixins2021-12-13T17:14:03Zbob-rInconsistent getters in search/filter view mixins- SearchMixin refers to router's search_fields: https://yourlabs.io/oss/crudlfap/-/blob/master/src/crudlfap/mixins/search.py#L16-17
- FilterMixin doesn't for filter_fields (or filterset)- SearchMixin refers to router's search_fields: https://yourlabs.io/oss/crudlfap/-/blob/master/src/crudlfap/mixins/search.py#L16-17
- FilterMixin doesn't for filter_fields (or filterset)https://yourlabs.io/oss/crudlfap/-/issues/10Missing default_template_name attribute in DeleteMixin2021-12-13T17:06:09Zbob-rMissing default_template_name attribute in DeleteMixinhence the view is expecting `crudlfap/form.html`hence the view is expecting `crudlfap/form.html`https://yourlabs.io/oss/crudlfap/-/issues/11Consider django_tables2 accessors for checkbox list actions2021-12-16T10:37:24Zbob-rConsider django_tables2 accessors for checkbox list actionsinstead of generating a column in ObjectList.to_html
https://django-tables2.readthedocs.io/en/latest/pages/custom-data.html
In TableMixin, a django_tables2.CheckBoxColumn could be attached to django_tables2.Table in the same way as Act...instead of generating a column in ObjectList.to_html
https://django-tables2.readthedocs.io/en/latest/pages/custom-data.html
In TableMixin, a django_tables2.CheckBoxColumn could be attached to django_tables2.Table in the same way as ActionsColumn.https://yourlabs.io/oss/crudlfap/-/issues/12Support multiple sites2021-12-14T12:12:23Zbob-rSupport multiple sitesDespite it is possible to customize sites and override references to site/registry, providing the list/dictionary of sites would really speed up development. Use case, multi-dashhboard system, with different choice of apps per dashboard/...Despite it is possible to customize sites and override references to site/registry, providing the list/dictionary of sites would really speed up development. Use case, multi-dashhboard system, with different choice of apps per dashboard/role (user/editor/admin).
Currently, registry, router, view classes return global site variable defined in crudlfap.https://yourlabs.io/oss/crudlfap/-/issues/13Missing namespace in templates fullname2022-07-31T17:27:11Zbob-rMissing namespace in templates fullnamedue to incorrect conditional at https://yourlabs.io/oss/crudlfap/-/blob/4aea1cb1231a114d0a4cb7790b33542062d1e074/src/crudlfap/route.py#L106
registry is inherited from OrderedDict and may be empty so that it would be correct to `elif cls...due to incorrect conditional at https://yourlabs.io/oss/crudlfap/-/blob/4aea1cb1231a114d0a4cb7790b33542062d1e074/src/crudlfap/route.py#L106
registry is inherited from OrderedDict and may be empty so that it would be correct to `elif cls.registry is not None:`https://yourlabs.io/oss/crudlfap/-/issues/14Not clear how to override context in template view2021-12-16T10:23:10Zbob-rNot clear how to override context in template viewAll `get_context` return, except for `TemplateMixin`:
- TemplateMixin: https://yourlabs.io/oss/crudlfap/-/blob/7304f5b0f7e5a5a8534f4e092cbe804a3c9132dd/src/crudlfap/mixins/template.py#L47-49
- FormMixin: https://yourlabs.io/oss/crudlfap/...All `get_context` return, except for `TemplateMixin`:
- TemplateMixin: https://yourlabs.io/oss/crudlfap/-/blob/7304f5b0f7e5a5a8534f4e092cbe804a3c9132dd/src/crudlfap/mixins/template.py#L47-49
- FormMixin: https://yourlabs.io/oss/crudlfap/-/blob/096c96f4f866c65e981ab2ffb1566adffd8149e6/src/crudlfap/mixins/form.py#L14-16
- ObjectMixin: https://yourlabs.io/oss/crudlfap/-/blob/4aea1cb1231a114d0a4cb7790b33542062d1e074/src/crudlfap/mixins/object.py#L33-35
Would it be correct for a very involved template view to inherit from `TemplateView` and override `get_context`? If so, `get_context` should return the context.https://yourlabs.io/oss/crudlfap/-/issues/15Is it correct that template view title comes from view label?2021-12-16T10:24:39Zbob-rIs it correct that template view title comes from view label?https://yourlabs.io/oss/crudlfap/-/blob/7304f5b0f7e5a5a8534f4e092cbe804a3c9132dd/src/crudlfap/mixins/template.py#L54-55https://yourlabs.io/oss/crudlfap/-/blob/7304f5b0f7e5a5a8534f4e092cbe804a3c9132dd/src/crudlfap/mixins/template.py#L54-55https://yourlabs.io/oss/djtezos/-/issues/1Allow contract calls with amounts2022-01-17T11:00:04ZThomas Binétruy-PicAllow contract calls with amountsIt is common to call a contract entrypoint and send it some Tz [1]. However, currently, it looks like if a transaction is a contract call, then only the parameters are passed: https://yourlabs.io/oss/djtezos/-/blob/master/djtezos/tezos.p...It is common to call a contract entrypoint and send it some Tz [1]. However, currently, it looks like if a transaction is a contract call, then only the parameters are passed: https://yourlabs.io/oss/djtezos/-/blob/master/djtezos/tezos.py#L226
I would replace this line with something along the lines of:
``` diff
def send(self, transaction):
logger.debug(f'{transaction}({transaction.args}): get_client')
client = self.get_client(transaction.sender.private_key)
logger.debug(f'{transaction}({transaction.args}): counter = {client.account()["counter"]}')
ci = client.contract(transaction.contract_address)
method = getattr(ci, transaction.function)
try:
- tx = method(*transaction.args)
+ tx = method(*transaction.args).with_amount(transaction.amount)
except ValueError as e:
raise PermanentError(*e.args)
result = self.write_transaction(tx, transaction)
logger.debug(f'{transaction}({transaction.args}): {result}')
return result
```
[1] For instance, when adding liquidity to a decentralized exchange (AMM, uniswap like), for instance Tezos's Dexter: https://gitlab.com/dexter2tz/dexter2tz/-/blob/master/dexter.mligo#L230