Cardtype cardtype formatting

Ticket

+commit
 

On plus cards, some way to apply a form based on the type of left and right (or the type of left and the name of right).

 

Type forms:
simple:
BASIC: +*tform - governs any card with typeA
PLUS: ++*tform - governs any card comprise of a typeA plus a typeB

Right name forms (there will soon also be lefts)
BASIC: +*rform - governs any card plus a card named
PLUS: ++*rform - governs any card comprised of typeA plus a card named

*** Whenever you go to view a card that does not exist but because of its types and names would be governed by a hard form, that form is auto-generated (not created in the database, but rendered as if it did already exist)

Here's how the priority works

  1. If a card has a right name form, that card takes priority over the type form.
  2. If a card has a plus form, that takes priority over basic
  3. If a card has no type name form, then it will look to *all+*default

 

 

Currently problems happen when you update hard type forms -- everything of that type gets updated, even cards where the right name form should have priority. (Kind of an edge case right now. Not critical for connectipedia release)


Can't seem to refer to _self/_left/_right in WQL? Created Topic and Place cardtypes, and Topic+place+*tform including a search for relevant events, but the search breaks. See http://sandwagn.wagn.org/wagn/eventsfromtp+*rform and http://sandwagn.wagn.org/wagn/geekery+Portland

--John Abbe.....Tue Jun 03 13:27:50 -0700 2008

Ticketed: Busted self left right in WQL


Just tried changing Trickle+*tform to Company+Stream+*tform on Hooze.org to no effect. In fact, the trickle template is doing weird things on its own. ... will research further.

--Ethan McCutchen.....Thu Jul 03 17:32:27 -0700 2008


John, could you make a new, narrower ticket and a test case demonstrating the _left, _right problem?

--Ethan McCutchen.....Thu Jul 10 14:36:06 -0700 2008


Ticketed: Busted self left right in WQL

--John Abbe.....Fri Jul 11 23:30:37 -0700 2008


Not sure what's up with Hooze - you can even edit and save Trickles, e.g.:

http://hooze.org/card/edit/Dell+Climate_Counts_Scorecard

even though http://hooze.org/card/edit/Trickle+*tform is hard.

--John Abbe.....Fri Jul 11 23:32:52 -0700 2008


currently name forms override type forms even when type forms are hard, so the Climate_Counts_Scorecard+*rform is busting this. There is a ticket about this at t and r formed cards take hardness from wrong form, but I don't think there's actually a code problem there -- the issue is that our workaround on Hooze only lasted us so long. I'll try to fix that up.

--Ethan McCutchen.....Sun Jul 13 14:48:15 -0700 2008


So I'm going to close this :)

--Ethan McCutchen.....Sun Jul 13 14:48:38 -0700 2008