#37: Handle CLOS object references ('foreign keys') in form renderers --------------------------------------------------+------------------------- Reporter: sakhmechet | Owner: sakhmechet Type: enhancement | Status: new Priority: critical | Milestone: 0.1 Component: weblocks | Version: pre-0.1 Keywords: renderers clos foreign key reference | --------------------------------------------------+------------------------- Currently form renderers don't handle non-inline CLOS object references (effectively, foreign keys). We need to design a mechanism that will allow users to select a foreign CLOS object in a form.
One option is to provide a generic function that will return a list of CLOS objects that can be displayed in a form. The form renderer will then grab a name of each of these objects and display it in a dropdown.
#37: Handle CLOS object references ('foreign keys') in form renderers --------------------------+------------------------------------------------- Reporter: sakhmechet | Owner: sakhmechet Type: enhancement | Status: new Priority: medium | Milestone: 0.1 Component: weblocks | Version: pre-0.1 Resolution: | Keywords: renderers clos foreign key reference --------------------------+------------------------------------------------- Changes (by sakhmechet):
* priority: critical => medium
#37: Handle CLOS object references ('foreign keys') in form renderers --------------------------+------------------------------------------------- Reporter: sakhmechet | Owner: sakhmechet Type: enhancement | Status: new Priority: medium | Milestone: 0.1 Component: weblocks | Version: pre-0.1 Resolution: | Keywords: renderers clos foreign key reference --------------------------+------------------------------------------------- Comment (by sakhmechet):
Explore the possibility of using type declarations instead of magick "-ref" to determine if an object is to be rendered inline. This needs to be considered carefully as it may not be a good idea.
#37: Handle CLOS object references ('foreign keys') in form renderers --------------------------+------------------------------------------------- Reporter: sakhmechet | Owner: sakhmechet Type: enhancement | Status: new Priority: medium | Milestone: 0.1 Component: weblocks | Version: pre-0.1 Resolution: | Keywords: renderers clos foreign key reference --------------------------+------------------------------------------------- Comment (by sakhmechet):
Add a one-of type that renders as a dropdown snippet.
#37: Handle CLOS object references ('foreign keys') in form renderers --------------------------+------------------------------------------------- Reporter: sakhmechet | Owner: sakhmechet Type: enhancement | Status: closed Priority: medium | Milestone: 0.1 Component: weblocks | Version: pre-0.1 Resolution: fixed | Keywords: renderers clos foreign key reference --------------------------+------------------------------------------------- Changes (by sakhmechet):
* resolution: => fixed * status: new => closed
Comment:
Fixed. Reference slots are rendered as drop down by calling 'form- potential-values'. A special parser is called to convert object IDs back to objects.
cl-weblocks-ticket@common-lisp.net