Allow printers to hard-wire values of options
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 35/100
Direção de pesquisa
Start with the option XML definition shown, especially constraints, enum_vals, arg_defval, and the proposed arg_val. Review how the engine handles per-printer values and determine whether direct driverval support can cover enum and free-valued options without enum boilerplate. Done means the supported behavior and its effect on user interfaces are defined and verified.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
I'm looking for a reasonable way to hard-wire the value of an option for a specific printer. For example, with the following shortened definition, I can define the default value of the option:
<option type="enum" id="opt/Resolution">
<arg_longname><en>Resolution</en></arg_longname>
<arg_shortname><en>Resolution</en></arg_shortname>
<arg_execution> ... </arg_execution>
<constraints>
<constraint sense="true">
<driver>driver</driver>
<printer>printer</printer>
<arg_defval>ev/300dpi</arg_defval>
</constraint>
</constraints>
<enum_vals>
<enum_val id="ev/300dpi">
<ev_driverval>300</ev_driverval>
...
</enum_val>
<enum_val id="ev/600dpi">
<ev_driverval>600</ev_driverval>
...
</enum_val>
</enum_vals>
</option>
If I add constraints on the enum_vals so that only a single option remains available for a printer, the option will disappear fro user interfaces and it will effectively be hard-wired.
However, for options that always have exactly one value for each supported printers, this still requires adding an enum for each possible choice, and some boilerplate code. It obviously doesn't work at all for options that have free values.
What I'd ideally like to do is to directly define the driverval, so something like <arg_val>300</arg_val> instead of <arg_defval>ev/300dpi</arg_defval>. Is there a way to do that already?
- Linguagem predominante
- Perl
- Estrelas
- 8
- Forks
- 5
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de OpenPrinting/foomatic-db-engine
-
FoomaticRIPCommandLine failsAberta
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 42/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 45/100
OpenPrinting/foomatic-db-engine#12 · 1 reação ·
-
Setting pdftops-renderer?Aberta
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 25/100
-
Foomatic 4.1.0?Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 35/100
-
Missing *DefaultResolutionAberta
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 35/100
Todas as issues de OpenPrinting/foomatic-db-engine
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
openwebwork/webwork2#3295 ·
Mantenedores costumam responder em até 4 dias
-
nftables: "Display comment in rules list?" option has no effect, comments not shown in rules listAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
Type: Bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
inverse-inc/packetfence#9707 ·
Mantenedores costumam responder em até 1 dia
-
Mailaddress phrase quotingAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 67/100
RotherOSS/otobo#6457 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
The reply-to for the pro user signup emails should be the email of the user instrad of the contact@ emailTalvez já em andamento @sisodiaumang assumiu hoje. Aberta🏭 producer platform - spam
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
openfoodfacts/openfoodfacts-server#15447 ·
Mantenedores costumam responder em até 1 dia