Commit graph

40 commits

Author SHA1 Message Date
d0699b3716
HLDS: change :: to double space and require it
Require double space before tags and price, like in the plain text
accounting format of ledger. This makes it easier to differentiate
between prices mentioned in descriptions and the price for the dish.
2021-06-20 23:57:50 +02:00
17b3bc1c7a
Merge branch 'design' 2020-10-12 22:41:27 +02:00
6a052fae73
Take price of choice references into account 2020-09-26 01:10:37 +02:00
a841be3c48
Complete menu migration to separate repo 2020-09-25 19:48:25 +02:00
f49952b4f2
Correct incorrect comment 2020-08-26 19:30:00 +02:00
4f7ffc0e3d
Reformat with black 2020-07-17 11:40:15 +02:00
5d6db78e6e
Strip newline from HLDS data version 2020-06-22 19:05:49 +02:00
aba8301758
Better condition for moving price to options
There's no point in doing this for Ocean Garden's stuff that has a fixed
price.
2020-03-04 22:56:45 +01:00
c52ba3b6d9
Stop parsing names at comment marker 2020-02-29 22:26:17 +01:00
2892a7dc25
Add no_text options 2020-02-25 19:09:28 +01:00
646858aac3
Populate HLDS data version field 2020-02-25 17:51:53 +01:00
e54a89e12c
Change telephone to phone 2020-02-24 21:04:57 +01:00
0bfcf658db
Allow multiple spaces after attribute in location header 2020-02-24 18:33:59 +01:00
94d4a403cb
Fix price of common choices being inflated 2020-02-24 00:58:35 +01:00
1025ade758
Fix validation and saving for multi_choice, add price range 2020-02-24 00:31:14 +01:00
513e495665
Add own logic and form elements
Bypass WTForms and use manually written <select> and all that.
2020-02-23 23:31:11 +01:00
f900c85931
Add form for choices, submitting fails 2020-02-21 18:38:30 +01:00
2db02b9326
Parse incorrect attributes but semantic error 2020-01-27 19:15:24 +01:00
6f24b52855
Make creating order and adding items work 2020-01-27 02:33:55 +01:00
161a5031e5
Update location views 2020-01-27 00:57:51 +01:00
3380d790bc
Store attributes directly on model instead of in map 2020-01-27 00:48:26 +01:00
b7cc2048d6
Forbid tags and price on choice blocks 2020-01-27 00:26:51 +01:00
fb9b0d7960
Rename "base" to "dish" 2020-01-26 23:51:29 +01:00
d5bb14d3a5
Update views with HLDS models
Not expected to work yet, but if I don't do this generating migrations
gives errors.
2020-01-26 16:14:23 +01:00
238c841239
Add location's attributes in Location.str 2020-01-26 15:40:04 +01:00
9494886965
Fix error in grammar that made some comments illegal
The comment in this location header should be supported, but wasn't:

=============================================
fitchen: Fitchen
	osm https://www.openstreetmap.org/node/3394542496
	# Menu: https://www.fitchen.be/wp-content/uploads/2019/12/FITCHEN_gids_02122019_3web.pdf
=============================================
2020-01-26 15:30:32 +01:00
a346220896
Adjust str() of HLDS models to deal with int price 2020-01-26 15:13:48 +01:00
fe593fece6
Add typing in HLDS code, change price to int 2020-01-26 15:09:22 +01:00
996444e1b0
Make choice type available in dish, make tostring idempotent 2020-01-26 02:09:53 +01:00
22aa5a0fb0
Fix issues reported by pylint
And silence the self-use warning: Tatsu requires it this way
2020-01-26 01:50:30 +01:00
5fcac5f937
Add choices to dishes in semantic actions 2020-01-26 01:41:18 +01:00
1d9e7cc170
Refactor loader to parser, remove hlds from app.py 2020-01-26 01:33:08 +01:00
37e3799985
Add semantic actions to create models, add str for models 2020-01-26 01:31:04 +01:00
edb1677523
Refactor HLDS to avoid loading files always 2020-01-26 00:04:29 +01:00
b459dbc9b7
Start models 2020-01-25 01:33:23 +01:00
303349e376
Load HLDS locations in app 2020-01-24 15:47:29 +01:00
ca264b90e1
Force parsed result to be list 2020-01-24 15:16:01 +01:00
f62b105abd
HLDS: simplify data structure slightly 2020-01-24 14:47:53 +01:00
a3af7476c7
Fix strange parsing error 2020-01-24 00:26:53 +01:00
ca199f4a3b
Add first version of the HLDS parser 2019-12-01 02:35:03 +01:00